Work around a bug in bro 0.8, which underparenthesizes its

definition of YYLLOC_DEFAULT.
* data/glr.c: Change all uses of YYLLOC_DEFAULT to parenthesize
their arguments.
* data/lalr1.cc: Likewise.
* data/yacc.cc: Likewise.
This commit is contained in:
Paul Eggert
2006-01-23 08:39:52 +00:00
parent d42cf84421
commit 401aace63c
4 changed files with 32 additions and 6 deletions

View File

@@ -783,7 +783,7 @@ b4_error_verbose_if([, yytoken])[));
yyerror_range[1] = yylloc;
// Using YYLLOC is tempting, but would change the location of
// the look-ahead. YYLOC is available though.
YYLLOC_DEFAULT (yyloc, yyerror_range - 1, 2);
YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2);
yysemantic_stack_.push (yylval);
yylocation_stack_.push (yyloc);