From 158c687b65141c04a90dc458627821c541b20738 Mon Sep 17 00:00:00 2001 From: Paul Hilfinger Date: Mon, 13 May 2002 00:44:52 +0000 Subject: [PATCH] * src/scan-skel.l: Correct off-by-one error in handling of __oline__. --- ChangeLog | 1 + src/scan-skel.l | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53c8ccf9..c45fa3a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2002-05-12 Paul Hilfinger + * 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. diff --git a/src/scan-skel.l b/src/scan-skel.l index e7eeaa56..be336079 100644 --- a/src/scan-skel.l +++ b/src/scan-skel.l @@ -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; -- 2.47.2