diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-22 09:51:34 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-22 09:51:34 +0000 |
commit | d3da6ba716d94ec684186a89a52fb90636db89ee (patch) | |
tree | c653c0c7e560be2839c468f4f877f1cf47ac83c5 /vmstk.h | |
parent | 8fdd3b45c0c2b2a5751efd79e2be4cc0241af53e (diff) | |
download | rsyslog-d3da6ba716d94ec684186a89a52fb90636db89ee.tar.gz rsyslog-d3da6ba716d94ec684186a89a52fb90636db89ee.tar.xz rsyslog-d3da6ba716d94ec684186a89a52fb90636db89ee.zip |
completed initial vmstk implementation
Diffstat (limited to 'vmstk.h')
-rw-r--r-- | vmstk.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -22,9 +22,14 @@ #ifndef INCLUDED_VMSTK_H #define INCLUDED_VMSTK_H +/* The max size of the stack - TODO: make configurable */ +#define VMSTK_SIZE 256 + /* the vmstk object */ typedef struct vmstk_s { BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */ + var_t *vStk[VMSTK_SIZE];/* the actual stack */ + int iStkPtr; /* stack pointer, points to next free location, grows from 0 --> topend */ } vmstk_t; |