mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +00:00
lalr1.cc: location_type: make sure we don't depend on loc.(begin|end).
* tests/calc.at (Span): Instead of begin/end, as in the built-in
location class, use first and last.
Define YYLLOC_DEFAULT to adjust to these changes.
* tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Adjust to the
location_type changes.
(cherry picked from commit c826013fb3)
Conflicts:
tests/calc.at
This commit is contained in:
@@ -152,7 +152,7 @@ AT_PURE_LEX_IF(
|
||||
|
||||
AT_SKEL_CC_IF(
|
||||
[AT_LOCATION_TYPE_IF(
|
||||
[AT_LOC_PUSHDEF([begin.l], [begin.c], [end.l], [end.c])],
|
||||
[AT_LOC_PUSHDEF([first.l], [first.c], [last.l], [last.c])],
|
||||
[AT_LOC_PUSHDEF([begin.line], [begin.column], [end.line], [end.column])])],
|
||||
[AT_LOC_PUSHDEF([first_line], [first_column], [last_line], [last_column])])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user