mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user