From: Bruno Haible Date: Mon, 20 Aug 2001 13:22:32 +0000 (+0000) Subject: Comments X-Git-Tag: v0.11~541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaad536c48d3a9113e201e5f936472c623c14518;p=thirdparty%2Fgettext.git Comments --- diff --git a/src/xgettext.c b/src/xgettext.c index 3dc800365..762f06f4b 100644 --- a/src/xgettext.c +++ b/src/xgettext.c @@ -830,7 +830,7 @@ remember_a_message (mlp, string, pos) break; /* To reduce the possibility of unwanted matches be do a two - step match: the line must contains `xgettext:' and one of + step match: the line must contain `xgettext:' and one of the possible format description strings. */ if (strstr (s, "xgettext:") != NULL) { @@ -1069,7 +1069,7 @@ test_whether_c_format (s) static scanner_fp language_to_scanner (name) - const char *name; + const char *name; { typedef struct table_ty table_ty; struct table_ty @@ -1099,7 +1099,7 @@ language_to_scanner (name) static const char * extension_to_language (extension) - const char *extension; + const char *extension; { typedef struct table_ty table_ty; struct table_ty diff --git a/src/xgettext.h b/src/xgettext.h index 80e9cc460..381be5475 100644 --- a/src/xgettext.h +++ b/src/xgettext.h @@ -26,14 +26,21 @@ extern int line_comment; +/* List of messages whose msgids must not be extracted, or NULL. + Used by remember_a_message(). */ extern message_list_ty *exclude; +/* Comment handling: There is a list of automatic comments that may be appended + to the next message. Used by remember_a_message(). */ extern void xgettext_comment_add PARAMS ((const char *str)); extern const char *xgettext_comment PARAMS ((size_t n)); extern void xgettext_comment_reset PARAMS ((void)); +/* Add a message to the list of extracted messages. */ extern message_ty *remember_a_message PARAMS ((message_list_ty *mlp, char *string, lex_pos_ty *pos)); +/* Add an msgid_plural to a message previously returned by + remember_a_message. */ extern void remember_a_message_plural PARAMS ((message_ty *mp, char *string, lex_pos_ty *pos));