summaryrefslogtreecommitdiffstats
path: root/runtime/ctok.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-12-03 17:11:03 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-12-03 17:11:03 +0100
commit4618773be685488e081bebb397db32851dc16782 (patch)
tree744a80610a877eaa0f8ff5f552e17a5cbf0563a3 /runtime/ctok.c
parentf871bd135a33c88a013f49402d0af87fb1f1de5d (diff)
downloadrsyslog-4618773be685488e081bebb397db32851dc16782.tar.gz
rsyslog-4618773be685488e081bebb397db32851dc16782.tar.xz
rsyslog-4618773be685488e081bebb397db32851dc16782.zip
milestone: added support for CEE-variables to RainerScript
Diffstat (limited to 'runtime/ctok.c')
-rw-r--r--runtime/ctok.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/ctok.c b/runtime/ctok.c
index 18ddaed2..6d97568e 100644
--- a/runtime/ctok.c
+++ b/runtime/ctok.c
@@ -277,6 +277,9 @@ ctokGetVar(ctok_t *pThis, ctok_token_t *pToken)
if(c == '$') { /* second dollar, we have a system variable */
pToken->tok = ctok_SYSVAR;
CHKiRet(ctokGetCharFromStream(pThis, &c)); /* "eat" it... */
+ } else if(c == '!') { /* cee variable indicator */
+ pToken->tok = ctok_CEEVAR;
+ CHKiRet(ctokGetCharFromStream(pThis, &c)); /* "eat" it... */
} else {
pToken->tok = ctok_MSGVAR;
}