summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/x-csharp.h
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-05-07 18:48:25 +0900
committerDaiki Ueno <ueno@gnu.org>2014-05-09 17:32:09 +0900
commit5839a8821d825fa6c00baddeeca9a1544f925689 (patch)
tree1258335bb537eeb8230153b211afaa9caa46ea89 /gettext-tools/src/x-csharp.h
parent014af300f8da693fa15361c9ae310b45fc7c16b2 (diff)
downloadexternal_gettext-5839a8821d825fa6c00baddeeca9a1544f925689.zip
external_gettext-5839a8821d825fa6c00baddeeca9a1544f925689.tar.gz
external_gettext-5839a8821d825fa6c00baddeeca9a1544f925689.tar.bz2
xgettext: Provide a way to interpret string literals lazily
* xgettext.c (extract_ty): New field 'literalstring_parser'. (current_literalstring_parser): New variable. (extract_from_file): Set 'current_literalstring_parser'. (savable_comment_convert_encoding): New function. (arglist_parser_remember_literal): New function. (arglist_parser_remember): Call 'arglist_parser_remember_literal'. (arglist_parser_done): Call literalstring_parser on msgctxt, msgid, and msgid_plural before calling 'remember_a_message'; convert encoding of msgid_comment. * x-*.h: Register 'literalstring_parser' through SCANNER_*. * xgettext.h (enum literalstring_escape_type): New enum. (struct literalstring_parser): New struct. (struct partial_call): New fields 'msgctxt_escape', 'msgid_escape', and 'msgid_plural_escape'. (arglist_parser_remember_literal): New function declaration. (savable_comment_convert_encoding): New function declaration.
Diffstat (limited to 'gettext-tools/src/x-csharp.h')
-rw-r--r--gettext-tools/src/x-csharp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext-tools/src/x-csharp.h b/gettext-tools/src/x-csharp.h
index 9cfb1d8..de37789 100644
--- a/gettext-tools/src/x-csharp.h
+++ b/gettext-tools/src/x-csharp.h
@@ -32,7 +32,7 @@ extern "C" {
#define SCANNERS_CSHARP \
{ "C#", extract_csharp, \
- &flag_table_csharp, &formatstring_csharp, NULL }, \
+ &flag_table_csharp, &formatstring_csharp, NULL, NULL }, \
extern void extract_csharp (FILE *fp, const char *real_filename,
const char *logical_filename,