if (!parse_format_specifier (lexer, &f))
goto fail;
- if ( ! fmt_check_output (&f))
+ if (! fmt_check_output (&f))
goto fail;
if (fmt_is_string (f.type))
{
char str[FMT_STRING_LEN_MAX + 1];
- msg (SE, _("Format type %s may not be used with a numeric "
- "variable."), fmt_to_string (&f, str));
+ lex_next_error (lexer, -1, -1,
+ _("Format type %s may not be used with a numeric "
+ "variable."), fmt_to_string (&f, str));
goto fail;
}
if (!lex_match (lexer, T_RPAREN))
{
- lex_error_expecting (lexer, "`)'", NULL_SENTINEL);
+ lex_error_expecting (lexer, "`)'");
goto fail;
}
}
if (!fmt_is_string (f.type))
{
char str[FMT_STRING_LEN_MAX + 1];
- msg (SE, _("Format type %s may not be used with a string "
- "variable."), fmt_to_string (&f, str));
+ lex_next_error (lexer, -2, -2,
+ _("Format type %s may not be used with a string "
+ "variable."), fmt_to_string (&f, str));
goto fail;
}
if (!fmt_check_output (&f))