mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
yacc.c: fixes
* data/skeletons/yacc.c: Avoid warnings about unused functions. Fix typo.
This commit is contained in:
@@ -1192,13 +1192,16 @@ yysyntax_error_arguments (const yyparse_context_t *yyctx,
|
|||||||
]m4_case(b4_percent_define_get([[parse.error]]),
|
]m4_case(b4_percent_define_get([[parse.error]]),
|
||||||
[custom],
|
[custom],
|
||||||
[b4_locations_if([[/* The location of this context. */
|
[b4_locations_if([[/* The location of this context. */
|
||||||
|
static YYLTYPE *
|
||||||
|
yyparse_context_location (const yyparse_context_t *yyctx) YY_ATTRIBUTE_UNUSED;
|
||||||
|
|
||||||
static YYLTYPE *
|
static YYLTYPE *
|
||||||
yyparse_context_location (const yyparse_context_t *yyctx)
|
yyparse_context_location (const yyparse_context_t *yyctx)
|
||||||
{
|
{
|
||||||
return yyctx->yylloc;
|
return yyctx->yylloc;
|
||||||
}]])[
|
}]])[
|
||||||
|
|
||||||
/* User defined funtion to report a syntax error. */
|
/* User defined function to report a syntax error. */
|
||||||
]b4_function_declare([yyreport_syntax_error], [static int],
|
]b4_function_declare([yyreport_syntax_error], [static int],
|
||||||
[[[const yyparse_context_t *yyctx]], [[yyctx]]],
|
[[[const yyparse_context_t *yyctx]], [[yyctx]]],
|
||||||
b4_parse_param)],
|
b4_parse_param)],
|
||||||
|
|||||||
Reference in New Issue
Block a user