From: Marc Autret Date: Sat, 15 Dec 2001 18:38:57 +0000 (+0000) Subject: * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. X-Git-Tag: before-m4-back-end~123 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/a79986b830496018e87d8e122d2938d237e93a8d?ds=sidebyside * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. --- diff --git a/ChangeLog b/ChangeLog index eb416081..5c475cc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-12-15 Marc Autret + + * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. + 2001-12-15 Marc Autret * src/output.c (output_gram): Keep track of the hairy one. diff --git a/src/bison.simple b/src/bison.simple index 3ca6833e..0e121d22 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -46,8 +46,12 @@ #endif /* Enabling verbose error messages. */ -#undef YYERROR_VERBOSE -#define YYERROR_VERBOSE %%error-verbose +#ifdef YYERROR_VERBOSE +# undef YYERROR_VERBOSE +# define YYERROR_VERBOSE 1 +#else +# define YYERROR_VERBOSE %%error-verbose +#endif /* If name_prefix is specify substitute the variables and functions names. */