]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Split source code into smaller files.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Nov 2018 19:20:19 +0000 (20:20 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Nov 2018 23:25:33 +0000 (00:25 +0100)
commitc1c57702bcf034bbc5f2735f0445f6456158da5f
tree5f3b74bf55f6ec85bb8dc73433e38f9251c34891
parent99e57c0c82cb2d4e0e42b11d6c632094621a8bbd
xgettext: Split source code into smaller files.

* gettext-tools/src/rc-str-list.h: New file, extracted from
gettext-tools/src/xgettext.h.
* gettext-tools/src/xg-encoding.h: Likewise.
* gettext-tools/src/xg-mixed-string.h: Likewise.
* gettext-tools/src/xg-arglist-context.h: Likewise.
* gettext-tools/src/xg-arglist-callshape.h: Likewise.
* gettext-tools/src/xg-arglist-parser.h: Likewise.
* gettext-tools/src/xg-message.h: Likewise.
* gettext-tools/src/xg-encoding.c: New file, extracted from
gettext-tools/src/xgettext.c.
* gettext-tools/src/xg-mixed-string.c: Likewise.
* gettext-tools/src/xg-arglist-context.c: Likewise.
* gettext-tools/src/xg-arglist-callshape.c: Likewise.
* gettext-tools/src/xg-arglist-parser.c: Likewise.
* gettext-tools/src/xg-message.c: Likewise.
* gettext-tools/src/xgettext.h: Remove declarations that moved to rc-str-list.h
and xg-*.h.
(add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix,
default_syntax_check, current_formatstring_parser1,
current_formatstring_parser2, current_formatstring_parser3): New declarations.
(xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment,
recognize_qt_formatstrings): New declarations.
(substring_match): Remove obsolete declaration.
* gettext-tools/src/xgettext.c: Include xgettext.h first.
Include <iconv.h>, rc-str-list.h, xg-encoding.h, xg-arglist-context.h,
xg-message.h. Don't include xsize.h, po-xerror.h, unistr.h.
(add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix,
default_syntax_check): Make global.
(split_keywordspec, insert_keyword_callshape): Moved to xg-arglist-callshape.c.
(null_context, passthrough_context, inherited_context,
null_context_list_iterator, passthrough_context_circular_list,
passthrough_context_list_iterator, flag_context_list_iterator,
flag_context_list_iterator_advance, flag_context_list_table_lookup): Move to
xg-arglist-context.c.
(flag_context_list_table_insert): Move bulk of body to new function
flag_context_list_table_add in xg-arglist-context.c.
(xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment):
Make global.
(current_formatstring_parser1, current_formatstring_parser2,
current_formatstring_parser3): Make global.
(non_ascii_error_message, from_current_source_encoding): Move to xg-encoding.c.
(CONVERT_STRING, set_format_flags_from_context, warn_format_string,
remember_a_message, remember_a_message_plural): Move to xg-message.c.
(arglist_parser_alloc, arglist_parser_clone, arglist_parser_remember,
arglist_parser_remember_msgctxt, arglist_parser_decidedp, arglist_parser_done):
Move to xg-arglist-parser.c.
(mixed_string_buffer_alloc, mixed_string_buffer_append_to_curr_buffer,
mixed_string_buffer_grow_utf8_buffer, mixed_string_buffer_append_to_utf8_buffer,
mixed_string_buffer_flush_utf16_surr, mixed_string_buffer_flush_curr_buffer,
mixed_string_buffer_append_char, mixed_string_buffer_append_unicode,
mixed_string_buffer_done): Move to xg-mixed-string.c.
(recognize_qt_formatstrings): New function.
* gettext-tools/src/x-*.h: Include xg-arglist-context.h instead of xgettext.h.
* gettext-tools/src/x-*.c: Update include directives.
* gettext-tools/src/its.h: Likewise.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add the new .h files.
(xgettext_SOURCES): Add the new .c files.
* gettext-tools/src/FILES: Update.
62 files changed:
gettext-tools/src/FILES
gettext-tools/src/Makefile.am
gettext-tools/src/its.h
gettext-tools/src/rc-str-list.h [new file with mode: 0644]
gettext-tools/src/x-awk.c
gettext-tools/src/x-awk.h
gettext-tools/src/x-c.c
gettext-tools/src/x-c.h
gettext-tools/src/x-csharp.c
gettext-tools/src/x-csharp.h
gettext-tools/src/x-desktop.c
gettext-tools/src/x-desktop.h
gettext-tools/src/x-elisp.c
gettext-tools/src/x-elisp.h
gettext-tools/src/x-java.c
gettext-tools/src/x-java.h
gettext-tools/src/x-javascript.c
gettext-tools/src/x-javascript.h
gettext-tools/src/x-librep.c
gettext-tools/src/x-librep.h
gettext-tools/src/x-lisp.c
gettext-tools/src/x-lisp.h
gettext-tools/src/x-lua.c
gettext-tools/src/x-lua.h
gettext-tools/src/x-perl.c
gettext-tools/src/x-perl.h
gettext-tools/src/x-php.c
gettext-tools/src/x-php.h
gettext-tools/src/x-po.c
gettext-tools/src/x-po.h
gettext-tools/src/x-properties.h
gettext-tools/src/x-python.c
gettext-tools/src/x-python.h
gettext-tools/src/x-rst.c
gettext-tools/src/x-rst.h
gettext-tools/src/x-scheme.c
gettext-tools/src/x-scheme.h
gettext-tools/src/x-sh.c
gettext-tools/src/x-sh.h
gettext-tools/src/x-smalltalk.c
gettext-tools/src/x-smalltalk.h
gettext-tools/src/x-stringtable.h
gettext-tools/src/x-tcl.c
gettext-tools/src/x-tcl.h
gettext-tools/src/x-vala.c
gettext-tools/src/x-vala.h
gettext-tools/src/x-ycp.c
gettext-tools/src/x-ycp.h
gettext-tools/src/xg-arglist-callshape.c [new file with mode: 0644]
gettext-tools/src/xg-arglist-callshape.h [new file with mode: 0644]
gettext-tools/src/xg-arglist-context.c [new file with mode: 0644]
gettext-tools/src/xg-arglist-context.h [new file with mode: 0644]
gettext-tools/src/xg-arglist-parser.c [new file with mode: 0644]
gettext-tools/src/xg-arglist-parser.h [new file with mode: 0644]
gettext-tools/src/xg-encoding.c [new file with mode: 0644]
gettext-tools/src/xg-encoding.h [new file with mode: 0644]
gettext-tools/src/xg-message.c [new file with mode: 0644]
gettext-tools/src/xg-message.h [new file with mode: 0644]
gettext-tools/src/xg-mixed-string.c [new file with mode: 0644]
gettext-tools/src/xg-mixed-string.h [new file with mode: 0644]
gettext-tools/src/xgettext.c
gettext-tools/src/xgettext.h