X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fformats.c;h=4bc6e3f47767335bba767099bc38a76be1d85c8e;hb=84e4d346b557748b62d43158c1b50f655e357f9f;hp=c325b4082e40a897980d123217e0fcf4323aa3a9;hpb=30728b09540b323fef43b23dd5f1e4d1e8298c92;p=pspp diff --git a/src/language/dictionary/formats.c b/src/language/dictionary/formats.c index c325b4082e..4bc6e3f477 100644 --- a/src/language/dictionary/formats.c +++ b/src/language/dictionary/formats.c @@ -18,15 +18,20 @@ 02110-1301, USA. */ #include + #include #include #include + +#include +#include #include -#include +#include #include +#include +#include #include #include -#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -84,10 +89,10 @@ internal_cmd_formats (int which) if (!lex_match ('(')) { - msg (SE, _("`(' expected after variable list")); + msg (SE, _("`(' expected after variable list.")); goto fail; } - if (!parse_format_specifier (&f, 0) + if (!parse_format_specifier (&f) || !check_output_specifier (&f, true) || !check_specifier_type (&f, NUMERIC, true)) goto fail;