summaryrefslogtreecommitdiffstats
path: root/src/po.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-01-12 17:00:31 +0000
committerBruno Haible <bruno@clisp.org>2001-01-12 17:00:31 +0000
commit321a5de3ac9fa6888f7229f44c317a2d3b3eb9f3 (patch)
treebd8c4bc9dc94348ca9315698acc18f7e0d8643a1 /src/po.c
parentb479432a465fabfc80e6edfbd5a79b70987c283c (diff)
downloadexternal_gettext-321a5de3ac9fa6888f7229f44c317a2d3b3eb9f3.zip
external_gettext-321a5de3ac9fa6888f7229f44c317a2d3b3eb9f3.tar.gz
external_gettext-321a5de3ac9fa6888f7229f44c317a2d3b3eb9f3.tar.bz2
Plural form handling.
Diffstat (limited to 'src/po.c')
-rw-r--r--src/po.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/po.c b/src/po.c
index 2f95974..a74fda9 100644
--- a/src/po.c
+++ b/src/po.c
@@ -41,7 +41,8 @@ static void po_parse_debrief PARAMS ((po_ty *__pop));
static void po_directive_domain PARAMS ((po_ty *__pop, char *__name));
static void po_directive_message PARAMS ((po_ty *__pop, char *__msgid,
lex_pos_ty *__msgid_pos,
- char *__msgstr,
+ char *__msgid_plural,
+ char *__msgstr, size_t __msgstr_len,
lex_pos_ty *__msgstr_pos));
static void po_comment PARAMS ((po_ty *__pop, const char *__s));
static void po_comment_dot PARAMS ((po_ty *__pop, const char *__s));
@@ -138,27 +139,35 @@ po_callback_domain (name)
static void
-po_directive_message (pop, msgid, msgid_pos, msgstr, msgstr_pos)
+po_directive_message (pop, msgid, msgid_pos, msgid_plural,
+ msgstr, msgstr_len, msgstr_pos)
po_ty *pop;
char *msgid;
lex_pos_ty *msgid_pos;
+ char *msgid_plural;
char *msgstr;
+ size_t msgstr_len;
lex_pos_ty *msgstr_pos;
{
if (pop->method->directive_message)
- pop->method->directive_message (pop, msgid, msgid_pos, msgstr, msgstr_pos);
+ pop->method->directive_message (pop, msgid, msgid_pos, msgid_plural,
+ msgstr, msgstr_len, msgstr_pos);
}
void
-po_callback_message (msgid, msgid_pos, msgstr, msgstr_pos)
+po_callback_message (msgid, msgid_pos, msgid_plural,
+ msgstr, msgstr_len, msgstr_pos)
char *msgid;
lex_pos_ty *msgid_pos;
+ char *msgid_plural;
char *msgstr;
+ size_t msgstr_len;
lex_pos_ty *msgstr_pos;
{
/* assert(callback_arg); */
- po_directive_message (callback_arg, msgid, msgid_pos, msgstr, msgstr_pos);
+ po_directive_message (callback_arg, msgid, msgid_pos, msgid_plural,
+ msgstr, msgstr_len, msgstr_pos);
}