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:
parent
f69dfaede1
commit
c613a5e7dc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user