+2005-10-04 Bruno Haible <bruno@clisp.org>
+
+ * msgl-check.h (check_message): Remove msgstr_pos argument.
+ * msgl-check.c (check_pair, check_message): Remove msgstr_pos argument.
+ * msgfmt.c (msgfmt_frob_new_message): Update.
+ * gettext-po.c (po_file_check_all, po_message_check_all,
+ po_message_check_format): Update.
+
2005-10-03 Bruno Haible <bruno@clisp.org>
Add support for contexts in xgettext.
{
message_ty *mp = mlp->item[j];
- check_message (mp, &mp->pos, &mp->pos, 1, 1, 1, 0, 0, 0);
+ check_message (mp, &mp->pos, 1, 1, 1, 0, 0, 0);
}
check_plural (mlp);
(void (*) (int, const message_ty *, const char *, size_t, size_t, int, const char *, const message_ty *, const char *, size_t, size_t, int, const char *))
handler->xerror2;
- check_message (mp, &mp->pos, &mp->pos, 1, 1, 1, 0, 0, 0);
+ check_message (mp, &mp->pos, 1, 1, 1, 0, 0, 0);
/* For plural checking, combine the message and its header into a small,
two-element message list. */
(void (*) (int, const message_ty *, const char *, size_t, size_t, int, const char *, const message_ty *, const char *, size_t, size_t, int, const char *))
handler->xerror2;
- check_message (mp, &mp->pos, &mp->pos, 0, 1, 0, 0, 0, 0);
+ check_message (mp, &mp->pos, 0, 1, 0, 0, 0, 0);
/* Restore error handler. */
po_xerror = textmode_xerror;
else
++msgs_translated;
- if (check_message (mp, msgid_pos, msgstr_pos,
+ if (check_message (mp, msgid_pos,
1, check_format_strings, check_header,
check_compatibility,
check_accelerators, accelerator_char))
const lex_pos_ty *msgid_pos,
const char *msgid_plural,
const char *msgstr, size_t msgstr_len,
- const lex_pos_ty *msgstr_pos,
const enum is_format is_format[NFORMATS],
int check_newlines,
int check_format_strings,
Return nonzero if an error was seen. */
int
check_message (const message_ty *mp,
- const lex_pos_ty *msgid_pos, const lex_pos_ty *msgstr_pos,
+ const lex_pos_ty *msgid_pos,
int check_newlines,
int check_format_strings,
int check_header,
return check_pair (mp,
mp->msgid, msgid_pos, mp->msgid_plural,
- mp->msgstr, mp->msgstr_len, msgstr_pos,
+ mp->msgstr, mp->msgstr_len,
mp->is_format,
check_newlines, check_format_strings, check_compatibility,
check_accelerators, accelerator_char);
Return nonzero if an error was seen. */
extern int check_message (const message_ty *mp,
const lex_pos_ty *msgid_pos,
- const lex_pos_ty *msgstr_pos,
int check_newlines,
int check_format_strings,
int check_header,