diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2013-01-15 18:29:45 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-01-21 16:27:46 +0100 |
commit | 3ef9fa8f83316f7955babee666546feb5d9bdefc (patch) | |
tree | 02c394f4d2ba155b9944db1aa34abd7a97f25247 /tests/torture.at | |
parent | 70b7c357476ed3525ddb5d2739e70690cfebb207 (diff) | |
download | bison-3ef9fa8f83316f7955babee666546feb5d9bdefc.tar.gz |
tests: factor the definition of main
With Théophile Ranquet.
* tests/local.at (AT_MAIN_DEFINE): New.
(AT_YYERROR_DEFINE): Improve formatting.
* tests/actions.at, tests/c++.at, tests/conflicts.at,
* tests/glr-regression.at, tests/input.at, tests/regression.at,
* tests/skeletons.at, tests/torture.at: Adjust.
* tests/c++.at: Add missing %skeleton for a PUSHDEFS, and a missing
PUSH/POPDEFS for another test.
Diffstat (limited to 'tests/torture.at')
-rw-r--r-- | tests/torture.at | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/tests/torture.at b/tests/torture.at index 338c33c5..5489e919 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -115,12 +115,7 @@ yylex (void) } return inner++; } -int -main (void) -{ - yydebug = !!getenv ("YYDEBUG"); - return yyparse (); -} +]AT_MAIN_DEFINE[ EOF ]]) AT_BISON_OPTION_POPDEFS @@ -204,13 +199,7 @@ yylex (void) assert (counter++ == MAX + 1); return 0; } - -int -main (void) -{ - yydebug = !!getenv ("YYDEBUG"); - return yyparse (); -} +]AT_MAIN_DEFINE[ EOF ]]) @@ -342,12 +331,7 @@ yylex (void) return counter++; } -int -main (void) -{ - yydebug = !!getenv ("YYDEBUG"); - return yyparse (); -} +]AT_MAIN_DEFINE[ EOF ]]) |