diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-07-17 06:46:23 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-07-17 06:46:23 +0000 |
commit | 58d399341dc4d8a1da79a3636fb823e92b82c912 (patch) | |
tree | 6688a3617266590bac71c152b650bd072e3c81a3 /scan.l | |
parent | a336daae24c230b9c5fbc82b5d5f8f10d90b6f6d (diff) |
Fixed prototype/definition conflicts with "traditional" C in skeleton at request of gcc developer.
Removed duplicate prototypes in gen.c, sym.c, main.c.
Added missing prototypes where needed.
All functions in skeleton follow ISO C style protos and defs, instead of BOTH ISO and new-style.
Skeleton now compiles cleanly under super-strict gcc flags.
Flex itself almost compiles cleanly under strict flags.
Diffstat (limited to 'scan.l')
-rw-r--r-- | scan.l | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -106,7 +106,7 @@ LEXOPT [aceknopr] int doing_codeblock = false; int i; - Char nmdef[MAXLINE], myesc(); + Char nmdef[MAXLINE]; <INITIAL>{ @@ -482,7 +482,6 @@ LEXOPT [aceknopr] "{"{NAME}"}" { register Char *nmdefptr; - Char *ndlookup(); strcpy( nmstr, yytext + 1 ); nmstr[yyleng - 2] = '\0'; /* chop trailing brace */ |