Improve the way we handle the various parsing "states". Until now
[pspp-builds.git] / src / language / data-io / get.c
index 052dbeabbbd63931189aa120c833fb0ffb451a9c..25387d8be44b8f0ae14a99a9abf4647018fb4e3d 100644 (file)
@@ -43,8 +43,6 @@
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 
-#include <libpspp/debug-print.h>
-
 /* Rearranging and reducing a dictionary. */
 static void start_case_map (struct dictionary *);
 static struct case_map *finish_case_map (struct dictionary *);
@@ -735,8 +733,6 @@ keep_variables (struct dictionary *dict)
 \f
 /* MATCH FILES. */
 
-#include <libpspp/debug-print.h>
-
 /* File types. */
 enum
   {
@@ -886,8 +882,7 @@ cmd_match_files (void)
             }
           used_active_file = true;
 
-          assert (pgm_state != STATE_INPUT);
-          if (pgm_state == STATE_INIT)
+          if (vfm_source == NULL)
             {
               msg (SE, _("Cannot specify the active file since no active "
                          "file has been defined."));