summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/x-desktop.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-desktop.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-desktop.h')
-rw-r--r--gettext-tools/src/x-desktop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext-tools/src/x-desktop.h b/gettext-tools/src/x-desktop.h
index d9f1ff4..d24f174 100644
--- a/gettext-tools/src/x-desktop.h
+++ b/gettext-tools/src/x-desktop.h
@@ -31,7 +31,7 @@ extern "C" {
{ "desktop", "Desktop" }, \
#define SCANNERS_DESKTOP \
- { "Desktop", extract_desktop, NULL, NULL, NULL }, \
+ { "Desktop", extract_desktop, NULL, NULL, NULL, NULL }, \
/* Scan a Desktop Entry file and add its translatable strings to mdlp. */
extern void extract_desktop (FILE *fp, const char *real_filename,