Added a test for reading/writing of portable files.
[pspp-builds.git] / src / glob.c
index e1d5bba0b303214cac0a2e224c5c505e9b605569..457be8ace071b856fff5cd17d5fc5dd94d14bd16 100644 (file)
@@ -70,6 +70,7 @@ extern void stifle_history ();
 
 #include "alloc.h"
 #include "command.h"
+#include "dictionary.h"
 #include "do-ifP.h"
 #include "error.h"
 #include "expr.h"
@@ -151,7 +152,7 @@ init_glob (int argc UNUSED, char **argv)
   last_vfm_invocation = time (NULL);
 
   /* lexer.h */
-  ds_init (NULL, &tokstr, 64);
+  ds_init (&tokstr, 64);
 
   /* common.h */
   {
@@ -176,12 +177,18 @@ init_glob (int argc UNUSED, char **argv)
   logfn = xstrdup ("pspp.log");
   logfile = NULL;
 
-  /* file-handle.h */
-  fh_init_files ();
-  
   get_date ();
 }
 
+void
+done_glob(void)
+{
+  dict_destroy(default_dict);
+  free(logfn);
+  done_settings();
+  ds_destroy (&tokstr);
+}
+
 static void
 get_date (void)
 {