Completely rewrite src/data/format.[ch], to achieve better
[pspp-builds.git] / src / data / dictionary.c
index f7e52e3f74a12be3542684ad67e287a648d691d9..ebe6a5e5d100b829f22e5943c12c0027755ebb59 100644 (file)
@@ -287,14 +287,14 @@ dict_create_var (struct dictionary *d, const char *name, int width)
   mv_init (&v->miss, width);
   if (v->type == NUMERIC)
     {
-      v->print = f8_2;
+      v->print = fmt_for_output (FMT_F, 8, 2);
       v->alignment = ALIGN_RIGHT;
       v->display_width = 8;
       v->measure = MEASURE_SCALE;
     }
   else
     {
-      v->print = make_output_format (FMT_A, v->width, 0);
+      v->print = fmt_for_output (FMT_A, v->width, 0);
       v->alignment = ALIGN_LEFT;
       v->display_width = 8;
       v->measure = MEASURE_NOMINAL;