From 5839a8821d825fa6c00baddeeca9a1544f925689 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 7 May 2014 18:48:25 +0900 Subject: 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. --- gettext-tools/src/x-desktop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gettext-tools/src/x-desktop.h') 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, -- cgit v1.1