summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2008-04-10 00:42:31 +0200
committerMichael Biebl <biebl@debian.org>2008-04-10 00:42:31 +0200
commitd7b2091ccb935f85ad5ad43e8fb1d467ff63f979 (patch)
tree9b39fc20e68ed8850daa8fea2fa658c3a510e2cf /vm.c
parent85df627b6c1cfc388a70ef5b01681d5d952a9dd7 (diff)
downloadrsyslog-d7b2091ccb935f85ad5ad43e8fb1d467ff63f979.tar.gz
Imported Upstream version 3.14.2upstream/3.14.2
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/vm.c b/vm.c
index a26e433..b97898c 100644
--- a/vm.c
+++ b/vm.c
@@ -193,8 +193,6 @@ CODESTARTop(CMP_CONTAINS)
/* operand2 is on top of stack, so needs to be popped first */
vmstk.PopString(pThis->pStk, &operand2);
vmstk.PopString(pThis->pStk, &operand1);
-var.DebugPrint(operand1); \
-var.DebugPrint(operand2); \
/* TODO: extend cstr class so that it supports location of cstr inside cstr */
bRes = (rsCStrLocateInSzStr(operand2->val.pStr, rsCStrGetSzStr(operand1->val.pStr)) == -1) ? 0 : 1;
@@ -233,8 +231,6 @@ CODESTARTop(CMP_STARTSWITH)
/* operand2 is on top of stack, so needs to be popped first */
vmstk.PopString(pThis->pStk, &operand2);
vmstk.PopString(pThis->pStk, &operand1);
-var.DebugPrint(operand1); \
-var.DebugPrint(operand2); \
/* TODO: extend cstr class so that it supports location of cstr inside cstr */
bRes = (rsCStrStartsWithSzStr(operand1->val.pStr, rsCStrGetSzStr(operand2->val.pStr),
rsCStrLen(operand2->val.pStr)) == 0) ? 1 : 0;
@@ -254,14 +250,11 @@ CODESTARTop(CMP_STARTSWITHI)
/* operand2 is on top of stack, so needs to be popped first */
vmstk.PopString(pThis->pStk, &operand2);
vmstk.PopString(pThis->pStk, &operand1);
-var.DebugPrint(operand1); \
-var.DebugPrint(operand2); \
/* TODO: extend cstr class so that it supports location of cstr inside cstr */
bRes = (rsCStrCaseInsensitveStartsWithSzStr(operand1->val.pStr, rsCStrGetSzStr(operand2->val.pStr),
rsCStrLen(operand2->val.pStr)) == 0) ? 1 : 0;
/* we have a result, so let's push it */
-RUNLOG_VAR("%lld", bRes); \
PUSHRESULTop(operand1, bRes);
var.Destruct(&operand2); /* no longer needed */
ENDop(CMP_STARTSWITHI)