From a79986b830496018e87d8e122d2938d237e93a8d Mon Sep 17 00:00:00 2001 From: Marc Autret Date: Sat, 15 Dec 2001 18:38:57 +0000 Subject: [PATCH] * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. --- ChangeLog | 4 ++++ src/bison.simple | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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. */ -- 2.49.0