summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-12-10 07:36:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-12-10 07:36:51 -0800
commit434ea4f4ce65a553205f4030a6b98268ff938f0f (patch)
tree5f60474635945f1c70af6c37c78b84f9a18d0180 /txr.c
parent5114624a14456ae20dc8c57f9ac8ed0a5a0661f4 (diff)
downloadtxr-434ea4f4ce65a553205f4030a6b98268ff938f0f.tar.gz
txr-434ea4f4ce65a553205f4030a6b98268ff938f0f.tar.bz2
txr-434ea4f4ce65a553205f4030a6b98268ff938f0f.zip
syslog support; bitwise logior and logand functions become variadic.
* Makefile: Use -iquote to restrict our #include search paths from being processed for #include <...>. Add syslog.o to OBJS-y if have_syslog is y. * configure (have_syslog): New variable, set by detecting syslog API. * eval.c (eval_init): logand and logior registrations changed to go to variadic versions. New syslog variables and functions registered. * lib.c (logandv, logiorv): New functions. * lib.h (logandv, logiorv): Declared. * txr.c (main): Call syslog_init. * syslog.c: New file. * syslog.h: New file.
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 d614a5de..fd96d9a8 100644
--- a/txr.c
+++ b/txr.c
@@ -41,6 +41,7 @@
#include "match.h"
#include "utf8.h"
#include "debug.h"
+#include "syslog.h"
#include "txr.h"
const wchli_t *version = wli("71");
@@ -162,6 +163,9 @@ int main(int argc, char **argv)
match_init();
parse_init();
debug_init();
+#if HAVE_SYSLOG
+ syslog_init();
+#endif
return txr_main(argc, argv);
}