From 383e69dc798510a66d7bf59b237c987285f79a21 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 21 May 2004 22:23:04 +0000 Subject: [PATCH] Output yylloc macro defn in glr.c even if locations are not being generated. --- ChangeLog | 5 +++++ data/glr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b424d57f..5d7cab01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-05-21 Paul Eggert + * data/glr.c (yylloc): Output this macro even if locations are not + being generated, as the GLR parser needs it even in that case. + Problem reported by Troy A. Johnson + . + * configure.ac (AC_INIT): Update to 1.875e. 2004-05-21 Paul Eggert diff --git a/data/glr.c b/data/glr.c index a77a9857..b7e5c82d 100644 --- a/data/glr.c +++ b/data/glr.c @@ -158,7 +158,7 @@ m4_if(b4_prefix[], [yy], [], #define yychar b4_prefix[]char #define yydebug b4_prefix[]debug #define yynerrs b4_prefix[]nerrs -b4_location_if([#define yylloc b4_prefix[]lloc])]) +#define yylloc b4_prefix[]lloc]) b4_token_defines(b4_tokens) -- 2.45.2