diff options
author | Bruno Haible <bruno@clisp.org> | 2005-10-10 11:02:12 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:12:53 +0200 |
commit | e096ee8a3a8b48a1b248fa532ebc7915fe6678a5 (patch) | |
tree | 97a14f80cc7ee88d954327c654af9d9555e6661a /gettext-tools/src/x-lisp.c | |
parent | 879c9b36510d8e940ca850c06ce26a8a05525984 (diff) | |
download | external_gettext-e096ee8a3a8b48a1b248fa532ebc7915fe6678a5.zip external_gettext-e096ee8a3a8b48a1b248fa532ebc7915fe6678a5.tar.gz external_gettext-e096ee8a3a8b48a1b248fa532ebc7915fe6678a5.tar.bz2 |
Use savable_comment_* API everywhere.
Diffstat (limited to 'gettext-tools/src/x-lisp.c')
-rw-r--r-- | gettext-tools/src/x-lisp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gettext-tools/src/x-lisp.c b/gettext-tools/src/x-lisp.c index 2617b21..f903b55 100644 --- a/gettext-tools/src/x-lisp.c +++ b/gettext-tools/src/x-lisp.c @@ -860,7 +860,7 @@ comment_line_end (size_t chars_to_remove) buffer = xrealloc (buffer, bufmax); } buffer[buflen] = '\0'; - xgettext_comment_add (buffer); + savable_comment_add (buffer); } @@ -954,7 +954,7 @@ read_object (struct object *op, flag_context_ty outer_context) precede it, with no non-whitespace token on a line between both. */ if (last_non_comment_line > last_comment_line) - xgettext_comment_reset (); + savable_comment_reset (); continue; case syntax_illegal: @@ -1100,8 +1100,10 @@ read_object (struct object *op, flag_context_ty outer_context) pos.file_name = logical_file_name; pos.line_number = inner.line_number_at_start; + savable_comment_to_xgettext_comment (savable_comment); mp = remember_a_message (mlp, string_of_object (&inner), inner_context, &pos); + savable_comment_reset (); if (argnum2 > 0) plural_mp = mp; } @@ -1114,8 +1116,10 @@ read_object (struct object *op, flag_context_ty outer_context) pos.file_name = logical_file_name; pos.line_number = inner.line_number_at_start; + savable_comment_to_xgettext_comment (savable_comment); remember_a_message_plural (plural_mp, string_of_object (&inner), inner_context, &pos); + savable_comment_reset (); } } } @@ -1215,8 +1219,10 @@ read_object (struct object *op, flag_context_ty outer_context) pos.file_name = logical_file_name; pos.line_number = op->line_number_at_start; + savable_comment_to_xgettext_comment (savable_comment); remember_a_message (mlp, string_of_object (op), null_context, &pos); + savable_comment_reset (); } last_non_comment_line = line_number; return; |