From 4ec13d6058441738f2b8d48e418e539808efa4e6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 12 Sep 2006 17:46:34 +0000 Subject: [PATCH] * data/glr.cc (YYERROR_VERBOSE, YYTOKEN_TABLE): Remove. --- ChangeLog | 8 ++++++++ data/glr.cc | 13 ------------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e17efaa..c12f0903 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-09-12 Paul Eggert + + * data/glr.cc (YYERROR_VERBOSE, YYTOKEN_TABLE): Remove. + We don't need them in glr.cc, and glr.c defines them. + Defining YYERROR_VERBOSE to 0 here breaks glr.c, since glr.c + assumes that defining it to anything is the same as defining + it to 1. Problem reported by Paolo Bonzini. + 2006-09-12 Paolo Bonzini (tiny change) * data/c.m4 (b4_null, b4_case): Define. diff --git a/data/glr.cc b/data/glr.cc index a3cafe8e..21b03f27 100644 --- a/data/glr.cc +++ b/data/glr.cc @@ -244,19 +244,6 @@ namespace ]b4_namespace[ # define YYDEBUG ]b4_debug_flag[ #endif -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE ]b4_error_verbose_flag[ -#endif - -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE ]b4_token_table[ -#endif - /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ -- 2.47.2