diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-05-01 19:58:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-05-01 19:58:13 -0700 |
commit | 251546a2204692c62cb51bee44c3a7601d82b83b (patch) | |
tree | b444aeb55a68d0fdc79d5fdfbe48c66389405079 /lib.c | |
parent | 9fd39822bb076a40601b4524bd1cc6896f5abecf (diff) | |
download | txr-251546a2204692c62cb51bee44c3a7601d82b83b.tar.gz txr-251546a2204692c62cb51bee44c3a7601d82b83b.tar.bz2 txr-251546a2204692c62cb51bee44c3a7601d82b83b.zip |
Move initialization calls to more suitable place.
* lib.c (init): Initialize parser, syslog and glob modules
here.
* txr.c (main): Remove initialization of parser, syslog and glob
modules from here.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -57,6 +57,9 @@ #include "eval.h" #include "sysif.h" #include "regex.h" +#include "parser.h" +#include "syslog.h" +#include "glob.h" #include "txr.h" #define max(a, b) ((a) > (b) ? (a) : (b)) @@ -7254,8 +7257,15 @@ void init(const wchar_t *pn, mem_t *(*oom)(mem_t *, size_t), hash_init(); regex_init(); gc_late_init(); + parse_init(); uw_late_init(); less_tab_init(); +#if HAVE_SYSLOG + syslog_init(); +#endif +#if HAVE_GLOB + glob_init(); +#endif gc_state(gc_save); } |