style: stylistic cleanups in the C skeletons

* data/skeletons/glr.c, data/skeletons/yacc.c:
Avoid duplicated declaration of yysymbol_name.
This commit is contained in:
Adrian Vogelsgesang authored and Akim Demaille committed 2020-02-09 15:58:27 +01:00
1 parent 80a4389377
commit bb02acc2ed
2 files changed
+2 -10

No files matched your search

+1 -5
View File
@@ -626,11 +626,7 @@ yysymbol_name (yySymbol yysymbol)
{
return yytname[yysymbol];
}]],
[[/* The user-facing name of the symbol whose (internal) number is
YYSYMBOL. No bounds checking. */
static const char *yysymbol_name (yySymbol yysymbol) YY_ATTRIBUTE_UNUSED;
static const char *
[[static const char *
yysymbol_name (yySymbol yysymbol)
{
static const char *const yy_sname[] =
+1 -5
View File
@@ -621,11 +621,7 @@ yysymbol_name (int yysymbol)
{
return yytname[yysymbol];
}]],
[[/* The user-facing name of the symbol whose (internal) number is
YYSYMBOL. No bounds checking. */
static const char *yysymbol_name (int yysymbol) YY_ATTRIBUTE_UNUSED;
static const char *
[[static const char *
yysymbol_name (int yysymbol)
{
static const char *const yy_sname[] =