X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fglob.c;h=9cbcc0c6761602a86316f6d538b901b3248e876a;hb=d043fde2b737897e3372670afc47eb648c17624b;hp=61c70b46c2e5efbc34e7cce5e62b1a2b6472af72;hpb=def7e6026513a3ee7c2b38416b30a2e890e34311;p=pspp-builds.git diff --git a/src/glob.c b/src/glob.c index 61c70b46..9cbcc0c6 100644 --- a/src/glob.c +++ b/src/glob.c @@ -19,7 +19,7 @@ #include #include "glob.h" -#include +#include "error.h" #include #include @@ -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" @@ -126,6 +127,7 @@ init_glob (int argc UNUSED, char **argv) #endif /* ENABLE_NLS */ fn_init (); + fh_init (); getl_initialize (); /* PORTME: If your system/OS has the nasty tendency to halt with a @@ -151,7 +153,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 +178,21 @@ 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) +{ + cancel_transformations (); + dict_destroy (default_dict); + free (logfn); + done_settings (); + ds_destroy (&tokstr); + + fh_done(); +} + static void get_date (void) {