X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6a0655d9cddec57a13a7fd813aa1dc81bdbcb38f..6cf3716c3166d6d41cdbeea45d018b1760184421:/tests/regression.at diff --git a/tests/regression.at b/tests/regression.at index fd08800a..bc129b7c 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -462,11 +462,7 @@ AT_DATA_GRAMMAR([input.y], %% exp: "a" "\\\'\?\"\a\b\f\n\r\t\v\001\201\x001\x000081??!"; %% -void -yyerror (char const *s) -{ - fprintf (stderr, "%s\n", s); -} +]AT_YYERROR_DEFINE[ int yylex (void) @@ -892,15 +888,9 @@ member: STRING | INVALID ; %% -AT_LALR1_CC_IF( -[/* A C++ error reporting function. */ -void -yy::parser::error (const std::string& m) -{ - std::cerr << m << std::endl; -} - -int +AT_YYERROR_DEFINE[ +]AT_LALR1_CC_IF( +[int yyparse () { yy::parser parser; @@ -909,12 +899,7 @@ yyparse () #endif return parser.parse (); } -], -[static void -yyerror (const char *s) -{ - fprintf (stderr, "%s\n", s); -}]) +]) static int yylex (AT_LALR1_CC_IF([int *lval], [void]))