X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Foutput.c;h=843b0d4e544996cebcd736b25c8225e185337d1f;hb=4e77f0d303d1ef44ee797941a3bebdcbb37119aa;hp=8eccf763f9b9ea3b49f7192c9e4f547ac1161cce;hpb=9f087e7aa4cdff1d5d46d5e188c0017a9d2d0029;p=pspp-builds.git diff --git a/src/output/output.c b/src/output/output.c index 8eccf763..843b0d4e 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -18,7 +18,9 @@ #include #include +#if HAVE_LC_PAPER #include +#endif #include #include #include @@ -210,12 +212,12 @@ find_defn_value (const char *key) return ds_cstr (&d->value); if (!strcmp (key, "viewwidth")) { - sprintf (buf, "%d", get_viewwidth ()); + sprintf (buf, "%d", settings_get_viewwidth ()); return buf; } else if (!strcmp (key, "viewlength")) { - sprintf (buf, "%d", get_viewlength ()); + sprintf (buf, "%d", settings_get_viewlength ()); return buf; } else @@ -462,7 +464,7 @@ outp_done (void) void outp_list_classes (void) { - int width = get_viewwidth(); + int width = settings_get_viewwidth (); struct outp_driver_class_list *c; printf (_("Driver classes:\n\t")); @@ -472,7 +474,7 @@ outp_list_classes (void) if ((int) strlen (c->class->name) + 1 > width) { printf ("\n\t"); - width = get_viewwidth() - 8; + width = settings_get_viewwidth () - 8; } else putc (' ', stdout);