]> git.ipfire.org Git - thirdparty/gettext.git/commit
Remove some uses of global variable gram_pos.
authorBruno Haible <bruno@clisp.org>
Thu, 1 Aug 2024 21:08:21 +0000 (23:08 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 1 Aug 2024 21:08:21 +0000 (23:08 +0200)
commitfed8e168e5543ac6c66a3c187c5d22b4278bb682
treea5fcbeb22ef0127be31e21dfd6548ae8e2372e98
parent4488d0e791bca9b8b244fb154b2871d33a7908f7
Remove some uses of global variable gram_pos.

* gettext-tools/src/msgfmt.c (msgfmt_comment_special): Use the file name from
the catalog reader instead of gram_pos.
* gettext-tools/src/read-desktop.c (gram_pos): Remove declaration.
(pos): New variable.
(phase2_getc, phase2_ungetc, desktop_lex, desktop_parse): Use it instead of
gram_pos.
* gettext-tools/src/read-properties.c (gram_pos): Remove declaration.
(pos): New variable.
(phase2_getc, phase2_ungetc, phase4_getuc, read_escaped_string,
properties_parse): Use it instead of gram_pos.
* gettext-tools/src/read-stringtable.c (gram_pos): Remove declaration.
(pos): New variable.
(phase3_getc, phase3_ungetc, stringtable_parse): Use it instead of gram_pos.
(read_string): Likewise. Rename a parameter.
(conv_from_ucs4): Rename a local variable.
gettext-tools/src/msgfmt.c
gettext-tools/src/read-desktop.c
gettext-tools/src/read-properties.c
gettext-tools/src/read-stringtable.c