mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 22:33:03 +00:00
c, c++: rename yysymbol_type_t as yysymbol_kind_t
See https://lists.gnu.org/r/bison-patches/2020-04/msg00031.html * data/skeletons/c.m4, data/skeletons/glr.c, data/skeletons/yacc.c (yysymbol_type_t): Rename as... (yysymbol_kind_t): this. Adjust dependencies. * data/skeletons/c++.m4, data/skeletons/glr.cc, data/skeletons/lalr1.cc (symbol_type_type): Rename as... (symbol_kind_type): this. Adjust dependencies.
This commit is contained in:
@@ -807,11 +807,11 @@ yyreport_syntax_error (const yypcontext_t *ctx)
|
||||
enum { ARGS_MAX = 5 };
|
||||
const char *argv[ARGS_MAX];
|
||||
int argc = 0;
|
||||
yysymbol_type_t unexpected = yypcontext_token (ctx);
|
||||
yysymbol_kind_t unexpected = yypcontext_token (ctx);
|
||||
if (unexpected != YYSYMBOL_YYEMPTY)
|
||||
{
|
||||
argv[argc++] = yysymbol_name (unexpected);
|
||||
yysymbol_type_t expected[ARGS_MAX - 1];
|
||||
yysymbol_kind_t expected[ARGS_MAX - 1];
|
||||
int nexpected = yyexpected_tokens (ctx, expected, ARGS_MAX - 1);
|
||||
if (nexpected < 0)
|
||||
res = nexpected;
|
||||
|
||||
Reference in New Issue
Block a user