summaryrefslogtreecommitdiffstats
path: root/expr.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-28 10:40:34 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-28 10:40:34 +0000
commitb8455132707ab4e5ca86e320c5cd8f8b84d6fc34 (patch)
treed5c86299463ca9d2f35bedaa52aef72a22ac14f3 /expr.c
parent8860335f57904501bfd72c1c5b65b0c83c7d1c1e (diff)
downloadrsyslog-b8455132707ab4e5ca86e320c5cd8f8b84d6fc34.tar.gz
rsyslog-b8455132707ab4e5ca86e320c5cd8f8b84d6fc34.tar.xz
rsyslog-b8455132707ab4e5ca86e320c5cd8f8b84d6fc34.zip
- wrote doc on how to use the expression engine
- changed ABNF to fully support old property names - added case-insensitive comparison operations
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c40
1 files changed, 1 insertions, 39 deletions
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
*/