projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add even more expression tests and fix the bugs they found.
[pspp]
/
src
/
glob.c
diff --git
a/src/glob.c
b/src/glob.c
index 83dd2b66ef49ac75ed1b8592469022dfe3958c37..5ddb0e698254d5e068deb1aeccf322d92429f59e 100644
(file)
--- a/
src/glob.c
+++ b/
src/glob.c
@@
-69,15
+69,15
@@
extern void stifle_history ();
#endif
#include "alloc.h"
#endif
#include "alloc.h"
+#include "calendar.h"
#include "command.h"
#include "command.h"
+#include "dictionary.h"
#include "do-ifP.h"
#include "error.h"
#include "do-ifP.h"
#include "error.h"
-#include "expr.h"
#include "file-handle.h"
#include "filename.h"
#include "getline.h"
#include "hash.h"
#include "file-handle.h"
#include "filename.h"
#include "getline.h"
#include "hash.h"
-#include "julcal/julcal.h"
#include "lexer.h"
#include "magic.h"
#include "main.h"
#include "lexer.h"
#include "magic.h"
#include "main.h"
@@
-126,6
+126,7
@@
init_glob (int argc UNUSED, char **argv)
#endif /* ENABLE_NLS */
fn_init ();
#endif /* ENABLE_NLS */
fn_init ();
+ fh_init ();
getl_initialize ();
/* PORTME: If your system/OS has the nasty tendency to halt with a
getl_initialize ();
/* PORTME: If your system/OS has the nasty tendency to halt with a
@@
-176,12
+177,21
@@
init_glob (int argc UNUSED, char **argv)
logfn = xstrdup ("pspp.log");
logfile = NULL;
logfn = xstrdup ("pspp.log");
logfile = NULL;
- /* file-handle.h */
- fh_init_files ();
-
get_date ();
}
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)
{
static void
get_date (void)
{