summaryrefslogtreecommitdiffstats
path: root/vmop.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-20 17:08:27 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-20 17:08:27 +0000
commit2e0e356584559b1a45bce430f9a92485b5763eac (patch)
treee85881c5f6adb0a98bf91e3cd2f2e39c53a0bde8 /vmop.c
parentcd848d018172b7fac89997a569adc9a01c5953b1 (diff)
downloadrsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.gz
rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.xz
rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.zip
used new classes in expr.c
Diffstat (limited to 'vmop.c')
-rw-r--r--vmop.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vmop.c b/vmop.c
index 460347bd..705a8a12 100644
--- a/vmop.c
+++ b/vmop.c
@@ -58,6 +58,13 @@ CODESTARTobjDestruct(vmop)
ENDobjDestruct(vmop)
+/* destructor for the vmop object */
+BEGINobjDebugPrint(vmop) /* be sure to specify the object type also in END and CODESTART macros! */
+CODESTARTobjDebugPrint(vmop)
+ dbgoprint((obj_t*) pThis, "operation: %d, next %p\n", (int) pThis->opcode, pThis->pNext);
+ENDobjDebugPrint(vmop)
+
+
/* set operand (variant case)
* rgerhards, 2008-02-20
*/
@@ -90,6 +97,7 @@ vmopSetOpcode(vmop_t *pThis, opcode_t opcode)
* rgerhards, 2008-02-19
*/
BEGINObjClassInit(vmop, 1) /* class, version */
+ OBJSetMethodHandler(objMethod_DEBUGPRINT, vmopDebugPrint);
OBJSetMethodHandler(objMethod_CONSTRUCTION_FINALIZER, vmopConstructFinalize);
ENDObjClassInit(vmop)