From 5240cf8e358ee03ca9844377bddf6386d80e8f5d Mon Sep 17 00:00:00 2001 From: n_hibma Date: Thu, 7 Sep 2000 15:01:18 +0000 Subject: Fix breakage introduced in rev.1.7. yystacksize and yysslim are global and should be prefixed by YYPREFIX as well. Only relevant if -p is used. Used in cases where multiple parsers are used in executable. --- usr.bin/yacc/output.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.bin/yacc') 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); -- cgit v1.1