From ffa4c58acb6909d00cc1093ff836c434fec06f1b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 23 Oct 2002 06:30:49 +0000 Subject: [PATCH] (struct yyltype): Define members even when not doing locations. This is more consistent with yacc.c, and it works around the following bug reports: http://mail.gnu.org/pipermail/bug-bison/2002-October/001748.html http://mail.gnu.org/pipermail/bug-bison/2002-October/001764.html http://mail.gnu.org/pipermail/bug-bison/2002-October/001769.html --- data/glr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/glr.c b/data/glr.c index 6bdd8ef..eb49544 100644 --- a/data/glr.c +++ b/data/glr.c @@ -178,11 +178,10 @@ typedef union b4_stype yystype; #ifndef YYLTYPE typedef struct yyltype { -]b4_location_if([ int first_line; int first_column; int last_line; - int last_column;])[ + int last_column; } yyltype; # define YYLTYPE ]b4_location_type[ # define YYLTYPE_IS_TRIVIAL 1 -- 2.7.4