mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/scan-skel.l: Correct off-by-one error in handling of __oline__.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
|
||||
|
||||
* src/scan-skel.l: Correct off-by-one error in handling of __oline__.
|
||||
* data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
|
||||
32-bit arithmetic.
|
||||
* data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
|
||||
|
||||
@@ -41,7 +41,7 @@ static char *yyoutname = NULL;
|
||||
"@<:@" fputc ('[', yyout);
|
||||
"@:>@" fputc (']', yyout);
|
||||
|
||||
"__oline__" fprintf (yyout, "%d", yylineno);
|
||||
"__oline__" fprintf (yyout, "%d", yylineno+1);
|
||||
"__ofile__" fprintf (yyout, "%s", yyoutname);
|
||||
[^@_\n]+ ECHO;
|
||||
\n+ yylineno += yyleng; ECHO;
|
||||
|
||||
Reference in New Issue
Block a user