mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
* data/glr.c (YYLLOC_DEFAULT): Parenthesize arguments as needed,
and return properly parenthesized result. * data/lalar1.cc (YYLLOC_DEFAULT): Likewise. * data/yacc.c (YYLLOC_DEFAULT): Likewise. Remove unnecessary parentheses from uses. * doc/bison.texinfo (Location Default Action): Describe the conventions for parentheses.
This commit is contained in:
10
data/glr.c
10
data/glr.c
@@ -414,14 +414,14 @@ static const ]b4_int_type_for([b4_stos])[ yystos[] =
|
||||
|
||||
#ifndef YYLLOC_DEFAULT
|
||||
# define YYLLOC_DEFAULT(yyCurrent, yyRhs, YYN) \
|
||||
(yyCurrent).first_line = YYRHSLOC(yyRhs,1).first_line; \
|
||||
(yyCurrent).first_column = YYRHSLOC(yyRhs,1).first_column; \
|
||||
(yyCurrent).last_line = YYRHSLOC(yyRhs,YYN).last_line; \
|
||||
(yyCurrent).last_column = YYRHSLOC(yyRhs,YYN).last_column;
|
||||
((yyCurrent).first_line = YYRHSLOC(yyRhs, 1).first_line, \
|
||||
(yyCurrent).first_column = YYRHSLOC(yyRhs, 1).first_column, \
|
||||
(yyCurrent).last_line = YYRHSLOC(yyRhs, YYN).last_line, \
|
||||
(yyCurrent).last_column = YYRHSLOC(yyRhs, YYN).last_column)
|
||||
#endif
|
||||
]],[
|
||||
#ifndef YYLLOC_DEFAULT
|
||||
# define YYLLOC_DEFAULT(yyCurrent, yyRhs, YYN)
|
||||
# define YYLLOC_DEFAULT(yyCurrent, yyRhs, YYN) ((void) 0)
|
||||
#endif
|
||||
])[
|
||||
|
||||
|
||||
Reference in New Issue
Block a user