[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/vfm.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/vfm.c |
Date: |
Mon, 24 Oct 2005 01:42:01 -0400 |
Index: pspp/src/vfm.c
diff -u pspp/src/vfm.c:1.40 pspp/src/vfm.c:1.41
--- pspp/src/vfm.c:1.40 Sun Aug 7 04:39:28 2005
+++ pspp/src/vfm.c Mon Oct 24 05:41:45 2005
@@ -30,6 +30,7 @@
#include "alloc.h"
#include "case.h"
#include "casefile.h"
+#include "command.h"
#include "dictionary.h"
#include "do-ifP.h"
#include "error.h"
@@ -906,4 +907,33 @@
aux->split_func (aux->casefile, aux->func_aux);
casefile_destroy (aux->casefile);
aux->casefile = NULL;
+}
+
+
+/* Discards all the current state in preparation for a data-input
+ command like DATA LIST or GET. */
+void
+discard_variables (void)
+{
+ dict_clear (default_dict);
+ default_handle = NULL;
+
+ n_lag = 0;
+
+ if (vfm_source != NULL)
+ {
+ free_case_source (vfm_source);
+ vfm_source = NULL;
+ }
+
+ cancel_transformations ();
+
+ ctl_stack = NULL;
+
+ expr_free (process_if_expr);
+ process_if_expr = NULL;
+
+ cancel_temporary ();
+
+ pgm_state = STATE_INIT;
}
- [Pspp-cvs] Changes to pspp/src/vfm.c,
John Darrington <=