[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
yacc.c: fixes
From: |
Akim Demaille |
Subject: |
yacc.c: fixes |
Date: |
Thu, 23 Jan 2020 06:24:52 +0100 |
commit 16c77b4ba2ece1b52bfd9c381ee8b6226b3e3db5
Author: Akim Demaille <address@hidden>
Date: Wed Jan 22 18:19:20 2020 +0100
yacc.c: fixes
* data/skeletons/yacc.c: Avoid warnings about unused functions.
Fix typo.
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index 44904d6c..91173caa 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -1192,13 +1192,16 @@ yysyntax_error_arguments (const yyparse_context_t
*yyctx,
]m4_case(b4_percent_define_get([[parse.error]]),
[custom],
[b4_locations_if([[/* The location of this context. */
+static YYLTYPE *
+yyparse_context_location (const yyparse_context_t *yyctx) YY_ATTRIBUTE_UNUSED;
+
static YYLTYPE *
yyparse_context_location (const yyparse_context_t *yyctx)
{
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],
[[[const yyparse_context_t *yyctx]], [[yyctx]]],
b4_parse_param)],
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- yacc.c: fixes,
Akim Demaille <=