diff options
author | Bruno Haible <bruno@clisp.org> | 2005-10-10 11:03:22 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:12:53 +0200 |
commit | b32bf490fdc252576e6a3746126704ba0faf8391 (patch) | |
tree | 9e6d69d3b8efa689fc5d4d53da5137bdcf1515ef /gettext-tools | |
parent | e096ee8a3a8b48a1b248fa532ebc7915fe6678a5 (diff) | |
download | external_gettext-b32bf490fdc252576e6a3746126704ba0faf8391.zip external_gettext-b32bf490fdc252576e6a3746126704ba0faf8391.tar.gz external_gettext-b32bf490fdc252576e6a3746126704ba0faf8391.tar.bz2 |
xgettext_comment_* API is not public any more.
Diffstat (limited to 'gettext-tools')
-rw-r--r-- | gettext-tools/src/ChangeLog | 7 | ||||
-rw-r--r-- | gettext-tools/src/xgettext.c | 9 | ||||
-rw-r--r-- | gettext-tools/src/xgettext.h | 7 |
3 files changed, 13 insertions, 10 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 7763b43..d2aceb0 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,5 +1,12 @@ 2005-10-03 Bruno Haible <bruno@clisp.org> + * 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 <bruno@clisp.org> + Use savable_comment_* API instead of xgettext_comment_* API. * x-awk.c (phase2_getc): Call savable_comment_add instead of xgettext_comment_add. diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c index 1aa34a5..9e8f079 100644 --- a/gettext-tools/src/xgettext.c +++ b/gettext-tools/src/xgettext.c @@ -1467,9 +1467,12 @@ A --flag argument doesn't have the <keyword>:<argnum>:[pass-]<flag> 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 727b2a8..487c507 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, |