summaryrefslogtreecommitdiffstats
path: root/expr.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-19 11:20:18 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-19 11:20:18 +0000
commitc5f99dc22253e5bd1adbfbfa7c3fd842554b9016 (patch)
treeb278b6bf78bf0c31fba6c89b8200c41f214878e6 /expr.c
parentcd2b24dfc45c4b115ace6d17ab0237511fef3d66 (diff)
downloadrsyslog-c5f99dc22253e5bd1adbfbfa7c3fd842554b9016.tar.gz
rsyslog-c5f99dc22253e5bd1adbfbfa7c3fd842554b9016.tar.xz
rsyslog-c5f99dc22253e5bd1adbfbfa7c3fd842554b9016.zip
- moved config file code to its own file
- finally made CONT_LINES in config the only standard support (the code contained code for other case, which were never executed by the preprocessor)
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/expr.c b/expr.c
index eb673a29..7e4e9899 100644
--- a/expr.c
+++ b/expr.c
@@ -6,16 +6,7 @@
*
* Module begun 2007-11-30 by Rainer Gerhards
*
- * Copyright 2007 Rainer Gerhards and Adiscon GmbH.
- *
- * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- * W A R N I N G
- *
- * This module is not really existing. The current code has never been
- * tested or run. It is just some preparation for when we actually implement
- * this fuctionality!
- *
- * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ * Copyright 2007, 2008 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of rsyslog.
*
@@ -56,7 +47,7 @@ ENDobjConstruct(expr)
/* ConstructionFinalizer
* rgerhards, 2008-01-09
*/
-rsRetVal exprConstructFinalize(strm_t *pThis)
+rsRetVal exprConstructFinalize(expr_t *pThis)
{
DEFiRet;
@@ -163,5 +154,14 @@ finalize_it:
RETiRet;
}
+
+/* Initialize the expr class. Must be called as the very first method
+ * before anything else is called inside this class.
+ * rgerhards, 2008-02-19
+ */
+BEGINObjClassInit(expr, 1) /* class, version */
+ OBJSetMethodHandler(objMethod_CONSTRUCTION_FINALIZER, exprConstructFinalize);
+ENDObjClassInit(expr)
+
/* vi:set ai:
*/