summaryrefslogtreecommitdiff
path: root/scan.l
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-07-17 06:46:23 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-07-17 06:46:23 +0000
commit58d399341dc4d8a1da79a3636fb823e92b82c912 (patch)
tree6688a3617266590bac71c152b650bd072e3c81a3 /scan.l
parenta336daae24c230b9c5fbc82b5d5f8f10d90b6f6d (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.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/scan.l b/scan.l
index f680833..d310e6b 100644
--- a/scan.l
+++ b/scan.l
@@ -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 */