]> git.ipfire.org Git - thirdparty/gettext.git/commit
libgettextpo: Remove static variables 'buf', 'bufmax'.
authorBruno Haible <bruno@clisp.org>
Thu, 1 Aug 2024 15:40:17 +0000 (17:40 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 1 Aug 2024 20:31:22 +0000 (22:31 +0200)
commit9229a07a01a5ea44f42e8f612f2248b5fb979ecc
tree60a4bfb6534e5a175ff5b4d6a6749ddea61b3e8b
parentc617c40eb0588768fbc7806087fca7dc4920e0e6
libgettextpo: Remove static variables 'buf', 'bufmax'.

* gettext-tools/src/po-gram.h (struct po_parser_state): Add fields buf, bufmax.
* gettext-tools/src/po-lex.c (lex_start): Initialize them.
(lex_end): Free the buf field.
(po_gram_lex): Use these fields instead of static variables.
gettext-tools/src/po-gram.h
gettext-tools/src/po-lex.c