From b8455132707ab4e5ca86e320c5cd8f8b84d6fc34 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 28 Feb 2008 10:40:34 +0000 Subject: - wrote doc on how to use the expression engine - changed ABNF to fully support old property names - added case-insensitive comparison operations --- expr.c | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) (limited to 'expr.c') diff --git a/expr.c b/expr.c index 03ced285..ec96b187 100644 --- a/expr.c +++ b/expr.c @@ -326,6 +326,7 @@ finalize_it: /* ------------------------------ actual expr object functions ------------------------------ */ /* Standard-Constructor + * rgerhards, 2008-02-09 (a rainy Tenerife return flight day ;)) */ BEGINobjConstruct(expr) /* be sure to specify the object type also in END macro! */ ENDobjConstruct(expr) @@ -352,45 +353,6 @@ CODESTARTobjDestruct(expr) ENDobjDestruct(expr) -/* evaluate an expression and store the result. pMsg is optional, but if - * it is not given, no message-based variables can be accessed. The expression - * must previously have been created. - * rgerhards, 2008-02-09 (a rainy tenerife return flight day ;)) - */ -rsRetVal -exprEval(expr_t *pThis, msg_t *pMsg) -{ - DEFiRet; - - ISOBJ_TYPE_assert(pThis, expr); - ISOBJ_TYPE_assert(pMsg, msg); - - RETiRet; -} - - -/* returns the expression result as a string. The string is read-only and valid - * only as long as the expression exists and is not newly evaluated. If the caller - * needs to access it for an extended period of time, it must copy it. This is a - * performance optimization, as most expression results are expected to be used - * only for a brief period. In such cases, it saves us the need to copy the string. - * Also, it is assumed that most callers will hold their private expression. If it - * is not shared, the caller can count on the string to remain stable as long as it - * does not reevaluate the expression (via exprEval or other means) or destruct it. - * rgerhards, 2008-02-09 (a rainy tenerife return flight day ;)) - */ -rsRetVal -exprGetStr(expr_t *pThis, cstr_t **ppStr) -{ - DEFiRet; - - ISOBJ_TYPE_assert(pThis, expr); - ASSERT(ppStr != NULL); - - RETiRet; -} - - /* parse an expression object based on a given tokenizer * rgerhards, 2008-02-19 */ -- cgit