mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
* src/reader.h, src/reader.c (gram_error): ... can't get
yycontrol without making too strong assumptions on the parser itself. * src/output.c (prepare_tokens): Use the real 0th value of token_translations instead of `0'. * src/parse-gram.y (yyerror): Don't rely on yycontrol being visible here. * data/yacc.c (yyreport_parse_error): Rename yylocation as yylloc for the time being: %locations ought to provide it to yyerror.
This commit is contained in:
@@ -305,8 +305,9 @@ static void
|
||||
prepare_tokens (void)
|
||||
{
|
||||
muscle_insert_symbol_number_table ("translate",
|
||||
token_translations,
|
||||
0, 1, max_user_token_number + 1);
|
||||
token_translations,
|
||||
token_translations[0],
|
||||
1, max_user_token_number + 1);
|
||||
|
||||
{
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user