summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-01-11 22:17:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-01-11 22:17:15 -0800
commitf46b90032f7bdfee52b699726c42e2687b699a94 (patch)
treeb38b13d3b93cb3b7a2c05f6c38e2e69467c1e572 /txr.c
parent7578fba17d68b6822bd089a0224dd5e736c17365 (diff)
downloadtxr-f46b90032f7bdfee52b699726c42e2687b699a94.tar.gz
txr-f46b90032f7bdfee52b699726c42e2687b699a94.tar.bz2
txr-f46b90032f7bdfee52b699726c42e2687b699a94.zip
* glob.c: New file.
(glob_wrap, glob_init): New functions. (errfunc_thunk): New static function. * glob.h: New file. * txr.c (main): call glob_init if HAVE_GLOB is defined. * configure (have_glob): New variable. (gen_config_make): Add have_glob to config/config.make. Detect glob function and set have_glob, and add HAVE_GLOB to config/config.h. * Makefile (OBJS): Include glob.h if have_glob is "y". * genvim.txr: Scan glob.c for functions and variables also. * txr.1: Documented glob and glob-related variables.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/txr.c b/txr.c
index 84213c40..9e6fda27 100644
--- a/txr.c
+++ b/txr.c
@@ -50,6 +50,7 @@
#include "utf8.h"
#include "debug.h"
#include "syslog.h"
+#include "glob.h"
#include "eval.h"
#include "regex.h"
#include "arith.h"
@@ -297,6 +298,9 @@ int main(int argc, char **argv)
#if HAVE_SYSLOG
syslog_init();
#endif
+#if HAVE_GLOB
+ glob_init();
+#endif
sysroot_init();
return txr_main(argc, argv);
}