Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/byacc/dist fix line accounting.



details:   https://anonhg.NetBSD.org/src/rev/98cb8bb8c478
branches:  trunk
changeset: 748649:98cb8bb8c478
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 29 21:11:57 2009 +0000

description:
fix line accounting.

diffstat:

 external/bsd/byacc/dist/output.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 0a79ac0f5d15 -r 98cb8bb8c478 external/bsd/byacc/dist/output.c
--- a/external/bsd/byacc/dist/output.c  Thu Oct 29 21:03:59 2009 +0000
+++ b/external/bsd/byacc/dist/output.c  Thu Oct 29 21:11:57 2009 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: output.c,v 1.3 2009/10/29 21:03:59 christos Exp $      */
+/*     $NetBSD: output.c,v 1.4 2009/10/29 21:11:57 christos Exp $      */
 /* Id: output.c,v 1.21 2009/10/27 10:55:05 tom Exp */
 
 #include "defs.h"
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: output.c,v 1.3 2009/10/29 21:03:59 christos Exp $");
+__RCSID("$NetBSD: output.c,v 1.4 2009/10/29 21:11:57 christos Exp $");
 
 static int nvectors;
 static int nentries;
@@ -108,6 +108,7 @@
        fprintf(code_file, "# define YYLEX yylex(YYLEX_PARAM)\n");
     ++outline;
     fprintf(code_file, "#else\n");
+    ++outline;
     if (pure_parser)
        fprintf(code_file, "# define YYLEX yylex(&yylval, ");
     else



Home | Main Index | Thread Index | Old Index