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 don't output extern YYSTYPE decl if ...
details: https://anonhg.NetBSD.org/src/rev/9aa22f333f8b
branches: trunk
changeset: 350854:9aa22f333f8b
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 24 22:28:42 2017 +0000
description:
don't output extern YYSTYPE decl if pure_parser.
diffstat:
external/bsd/byacc/dist/output.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a30b828ff22c -r 9aa22f333f8b external/bsd/byacc/dist/output.c
--- a/external/bsd/byacc/dist/output.c Tue Jan 24 22:12:42 2017 +0000
+++ b/external/bsd/byacc/dist/output.c Tue Jan 24 22:28:42 2017 +0000
@@ -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 @@
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);
}
}
}
Home |
Main Index |
Thread Index |
Old Index