summaryrefslogtreecommitdiffstats
path: root/runtime/conf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-03-10 17:37:13 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-03-10 17:37:13 +0100
commite8499c6d33d09f6d8b42df72da1661be0ef0f088 (patch)
tree577caaba6912f8f88f8bc29b4105eafe44fd4024 /runtime/conf.c
parentf67cf99ee5cd88bda499aa52d6008bb7d4afe483 (diff)
downloadrsyslog-e8499c6d33d09f6d8b42df72da1661be0ef0f088.tar.gz
rsyslog-e8499c6d33d09f6d8b42df72da1661be0ef0f088.tar.xz
rsyslog-e8499c6d33d09f6d8b42df72da1661be0ef0f088.zip
initial implementation of RainerScript functions & strlen()
- implemented function support in RainerScript. That means the engine parses and compile functions, as well as executes a few build-in ones. Dynamic loading and registration of functions is not yet supported - but we now have a good foundation to do that later on. NOTE: nested function calls are not yet supported due to a design issue with the function call VM instruction set design. - implemented the strlen() RainerScript function
Diffstat (limited to 'runtime/conf.c')
-rw-r--r--runtime/conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/conf.c b/runtime/conf.c
index a670c65b..ede15cc7 100644
--- a/runtime/conf.c
+++ b/runtime/conf.c
@@ -794,6 +794,10 @@ dbgprintf("calling expression parser, pp %p ('%s')\n", *pline, *pline);
CHKiRet(ctok.Getpp(tok, pline));
CHKiRet(ctok.Destruct(&tok));
+ /* debug support - print vmprg after construction (uncomment to use) */
+ /* vmprgDebugPrint(f->f_filterData.f_expr->pVmprg); */
+ vmprgDebugPrint(f->f_filterData.f_expr->pVmprg);
+
/* we now need to skip whitespace to the action part, else we confuse
* the legacy rsyslog conf parser. -- rgerhards, 2008-02-25
*/