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=3e3d7651dbe83b73e244ec9f822805fb1f891900;hpb=77e551d23575da6b89f866612ab39c2b0497c9be;p=pspp-builds.git diff --git a/src/language/dictionary/numeric.c b/src/language/dictionary/numeric.c index 3e3d7651..37934883 100644 --- a/src/language/dictionary/numeric.c +++ b/src/language/dictionary/numeric.c @@ -18,14 +18,17 @@ 02110-1301, USA. */ #include -#include + #include -#include + #include -#include +#include +#include +#include #include +#include +#include #include -#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -47,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 ('(')) @@ -98,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. */ @@ -120,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)) @@ -177,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. */ @@ -192,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 ();