Module Name:    src
Committed By:   christos
Date:           Tue Jan 24 22:28:42 UTC 2017

Modified Files:
        src/external/bsd/byacc/dist: output.c

Log Message:
don't output extern YYSTYPE decl if pure_parser.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/bsd/byacc/dist/output.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/byacc/dist/output.c
diff -u src/external/bsd/byacc/dist/output.c:1.15 src/external/bsd/byacc/dist/output.c:1.16
--- src/external/bsd/byacc/dist/output.c:1.15	Sat Jan  9 17:05:33 2016
+++ src/external/bsd/byacc/dist/output.c	Tue Jan 24 17:28:42 2017
@@ -1,11 +1,11 @@
-/*	$NetBSD: output.c,v 1.15 2016/01/09 22:05:33 christos Exp $	*/
+/*	$NetBSD: output.c,v 1.16 2017/01/24 22:28:42 christos Exp $	*/
 
 /* Id: output.c,v 1.74 2014/10/05 23:21:09 tom Exp  */
 
 #include "defs.h"
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: output.c,v 1.15 2016/01/09 22:05:33 christos Exp $");
+__RCSID("$NetBSD: output.c,v 1.16 2017/01/24 22:28:42 christos Exp $");
 
 #define StaticOrR	(rflag ? "" : "static ")
 #define CountLine(fp)   (!rflag || ((fp) == code_file))
@@ -1217,7 +1217,8 @@ output_defines(FILE * fp)
 		while ((c = getc(union_file)) != EOF)
 		    putc_code(fp, c);
 	    }
-	    fprintf(fp, "extern YYSTYPE %slval;\n", symbol_prefix);
+	    if (!pure_parser)
+		fprintf(fp, "extern YYSTYPE %slval;\n", symbol_prefix);
 	}
     }
 }

Reply via email to