diff options
author | millaway <millaway> | 2002-07-17 06:46:23 +0000 |
---|---|---|
committer | millaway <millaway> | 2002-07-17 06:46:23 +0000 |
commit | d5533f72c1c84d3637962466c6a9290ce04b1ff1 (patch) | |
tree | 69b1e16b7696b2de3295772f0ec12d52aad6cba6 /tests/test-mem-r | |
parent | 0b460034aa40e9c1b7e6c1e08ddd1f212e07cbb6 (diff) | |
download | flex-d5533f72c1c84d3637962466c6a9290ce04b1ff1.tar.gz |
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 'tests/test-mem-r')
-rw-r--r-- | tests/test-mem-r/scanner.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-mem-r/scanner.l b/tests/test-mem-r/scanner.l index 10acd9a..01ac9de 100644 --- a/tests/test-mem-r/scanner.l +++ b/tests/test-mem-r/scanner.l @@ -82,7 +82,7 @@ static void dump_mem(FILE* fp){ fprintf(fp,"}\n"); } -void * yyalloc(size_t n YY_LAST_ARG) +void * yyalloc(size_t n , void* yy_globals) { void * p; struct memsz * old; @@ -112,7 +112,7 @@ void * yyalloc(size_t n YY_LAST_ARG) return p; } -void * yyrealloc(void* p, size_t n YY_LAST_ARG) +void * yyrealloc(void* p, size_t n , void* yy_globals) { int i; for (i=0; i < arrsz; i++) @@ -133,7 +133,7 @@ void * yyrealloc(void* p, size_t n YY_LAST_ARG) exit(1); } -void yyfree(void* p YY_LAST_ARG) +void yyfree(void* p , void* yy_globals) { int i; for (i=0; i < arrsz; i++) |