]> git.saurik.com Git - bison.git/commitdiff
(struct yyltype): Define members even when not
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2002 06:30:49 +0000 (06:30 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2002 06:30:49 +0000 (06:30 +0000)
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

index 6bdd8ef190fb1cf816cb7e75a124c4012eede1e8..eb4954482015ef8d58559c7e0701bc61cfc6ed7d 100644 (file)
@@ -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