From 52ababbc8988eacd38d2bc85d7ecdd8ec5725e52 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 29 Apr 2020 08:44:27 +0200 Subject: [PATCH] build: fix syntax-check issues * cfg.mk: We do want to gettextize the examples. * po/POTFILES.in: Adjust. --- cfg.mk | 2 +- po/POTFILES.in | 1 + src/i18n-strings.c | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cfg.mk b/cfg.mk index 8b22f03b..798d4592 100644 --- a/cfg.mk +++ b/cfg.mk @@ -156,7 +156,7 @@ exclude = \ $(call exclude, \ bindtextdomain=^lib/main.c$$ \ cast_of_argument_to_free=^src/muscle-tab.c$$ \ - po_check=^(examples|tests)/|(^po/POTFILES.in|.md)$$ \ + po_check=^tests|(^po/POTFILES.in|.md)$$ \ preprocessor_indentation=^data/|^lib/|^src/parse-gram.[ch]$$ \ program_name=^lib/main.c$$ \ prohibit_always-defined_macros=^data/skeletons/yacc.c$$ \ diff --git a/po/POTFILES.in b/po/POTFILES.in index 4f256b2c..f1a4285a 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,4 +1,5 @@ examples/c/bistromathic/parse.y +examples/java/calc/Calc.y src/complain.c src/conflicts.c src/files.c diff --git a/src/i18n-strings.c b/src/i18n-strings.c index ddf17063..05dee483 100644 --- a/src/i18n-strings.c +++ b/src/i18n-strings.c @@ -27,6 +27,9 @@ strings to gettextize by hand. */ +// Please syntax-check. +#include + static const char *const msgid[] = { N_("end of file"),