summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/x-smalltalk.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-10-10 11:02:12 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:12:53 +0200
commite096ee8a3a8b48a1b248fa532ebc7915fe6678a5 (patch)
tree97a14f80cc7ee88d954327c654af9d9555e6661a /gettext-tools/src/x-smalltalk.c
parent879c9b36510d8e940ca850c06ce26a8a05525984 (diff)
downloadexternal_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-smalltalk.c')
-rw-r--r--gettext-tools/src/x-smalltalk.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gettext-tools/src/x-smalltalk.c b/gettext-tools/src/x-smalltalk.c
index 46faa00..76383a5 100644
--- a/gettext-tools/src/x-smalltalk.c
+++ b/gettext-tools/src/x-smalltalk.c
@@ -1,5 +1,5 @@
/* xgettext Smalltalk backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
@@ -148,7 +148,7 @@ comment_line_end ()
buffer = xrealloc (buffer, bufmax);
}
buffer[buflen] = '\0';
- xgettext_comment_add (buffer);
+ savable_comment_add (buffer);
}
@@ -242,7 +242,7 @@ phase2_get (token_ty *tp)
case '\n':
if (last_non_comment_line > last_comment_line)
- xgettext_comment_reset ();
+ savable_comment_reset ();
/* FALLTHROUGH */
case ' ':
case '\t':
@@ -541,7 +541,9 @@ extract_smalltalk (FILE *f,
lex_pos_ty pos;
pos.file_name = logical_file_name;
pos.line_number = token.line_number;
+ savable_comment_to_xgettext_comment (savable_comment);
remember_a_message (mlp, token.string, null_context, &pos);
+ savable_comment_reset ();
state = 0;
break;
}
@@ -550,8 +552,10 @@ extract_smalltalk (FILE *f,
lex_pos_ty pos;
pos.file_name = logical_file_name;
pos.line_number = token.line_number;
+ savable_comment_to_xgettext_comment (savable_comment);
plural_mp = remember_a_message (mlp, token.string,
null_context, &pos);
+ savable_comment_reset ();
state = 4;
break;
}
@@ -560,8 +564,10 @@ extract_smalltalk (FILE *f,
lex_pos_ty pos;
pos.file_name = logical_file_name;
pos.line_number = token.line_number;
+ savable_comment_to_xgettext_comment (savable_comment);
remember_a_message_plural (plural_mp, token.string,
null_context, &pos);
+ savable_comment_reset ();
state = 0;
break;
}