const char *extracted_comment,
refcounted_string_list_ty *comment, bool comment_is_utf8)
{
- enum is_format is_format[NFORMATS];
struct argument_range range;
enum is_wrap do_wrap;
enum is_syntax_check do_syntax_check[NSYNTAXCHECKS];
savable_comment_to_xgettext_comment (comment);
- for (i = 0; i < NFORMATS; i++)
- is_format[i] = undecided;
range.min = -1;
range.max = -1;
do_wrap = undecided;
if (msgctxt != NULL)
free (msgctxt);
free (msgid);
- for (i = 0; i < NFORMATS; i++)
- is_format[i] = mp->is_format[i];
do_wrap = mp->do_wrap;
for (i = 0; i < NSYNTAXCHECKS; i++)
do_syntax_check[i] = mp->do_syntax_check[i];
/* Determine whether the context specifies that the msgid is a format
string. */
- set_format_flags_from_context (is_format, context, mp->msgid, pos, "msgid");
+ set_format_flags_from_context (mp->is_format, context, mp->msgid, pos, "msgid");
/* Ask the lexer for the comments it has seen. */
{
for (i = 0; i < NFORMATS; i++)
if (tmp_format[i] != undecided)
{
- is_format[i] = tmp_format[i];
+ mp->is_format[i] = tmp_format[i];
interesting = true;
}
if (has_range_p (tmp_range))
}
/* If the "xgettext:" marker was followed by an interesting
- keyword, and we updated our is_format/do_wrap variables,
+ keyword, and we updated our mp->is_format/do_wrap variables,
we don't print the comment as a #. comment. */
if (interesting)
continue;
}
}
- for (i = 0; i < NFORMATS; i++)
- mp->is_format[i] = is_format[i];
decide_is_format (mp);
intersect_range (mp, &range);
/* Warn about the use of non-reorderable format strings when the programming
language also provides reorderable format strings. */
- warn_format_string (is_format, mp->msgid, pos, "msgid");
+ warn_format_string (mp->is_format, mp->msgid, pos, "msgid");
/* Remember where we saw this msgid. */
message_comment_filepos (mp, pos->file_name, pos->line_number);