mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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.
This commit is contained in:
@@ -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
|
||||
]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user