From c5f99dc22253e5bd1adbfbfa7c3fd842554b9016 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 19 Feb 2008 11:20:18 +0000 Subject: - 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) --- expr.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'expr.c') 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: */ -- cgit v1.2.3