The author has expressed the hope that any modification will retain enough content to remain useful. He would also appreciate being acknowledged as the original author in the documentation.
This declaration added 2008/11/14 by Clea F. Rees with the permission of Geoffrey Tobin.
- - version 0.6.2 - 14 September 2005
+ - version 0.6.3 - 2020
- Geoffrey Tobin G.Tobin@ee.latrobe.edu.au
- fixes: Michal Tomczak-Jaegermann ntomczak@vm.ucs.ualberta.ca
Nelson H. F. Beebe beebe@math.utah.edu
Angus Leeming leeming@lyx.org: Enable dt2dv to handle .dvi files
containing strings longer than 1024 chars.
Enrico Forestieri forenr@lyx.org: handle non-ASCII characters.
+ Juergen Spitzmueller spitz@lyx.org: fix compiler warnings
- Reference: "The DVI Driver Standard, Level 0",
by The TUG DVI Driver Standards Committee.
Appendix A, "Device-Independent File Format".
{
COUNT num; /* current line number */
size_t max; /* capacity of buf */
- S4 wrote; /* number of characters written into buf */
+ U4 wrote; /* number of characters written into buf */
size_t read; /* position in buf of next character to read from buf */
- unsigned char * buf; /* line buffer */
+ char * buf; /* line buffer */
} Line;
char linebuf[MAXLINE+1];
#endif
{
Void (*handler) ARGS((int)); /* Previous signal handler */
+ (void)handler;// avoid compiler warning [-Wunused-but-set-variable]
int i;
progname = argv[0]; /* name of this program */
#endif
{
Void (* handler) ARGS((int));
+ (void)handler;// avoid compiler warning [-Wunused-but-set-variable]
handler = (Void (*) ARGS((int))) signal (SIGSEGV, mem_viol);
if (sig != SIGSEGV)
{
int nprefixes = 0; /* number of prefixes in cmd_prefixes[] list. */
static Token dtl_cmd = ""; /* DTL command name */
COUNT nread = 0; /* number of bytes read by a function from dtl file. */
+ (void)nread;// avoid compiler warning [-Wunused-but-set-variable]
nprefixes = sizeof (cmd_prefixes) / sizeof (CmdPrefix);
{
U4 unum = 0; /* at most this space needed */
COUNT nread = 0; /* number of DTL bytes read by read_token */
+ (void)nread;// avoid compiler warning [-Wunused-but-set-variable]
int nconv = 0; /* number of arguments converted by sscanf */
static Token token = ""; /* DTL token */
{
U4 unum = 0; /* at most this space needed */
COUNT nread = 0; /* number of DTL bytes read by read_token */
+ (void)nread;// avoid compiler warning [-Wunused-but-set-variable]
int nconv = 0; /* number of arguments converted by sscanf */
static Token token = ""; /* DTL token */
{
U4 unum = 0; /* at most this space needed */
COUNT nread = 0; /* number of DTL bytes read by read_token */
+ (void)nread;// avoid compiler warning [-Wunused-but-set-variable]
int nconv = 0; /* number of arguments converted by sscanf */
static Token token = ""; /* DTL token */
{
S4 snum = 0;
COUNT nread = 0; /* number of DTL bytes read by read_token */
+ (void)nread;// avoid compiler warning [-Wunused-but-set-variable]
int nconv = 0; /* number of sscanf arguments converted and assigned */
static Token token = "";
dvi_written += fwret;
- if (fwret < lstr->l)
+ if ((long int) fwret < lstr->l)
{
PRINT_PROGNAME;
fprintf (stderr,