int end_ofs = lex_ofs (lexer) - 1;
struct fmt_spec format = { .type = type, .w = w, .d = d };
- char *error = fmt_check__ (&format, use);
+ char *error = fmt_check__ (format, use);
if (error)
{
lex_ofs_error (lexer, start_ofs, end_ofs, "%s", error);
_("Unknown format type `%s'."), type);
return false;
}
- char *error = fmt_check__ (&f, use);
+ char *error = fmt_check__ (f, use);
if (error)
{
lex_ofs_error (lexer, ofs, ofs, "%s", error);
as appropriate, and returns true. Otherwise, returns false
without any side effects. */
bool
-execute_placement_format (const struct fmt_spec *format,
+execute_placement_format (const struct fmt_spec format,
int *record, int *column)
{
- switch ((int) format->type)
+ switch ((int) format.type)
{
case PRS_TYPE_X:
- *column += format->w;
+ *column += format.w;
return true;
case PRS_TYPE_T:
- *column = format->w;
+ *column = format.w;
return true;
case PRS_TYPE_NEW_REC:
return true;
default:
- assert (format->type < FMT_NUMBER_OF_FORMATS);
+ assert (format.type < FMT_NUMBER_OF_FORMATS);
return false;
}
}