(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
This commit is contained in:
Paul Eggert
2002-10-23 06:30:49 +00:00
parent c827f760f6
commit ffa4c58acb

View File

@@ -178,11 +178,10 @@ typedef union b4_stype yystype;
#ifndef YYLTYPE #ifndef YYLTYPE
typedef struct yyltype typedef struct yyltype
{ {
]b4_location_if([
int first_line; int first_line;
int first_column; int first_column;
int last_line; int last_line;
int last_column;])[ int last_column;
} yyltype; } yyltype;
# define YYLTYPE ]b4_location_type[ # define YYLTYPE ]b4_location_type[
# define YYLTYPE_IS_TRIVIAL 1 # define YYLTYPE_IS_TRIVIAL 1