\n", x->file);
-
+
for (column = 0; column < cmd.n_variables; column++)
{
const struct variable *v = cmd.v_variables[column];
const struct fmt_spec *print = var_get_print_format (v);
- char buf[256];
-
+ char *s = NULL;
+
if (fmt_is_string (print->type)
- || dict_contains_var (dataset_dict (ds), v))
- data_out (case_data (c, v), print, buf);
- else
+ || dict_contains_var (dict, v))
+ s = data_out (case_data (c, v), print);
+ else
{
union value case_idx_value;
case_idx_value.f = case_idx;
- data_out (&case_idx_value, print, buf);
+ s = data_out (&case_idx_value, print);
}
fputs (" ", x->file);
- html_put_cell_contents (d, TAB_FIX, ss_buffer (buf, print->w));
+ html_put_cell_contents (d, TAB_FIX, ss_buffer (s, print->w));
+ free (s);
fputs (" | \n", x->file);
}
-
+
fputs ("
\n", x->file);
}
else
NOT_REACHED ();
-
- return true;
}
-/*
+/*
Local Variables:
mode: c
End: