From f46b90032f7bdfee52b699726c42e2687b699a94 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 11 Jan 2015 22:17:15 -0800 Subject: * 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. --- txr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'txr.c') 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" @@ -296,6 +297,9 @@ int main(int argc, char **argv) debug_init(); #if HAVE_SYSLOG syslog_init(); +#endif +#if HAVE_GLOB + glob_init(); #endif sysroot_init(); return txr_main(argc, argv); -- cgit v1.2.3