From: Paul Eggert Date: Wed, 23 Oct 2002 06:30:49 +0000 (+0000) Subject: (struct yyltype): Define members even when not X-Git-Tag: BISON-1_875~396 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ffa4c58acb6909d00cc1093ff836c434fec06f1b (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 --- diff --git a/data/glr.c b/data/glr.c index 6bdd8ef1..eb495448 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