mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 04:43:03 +00:00
* src/bison.simple (YYLLOC_DEFAULT): Update.
(yyparse): Adjust.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-08-09 Robert Anisko <anisko_r@epita.fr>
|
||||
|
||||
* src/bison.simple (YYLLOC_DEFAULT): Update.
|
||||
(yyparse): Adjust.
|
||||
|
||||
2001-08-08 Marc Autret <autret_m@epita.fr>
|
||||
|
||||
* doc/bison.texinfo: Change @samp{$<@dots{}>} to
|
||||
|
||||
@@ -119,9 +119,9 @@ while (0)
|
||||
its range to the last symbol. */
|
||||
|
||||
#ifndef YYLLOC_DEFAULT
|
||||
# define YYLLOC_DEFAULT(Current, Last) \
|
||||
Current.last_line = Last.last_line; \
|
||||
Current.last_column = Last.last_column;
|
||||
# define YYLLOC_DEFAULT(Current, Rhs, N) \
|
||||
Current.last_line = Rhs[N].last_line; \
|
||||
Current.last_column = Rhs[N].last_column;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -592,7 +592,7 @@ yyreduce:
|
||||
/* Similarly for the default location. Let the user run additional
|
||||
commands if for instance locations are ranges. */
|
||||
yyloc = yylsp[1-yylen];
|
||||
YYLLOC_DEFAULT (yyloc, yylsp[0]);
|
||||
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
|
||||
#endif
|
||||
|
||||
#if YYDEBUG
|
||||
|
||||
Reference in New Issue
Block a user