X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpostscript.c;h=11473f6488faaa94de282739ecd556232a3d5ec7;hb=9f9ceb5c942ebb9f3fe5c568053bd75b5ea1ee0a;hp=c828a0df2a49136cf73433458384996355516d31;hpb=33a381c1da6c8a92ad8e1809e64a4953e9586b26;p=pspp diff --git a/src/postscript.c b/src/postscript.c index c828a0df2a..11473f6488 100644 --- a/src/postscript.c +++ b/src/postscript.c @@ -27,27 +27,18 @@ #include #include #include +#include #if HAVE_UNISTD_H #include #endif -#if TIME_WITH_SYS_TIME -#include -#include -#else -#if HAVE_SYS_TIME_H -#include -#else -#include -#endif -#endif - #include "alloc.h" #include "bitvector.h" #include "error.h" #include "filename.h" #include "font.h" +#include "getl.h" #include "getline.h" #include "hash.h" #include "main.h" @@ -57,6 +48,9 @@ #include "som.h" #include "version.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + /* FIXMEs: optimize-text-size not implemented. @@ -1452,7 +1446,7 @@ postopen (struct file_ext *f) char *beg; beg = buf2 = fn_interp_vars (buf, ps_get_var); len = strlen (buf2); - while (isspace (*beg)) + while (isspace ((unsigned char) *beg)) beg++, len--; if (beg[len - 1] == '\n') len--;