From: Bruno Haible Date: Mon, 10 Oct 2005 11:03:22 +0000 (+0000) Subject: xgettext_comment_* API is not public any more. X-Git-Tag: v0.15~372 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b32bf490fdc252576e6a3746126704ba0faf8391;p=thirdparty%2Fgettext.git xgettext_comment_* API is not public any more. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 7763b4388..d2aceb07b 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,10 @@ +2005-10-03 Bruno Haible + + * xgettext.h (xgettext_comment_add, xgettext_comment, + xgettext_comment_reset): Remove declarations. + * xgettext.c (xgettext_comment_add, xgettext_comment, + xgettext_comment_reset): Make static. + 2005-10-03 Bruno Haible Use savable_comment_* API instead of xgettext_comment_* API. diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c index 1aa34a533..9e8f079b5 100644 --- a/gettext-tools/src/xgettext.c +++ b/gettext-tools/src/xgettext.c @@ -1467,9 +1467,12 @@ A --flag argument doesn't have the ::[pass-] syntax: %s") } +/* Comment handling: There is a list of automatic comments that may be appended + to the next message. Used by remember_a_message(). */ + static string_list_ty *comment; -void +static void xgettext_comment_add (const char *str) { if (comment == NULL) @@ -1477,7 +1480,7 @@ xgettext_comment_add (const char *str) string_list_append (comment, str); } -const char * +static const char * xgettext_comment (size_t n) { if (comment == NULL || n >= comment->nitems) @@ -1485,7 +1488,7 @@ xgettext_comment (size_t n) return comment->item[n]; } -void +static void xgettext_comment_reset () { if (comment != NULL) diff --git a/gettext-tools/src/xgettext.h b/gettext-tools/src/xgettext.h index 727b2a897..487c5078d 100644 --- a/gettext-tools/src/xgettext.h +++ b/gettext-tools/src/xgettext.h @@ -141,13 +141,6 @@ extern char *from_current_source_encoding (const char *string, 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 (const char *str); -extern const char *xgettext_comment (size_t n); -extern void xgettext_comment_reset (void); - - /* Comment handling for backends which support combining adjacent strings even across lines. In these backends we cannot use the xgettext_comment* functions directly,