summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2000-09-07 15:01:18 +0000
committern_hibma <n_hibma@FreeBSD.org>2000-09-07 15:01:18 +0000
commit5240cf8e358ee03ca9844377bddf6386d80e8f5d (patch)
tree1253c260c8cfb94dc7686054996481bf9cb787f7 /usr.bin/yacc
parent564829fb8395cc2f8cedd273ef0e9e988e80d3e5 (diff)
downloadFreeBSD-src-5240cf8e358ee03ca9844377bddf6386d80e8f5d.zip
FreeBSD-src-5240cf8e358ee03ca9844377bddf6386d80e8f5d.tar.gz
Fix breakage introduced in rev.1.7. yystacksize and yysslim are global and
should be prefixed by YYPREFIX as well. Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers are used in executable.
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r--usr.bin/yacc/output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/yacc/output.c b/usr.bin/yacc/output.c
index 18d5ee1..2130969 100644
--- a/usr.bin/yacc/output.c
+++ b/usr.bin/yacc/output.c
@@ -166,6 +166,10 @@ output_prefix()
fprintf(code_file, "#define yyname %sname\n", symbol_prefix);
++outline;
fprintf(code_file, "#define yyrule %srule\n", symbol_prefix);
+ ++outline;
+ fprintf(code_file, "#define yysslim %ssslim\n", symbol_prefix);
+ ++outline;
+ fprintf(code_file, "#define yystacksize %sstacksize\n", symbol_prefix);
}
++outline;
fprintf(code_file, "#define YYPREFIX \"%s\"\n", symbol_prefix);
OpenPOWER on IntegriCloud