Commit 57d80297 by Kaveh R. Ghazi Committed by Kaveh Ghazi

gengtype.h (error_at_line): Use PARAMS, not VPARAMS.

	* gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
	ATTRIBUTE_PRINTF_2.
	* gengtype-lex.l: Fix format specifier warning.

From-SVN: r54394
parent 1f8e4682
2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
ATTRIBUTE_PRINTF_2.
* gengtype-lex.l: Fix format specifier warning.
* genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE, * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
not isspace. not isspace.
* gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
......
...@@ -283,7 +283,7 @@ ITYPE {IWORD}({WS}{IWORD})* ...@@ -283,7 +283,7 @@ ITYPE {IWORD}({WS}{IWORD})*
"%}" { BEGIN(in_struct); } "%}" { BEGIN(in_struct); }
"%" { "%" {
error_at_line (&lexer_line, error_at_line (&lexer_line,
"unterminated %{; unexpected EOF"); "unterminated %%{; unexpected EOF");
} }
} }
......
...@@ -109,7 +109,7 @@ extern struct fileloc lexer_line; ...@@ -109,7 +109,7 @@ extern struct fileloc lexer_line;
/* Print an error message. */ /* Print an error message. */
extern void error_at_line extern void error_at_line
VPARAMS ((struct fileloc *pos, const char *msg, ...)); PARAMS ((struct fileloc *pos, const char *msg, ...)) ATTRIBUTE_PRINTF_2;
/* Constructor routines for types. */ /* Constructor routines for types. */
extern void do_typedef PARAMS ((const char *s, type_p t, struct fileloc *pos)); extern void do_typedef PARAMS ((const char *s, type_p t, struct fileloc *pos));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment