From 434ea4f4ce65a553205f4030a6b98268ff938f0f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 10 Dec 2013 07:36:51 -0800 Subject: 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. --- txr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'txr.c') 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); } -- cgit v1.2.3