]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Avoid side effects of the Vala extractor on the C extractor.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Jun 2023 16:57:37 +0000 (18:57 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Jun 2023 16:58:32 +0000 (18:58 +0200)
commitc1f24ed01d9f39b812c898603c7ab84b39a434fc
tree6bcbaf6908b82b68dc01db9edc90cc93de3854f7
parentbf9b3df4e0e7496fae52f814cc04d2ecc3e365f4
xgettext: Avoid side effects of the Vala extractor on the C extractor.

* gettext-tools/src/xgettext.h (xgettext_record_flag): Add more comments.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Parse an optional
'!BACKEND' suffix. When present, limit the effects of c-format related flags to
the specified flag table(s).
* gettext-tools/src/x-vala.c (init_flag_table_vala): Append '!Vala' to all
xgettext_record_flag arguments.
* gettext-tools/tests/xgettext-c-format-6: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
gettext-tools/src/x-vala.c
gettext-tools/src/xgettext.c
gettext-tools/src/xgettext.h
gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-c-format-6 [new file with mode: 0755]