gettext
0713ab45 - libgettextpo: Remove static variables po_lex_charset, po_lex_iconv, po_lex_isolate_*, po_lex_weird_cjk.

Commit
147 days ago
libgettextpo: Remove static variables po_lex_charset, po_lex_iconv, po_lex_isolate_*, po_lex_weird_cjk. * gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add fields po_lex_isolate_start, po_lex_isolate_end. * gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize the new abstract_catalog_reader_ty fields. (parse_comment_filepos): Update. * gettext-tools/src/po-gram.h: Include <iconv.h>. (struct po_parser_state): Add fields po_lex_charset, po_lex_iconv, po_lex_weird_cjk. * gettext-tools/src/po-lex.h (lex_end): Add a 'struct po_parser_state *' parameter. (po_lex_charset_set): New declaration, moved here from po-charset.h. * gettext-tools/src/po-lex.c: Include xmalloca.h, basename-lgpl.h, progname.h, c-strstr.h. (po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Moved here from po-charset.c. Take a 'struct po_parser_state *' as argument. (mb_width, mbfile_getc, lex_start): Update. (lex_end): Add a 'struct po_parser_state *' parameter. * gettext-tools/src/po-charset.h (po_lex_charset, po_lex_isolate_start, po_lex_isolate_end, po_lex_iconv, po_lex_weird_cjk): Remove declarations. (po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Remove declarations. * gettext-tools/src/po-charset.c: Don't include <stdlib.h>, xmalloca.h, xvasprintf.h, po-xerror.h, basename-lgpl.h, progname.h, c-strstr.h. (po_lex_charset, po_lex_isolate_start, po_lex_isolate_end, po_lex_iconv, po_lex_weird_cjk): Remove variables. (po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Moved to po-lex.c. * gettext-tools/src/po-gram-gen.y: Update. * gettext-tools/src/read-po.c (po_parse): Update. * gettext-tools/woe32dll/gettextsrc-exports.c (po_lex_charset, po_lex_isolate_start, po_lex_isolate_end, po_lex_iconv, po_lex_weird_cjk): Remove exports.
Author
Committer
Parents
Loading