Improve the way we handle the various parsing "states". Until now
[pspp-builds.git] / src / language / dictionary / variable-label.c
index bc171a296ebb8c02c65db2843a3569d77633b836..a663dc9ddb458db614e204f43f01ec11f4148796 100644 (file)
@@ -30,8 +30,6 @@
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 
-#include <libpspp/debug-print.h>
-
 int
 cmd_variable_labels (void)
 {
@@ -43,13 +41,13 @@ cmd_variable_labels (void)
       size_t i;
 
       if (!parse_variables (default_dict, &v, &nv, PV_NONE))
-        return CMD_PART_SUCCESS_MAYBE;
+        return CMD_FAILURE;
 
       if (token != T_STRING)
        {
          msg (SE, _("String expected for variable label."));
          free (v);
-         return CMD_PART_SUCCESS_MAYBE;
+         return CMD_FAILURE;
        }
       if (ds_length (&tokstr) > 255)
        {