[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/16] style: prefer b4_has_translations_if
From: |
Akim Demaille |
Subject: |
[PATCH 04/16] style: prefer b4_has_translations_if |
Date: |
Sun, 26 Apr 2020 16:40:39 +0200 |
* data/skeletons/glr.c, data/skeletons/yacc.c: here.
---
data/skeletons/glr.c | 2 +-
data/skeletons/yacc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/skeletons/glr.c b/data/skeletons/glr.c
index 8acf47c7..39d4071f 100644
--- a/data/skeletons/glr.c
+++ b/data/skeletons/glr.c
@@ -626,7 +626,7 @@ yysymbol_name (yysymbol_kind_t yysymbol)
static const char *const yy_sname[] =
{
]b4_symbol_names[
- };]m4_ifdef([b4_translatable], [[
+ };]b4_has_translations_if([[
/* YYTRANSLATABLE[SYMBOL-NUM] -- Whether YY_SNAME[SYMBOL-NUM] is
internationalizable. */
static ]b4_int_type_for([b4_translatable])[ yytranslatable[] =
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index 59f0b644..20f84c7d 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -681,7 +681,7 @@ yysymbol_name (yysymbol_kind_t yysymbol)
static const char *const yy_sname[] =
{
]b4_symbol_names[
- };]m4_ifdef([b4_translatable], [[
+ };]b4_has_translations_if([[
/* YYTRANSLATABLE[SYMBOL-NUM] -- Whether YY_SNAME[SYMBOL-NUM] is
internationalizable. */
static ]b4_int_type_for([b4_translatable])[ yytranslatable[] =
--
2.26.2
- [PATCH 00/16] Returning the error token from the scanner does not trigger an error message, Akim Demaille, 2020/04/26
- [PATCH 07/16] c++: fix a few style issues, Akim Demaille, 2020/04/26
- [PATCH 03/16] style: glr.c: fix indentation issue, Akim Demaille, 2020/04/26
- [PATCH 04/16] style: prefer b4_has_translations_if,
Akim Demaille <=
- [PATCH 02/16] style: fix a few remaining 'type' instead of 'kind', Akim Demaille, 2020/04/26
- [PATCH 01/16] skeletons: make the warning about implementation details clearer, Akim Demaille, 2020/04/26
- [PATCH 06/16] all: prefer YYERRCODE to YYERROR, Akim Demaille, 2020/04/26
- [PATCH 08/16] c++: always define symbol_name, Akim Demaille, 2020/04/26
- [PATCH 09/16] c++: make valid to print the empty symbol, Akim Demaille, 2020/04/26
- [PATCH 11/16] examples: bistromathic: comment changes, Akim Demaille, 2020/04/26
- [PATCH 10/16] doc: hacking tricks, Akim Demaille, 2020/04/26
- [PATCH 05/16] style: glr.c: clarify, Akim Demaille, 2020/04/26
- [PATCH 13/16] examples: bistromathic: demonstrate error recovery, Akim Demaille, 2020/04/26
- [PATCH 12/16] examples: bistromathic: when quitting, close the current line, Akim Demaille, 2020/04/26