]> git.ipfire.org Git - thirdparty/gettext.git/commit
c: Support C99-style Unicode character escapes
authorDaiki Ueno <ueno@gnu.org>
Fri, 2 May 2014 19:57:37 +0000 (04:57 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 2 May 2014 19:59:14 +0000 (04:59 +0900)
commitbe4cd36c374af15fcba0fb9948046ab95602f513
treec37005f63548d7a9f1c2c72f27fda5aef5b36e6f
parent318c7ed21dab81a04534d273ebb737739208a51d
c: Support C99-style Unicode character escapes

* x-c.c: Include assert.h and po-charset.h.
(P7_QUOTES, P7_QUOTE, P7_NEWLINE): Redefine as a negative integer.
(P7_EOF, P7_STRING_END): New definitions.
(UNICODE): New macro.
(IS_UNICODE): New macro.
(UNICODE_VALUE): New macro.
(phase7_getc): Recognize "\unnnn" and "\Unnnnnnnn".
(phase5_get): Use mixed_string_buffer for parse string literal.
gettext-tools/src/x-c.c