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.
This commit is contained in:
Nick Hibma 2000-09-07 15:01:18 +00:00
parent f69dfaede1
commit c613a5e7dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65572

View File

@ -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);