gettext
6179430a - libgettextpo: Remove static variable 'plural_counter'.

Commit
1 year ago
libgettextpo: Remove static variable 'plural_counter'. * gettext-tools/src/po-gram.h (struct po_parser_state): New type. (po_gram_parse): Add 'struct po_parser_state *ps' parameter. * gettext-tools/src/po-gram-gen.y: Add %parse-param declaration. Access ps->plural_counter instead of plural_counter. (plural_counter): Remove variable. * gettext-tools/src/po-lex.h (po_gram_error): Add 'struct po_parser_state *ps' parameter. * gettext-tools/src/po-lex.c: Include po-gram.h. (po_gram_error): Add 'struct po_parser_state *ps' parameter. (mbfile_getc, control_sequence): Update po_gram_error calls. * gettext-tools/src/read-po.c (po_parse): Pass a 'struct po_parser_state *' to po_gram_parse.
Author
Parents
Loading