diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-07 09:41:31 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-07 09:41:31 +0200 |
commit | 37fd063042821dc328c88e1f7366543decdcb76f (patch) | |
tree | 5f14f9144f7c4c9ad3a071535ccc8a4b48b40218 /runtime/vmop.h | |
parent | 06001e951f5b5d0a7919c61057bc7a87b9eb8cba (diff) | |
download | rsyslog-37fd063042821dc328c88e1f7366543decdcb76f.tar.gz rsyslog-37fd063042821dc328c88e1f7366543decdcb76f.tar.xz rsyslog-37fd063042821dc328c88e1f7366543decdcb76f.zip |
added capability to create a printable string of a vmprg
This is needed so that we can create simple testbenches which
will check the result of a test (a generated program) via a
simple strcmp.
Diffstat (limited to 'runtime/vmop.h')
-rw-r--r-- | runtime/vmop.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/vmop.h b/runtime/vmop.h index 97f924d7..c3d5d5f4 100644 --- a/runtime/vmop.h +++ b/runtime/vmop.h @@ -26,6 +26,7 @@ #define INCLUDED_VMOP_H #include "ctok_token.h" +#include "stringbuf.h" /* machine instructions types */ typedef enum { /* do NOT start at 0 to detect uninitialized types after calloc() */ @@ -83,6 +84,7 @@ BEGINinterface(vmop) /* name must also be changed in ENDinterface macro! */ rsRetVal (*SetOpcode)(vmop_t *pThis, opcode_t opcode); rsRetVal (*SetVar)(vmop_t *pThis, var_t *pVar); rsRetVal (*Opcode2Str)(vmop_t *pThis, uchar **ppName); + rsRetVal (*Obj2Str)(vmop_t *pThis, cstr_t *pstr); ENDinterface(vmop) #define vmopCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */ |