#include <ctype.h>
#include <errno.h>
+#if HAVE_LC_PAPER
#include <langinfo.h>
+#endif
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <data/file-name.h>
#include <data/settings.h>
-#include <libpspp/alloc.h>
#include <libpspp/misc.h>
#include <libpspp/str.h>
#include <output/htmlP.h>
#include "error.h"
#include "intprops.h"
+#include "xalloc.h"
#include "gettext.h"
#define _(msgid) gettext (msgid)
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
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"));
if ((int) strlen (c->class->name) + 1 > width)
{
printf ("\n\t");
- width = get_viewwidth() - 8;
+ width = settings_get_viewwidth () - 8;
}
else
putc (' ', stdout);