diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 15:43:55 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 15:43:55 +0000 |
commit | c2d0c3d4c31164ece386a61ef3326bb40c348fdb (patch) | |
tree | 62086766f894e191ec090fd73003e871b46112f3 /ctok.c | |
parent | 897a6853118de669be90a451a7319a219cde6feb (diff) | |
download | rsyslog-c2d0c3d4c31164ece386a61ef3326bb40c348fdb.tar.gz rsyslog-c2d0c3d4c31164ece386a61ef3326bb40c348fdb.tar.xz rsyslog-c2d0c3d4c31164ece386a61ef3326bb40c348fdb.zip |
- added "contains" and "startwith" comparison operations
- defined initial set of opcodes
Diffstat (limited to 'ctok.c')
-rw-r--r-- | ctok.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -484,6 +484,10 @@ ctokGetToken(ctok_t *pThis, ctok_token_t **ppToken) pToken->tok = ctok_OR; } else if(!strcasecmp((char*)szWord, "not")) { pToken->tok = ctok_NOT; + } else if(!strcasecmp((char*)szWord, "contains")) { + pToken->tok = ctok_CMP_CONTAINS; + } else if(!strcasecmp((char*)szWord, "startswith")) { + pToken->tok = ctok_CMP_STARTSWITH; } else if(!strcasecmp((char*)szWord, "then")) { pToken->tok = ctok_THEN; } else { |