X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fnumeric.c;h=379348835462343d0bce897170e31bb106039506;hb=0188d216a999f6f45ccb98f6ee40bb82c13ac7fd;hp=4800ac86944f83f894f6cf0df662551bec11669d;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp-builds.git diff --git a/src/language/dictionary/numeric.c b/src/language/dictionary/numeric.c index 4800ac86..37934883 100644 --- a/src/language/dictionary/numeric.c +++ b/src/language/dictionary/numeric.c @@ -18,20 +18,21 @@ 02110-1301, USA. */ #include -#include + #include -#include + #include -#include +#include +#include +#include #include +#include +#include #include -#include #include "gettext.h" #define _(msgid) gettext (msgid) -#include - /* Parses the NUMERIC command. */ int cmd_numeric (void) @@ -49,7 +50,7 @@ cmd_numeric (void) do { if (!parse_DATA_LIST_vars (&v, &nv, PV_NONE)) - return CMD_PART_SUCCESS_MAYBE; + return CMD_FAILURE; /* Get the optional format specification. */ if (lex_match ('(')) @@ -100,7 +101,7 @@ fail: for (i = 0; i < nv; i++) free (v[i]); free (v); - return CMD_PART_SUCCESS_MAYBE; + return CMD_FAILURE; } /* Parses the STRING command. */ @@ -122,7 +123,7 @@ cmd_string (void) do { if (!parse_DATA_LIST_vars (&v, &nv, PV_NONE)) - return CMD_PART_SUCCESS_MAYBE; + return CMD_FAILURE; if (!lex_force_match ('(') || !parse_format_specifier (&f, 0)) @@ -179,7 +180,7 @@ fail: for (i = 0; i < nv; i++) free (v[i]); free (v); - return CMD_PART_SUCCESS_MAYBE; + return CMD_FAILURE; } /* Parses the LEAVE command. */ @@ -194,12 +195,7 @@ cmd_leave (void) if (!parse_variables (default_dict, &v, &nv, PV_NONE)) return CMD_CASCADING_FAILURE; for (i = 0; i < nv; i++) - { - if (!v[i]->reinit) - continue; - v[i]->reinit = 0; - v[i]->init = 1; - } + v[i]->leave = true; free (v); return lex_end_of_command ();