* src/scan-skel.l: Correct off-by-one error in handling of __oline__.

This commit is contained in:
Paul Hilfinger
2002-05-13 00:44:52 +00:00
parent fcc618005a
commit 158c687b65
2 changed files with 2 additions and 1 deletions

View File

@@ -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.

View File

@@ -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;