X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flist.q;h=1876f69f4ffbbd0feb35d4827c12c2412b6f4d33;hb=1f8dd363d6c20d07fcca14cb948018465fa5ed8b;hp=3add8de152e8bd9ef05744ab26020eb3df15e107;hpb=1339492699ce7e12c9bf9fa17f9d60a66024cbd1;p=pspp-builds.git diff --git a/src/list.q b/src/list.q index 3add8de1..1876f69f 100644 --- a/src/list.q +++ b/src/list.q @@ -37,6 +37,10 @@ #include "var.h" #include "vfm.h" #include "format.h" + +#include "gettext.h" +#define _(msgid) gettext (msgid) + /* (headers) */ #include "debug-print.h" @@ -204,9 +208,9 @@ cmd_list (void) strcpy (casenum_var.name, "Case#"); casenum_var.type = NUMERIC; casenum_var.fv = -1; - casenum_var.print.type = FMT_F; - casenum_var.print.w = (cmd.last == LONG_MAX ? 5 : intlog10 (cmd.last)); - casenum_var.print.d = 0; + casenum_var.print = make_output_format (FMT_F, + (cmd.last == LONG_MAX + ? 5 : intlog10 (cmd.last)), 0); /* Add the weight variable at the beginning of the variable list. */ cmd.n_variables++;