]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Improve support for string formatting through methods.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 14:25:27 +0000 (16:25 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Jul 2024 14:25:27 +0000 (16:25 +0200)
commit1d449499cbadd2f6b484c5ca371d4e0e193584a1
treeac71d826feac1b695a743293787386a3b66c61d8
parentab89d472725638aae52dd72fe57b6773d03999ac
xgettext: Improve support for string formatting through methods.

* gettext-tools/src/xg-arglist-context.h: Add comments.
(struct formatstring_region_ty): Add 'pass_format' field.
(struct flag_region_ty): Add subregion, nsubregions, nsubregions_max,
inherit_from_parent_region fields.
(new_sub_region): New declaration.
(set_format_flag_on_region): New declaration.
* gettext-tools/src/xg-arglist-context.c: Include xg-message.h.
(the_null_context_region): Update initializer.
(inheriting_region): Initialize the new fields.
(new_sub_region): New function.
(unref_region): Unreference also the subregions.
(set_format_flag_on_region): New function.
* gettext-tools/src/xg-message.h (set_format_flag_from_context): Fix typo in
comment.
gettext-tools/src/xg-arglist-context.c
gettext-tools/src/xg-arglist-context.h
gettext-tools/src/xg-message.h