]> git.ipfire.org Git - thirdparty/gettext.git/commit
c: Interpret string literals lazily
authorDaiki Ueno <ueno@gnu.org>
Wed, 7 May 2014 09:51:14 +0000 (18:51 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 9 May 2014 08:59:14 +0000 (17:59 +0900)
commit8e319a8bc7e535c5e2b0475d46aecdec0bf89dbe
treef8d8a69e7b7c85fa76dbab19b6e8f4e5ba69df03
parent5839a8821d825fa6c00baddeeca9a1544f925689
c: Interpret string literals lazily

* x-c.c (P7_EOF, P7_STRING_END, P7_QUOTES, P7_QUOTE, P7_NEWLINE)
(UNICODE, IS_UNICODE, UNICODE_VALUE): Remove.
(phase7_get): Remove.
(phase7_ungetc): Remove.
(phase5_get): Use 'phase3_get' directly to extract string
literals; use 'arglist_parser_remember_literal' instead of
'arglist_parser_remember'.
(literalstring_parse): New function.
(literalstring_c): New variable.
(extract_parenthesized): Remove the
'xgettext_current_source_encoding' setting to prevent encoding
conversion around 'arglist_parser_done'.
* x-c.h (SCANNERS_C): Register 'literalstring_c' as a
literalstring_parser.
(literalstring_c): New variable declaration.
gettext-tools/src/ChangeLog
gettext-tools/src/x-c.c
gettext-tools/src/x-c.h
gettext-tools/tests/ChangeLog
gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-c-19 [new file with mode: 0755]