diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-07-25 00:43:47 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-07-25 00:43:47 +0000 |
commit | e9d5fc713f61be7ad4df74b38f94d4915b7daad0 (patch) | |
tree | 4abf38698b4ed345f238766379fce943444d73c4 /tests/test-posixly-correct | |
parent | fdaa843d563c582da9a9bfaf76cc2e5346b16faa (diff) |
All prototypes were rewritten to depend upon the macro YY_TRADITIONAL_FUNC_DEFS, which
is defined by default.
The generated scanners build cleanly under gcc's traditional strictness and under C++ compilers.
Diffstat (limited to 'tests/test-posixly-correct')
-rw-r--r-- | tests/test-posixly-correct/scanner.l | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-posixly-correct/scanner.l b/tests/test-posixly-correct/scanner.l index 725d8c9..20912df 100644 --- a/tests/test-posixly-correct/scanner.l +++ b/tests/test-posixly-correct/scanner.l @@ -34,6 +34,8 @@ #define NUM_TESTS 1 char * tests[NUM_TESTS] = { "ababab"}; +int main(void); + int tests_ok[NUM_TESTS] = { 0 }; %} @@ -51,7 +53,7 @@ ab{3} tests_ok[0] = 1; return 0; %% -int main ( int argc, char** argv ) +int main () { YY_BUFFER_STATE state; int i; |