bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

off-by-one error in scan-skel.l line number generation


From: Paul Eggert
Subject: off-by-one error in scan-skel.l line number generation
Date: Fri, 3 Jan 2003 06:29:47 -0800 (PST)

I installed this:

2003-01-03  Paul Eggert  <address@hidden>

        * src/scan-skel.l ("@oline@"): Output lineno+1, not lineno.

--- src/scan-skel.l     26 Dec 2002 05:59:06 -0000      1.20
+++ src/scan-skel.l     3 Jan 2003 14:28:35 -0000       1.21
@@ -69,7 +69,7 @@ int skel_lex (void);
 "@{"      fputc ('[', yyout);
 "@}"      fputc (']', yyout);
 
-"@oline@"  fprintf (yyout, "%d", lineno);
+"@oline@"  fprintf (yyout, "%d", lineno + 1);
 "@ofile@"  QPUTS (outname);
 "@output_parser_name@" QPUTS (parser_file_name);
 "@output_header_name@"  QPUTS (spec_defines_file);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]