commit ef8965b5f55995cfeede5f3037aff7704e19fe93
Author: Akim Demaille <[email protected]>
Date: Sat Mar 28 15:10:02 2020 +0100
skeletons: fix incorrect type for translatable tokens
* data/skeletons/glr.c, data/skeletons/lalr1.c, data/skeletons/yacc.c:
Fix confusion between the "translatable" and the "translate" tables.
diff --git a/data/skeletons/glr.c b/data/skeletons/glr.c
index e9a020b6..0d9ed2de 100644
--- a/data/skeletons/glr.c
+++ b/data/skeletons/glr.c
@@ -624,7 +624,7 @@ yysymbol_name (yySymbol yysymbol)
};]m4_ifdef([b4_translatable], [[
/* YYTRANSLATABLE[SYMBOL-NUM] -- Whether YYTNAME[SYMBOL-NUM] is
internationalizable. */
- static ]b4_int_type_for([b4_translate])[ yytranslatable[] =
+ static ]b4_int_type_for([b4_translatable])[ yytranslatable[] =
{
]b4_translatable[
};
diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc
index e35b21c5..cc357d41 100644
--- a/data/skeletons/lalr1.cc
+++ b/data/skeletons/lalr1.cc
@@ -596,7 +596,7 @@ m4_if(b4_prefix, [yy], [],
};]m4_ifdef([b4_translatable], [[
/* YYTRANSLATABLE[SYMBOL-NUM] -- Whether YYTNAME[SYMBOL-NUM] is
internationalizable. */
- static ]b4_int_type_for([b4_translate])[ yytranslatable[] =
+ static ]b4_int_type_for([b4_translatable])[ yytranslatable[] =
{
]b4_translatable[
};
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index 701dd30e..1998d551 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -674,7 +674,7 @@ yysymbol_name (int yysymbol)
};]m4_ifdef([b4_translatable], [[
/* YYTRANSLATABLE[SYMBOL-NUM] -- Whether YYTNAME[SYMBOL-NUM] is
internationalizable. */
- static ]b4_int_type_for([b4_translate])[ yytranslatable[] =
+ static ]b4_int_type_for([b4_translatable])[ yytranslatable[] =
{
]b4_translatable[
};