]> git.ipfire.org Git - thirdparty/gettext.git/commit
libgettextpo: Remove static variable pass_comments.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 00:44:40 +0000 (02:44 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 00:44:40 +0000 (02:44 +0200)
commit2d45a289573face7f6a738fe645764d64398f07c
tree7c84591f4a62294bf977924f93657c21f92b0aae
parent388b4024d93525de7dd2627a804b212a082a3b7d
libgettextpo: Remove static variable pass_comments.

* gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add
pass_comments field.
* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize
pass_comments field.
* gettext-tools/src/read-catalog.c (default_parse_brief): Assign the
pass_comments field, instead of calling po_lex_pass_comments.
* gettext-tools/src/po-lex.h (po_lex_pass_comments): Remove declaration.
* gettext-tools/src/po-lex.c (pass_comments): Remove variable.
(po_gram_lex): Update.
(po_lex_pass_comments): Remove function.
gettext-tools/src/po-lex.c
gettext-tools/src/po-lex.h
gettext-tools/src/read-catalog-abstract.c
gettext-tools/src/read-catalog-abstract.h
gettext-tools/src/read-catalog.c