version 1.7, 2002/05/30 10:53:44 |
version 1.8, 2002/05/31 00:56:21 |
|
|
return; |
return; |
} |
} |
|
|
snprintf( buf, sizeof buf, "#define %s %d\n", defname, value ); |
sprintf( buf, "#define %s %d\n", defname, value ); |
add_action( buf ); |
add_action( buf ); |
} |
} |
|
|
|
|
int arg; |
int arg; |
{ |
{ |
char errmsg[MAXLINE]; |
char errmsg[MAXLINE]; |
(void) snprintf( errmsg, sizeof errmsg, msg, arg ); |
(void) sprintf( errmsg, msg, arg ); |
flexerror( errmsg ); |
flexerror( errmsg ); |
} |
} |
|
|
|
|
{ |
{ |
char errmsg[MAXLINE]; |
char errmsg[MAXLINE]; |
|
|
(void) snprintf( errmsg, sizeof errmsg, msg, arg ); |
(void) sprintf( errmsg, msg, arg ); |
flexerror( errmsg ); |
flexerror( errmsg ); |
} |
} |
|
|
|
|
*s2 = '\0'; |
*s2 = '\0'; |
|
|
if ( do_infile ) |
if ( do_infile ) |
snprintf( directive, sizeof directive, line_fmt, |
sprintf( directive, line_fmt, linenum, filename ); |
linenum, filename ); |
|
else |
else |
{ |
{ |
if ( output_file == stdout ) |
if ( output_file == stdout ) |
/* Account for the line directive itself. */ |
/* Account for the line directive itself. */ |
++out_linenum; |
++out_linenum; |
|
|
snprintf( directive, sizeof directive, line_fmt, |
sprintf( directive, line_fmt, out_linenum, filename ); |
out_linenum, filename ); |
|
} |
} |
|
|
/* If output_file is nil then we should put the directive in |
/* If output_file is nil then we should put the directive in |
|
|
#endif |
#endif |
|
|
default: |
default: |
(void) snprintf( rform, sizeof rform, |
(void) sprintf( rform, "\\%.3o", |
"\\%.3o", (unsigned int) c ); |
(unsigned int) c ); |
return rform; |
return rform; |
} |
} |
} |
} |