summaryrefslogtreecommitdiffstats
path: root/vmstk.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-22 09:51:34 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-22 09:51:34 +0000
commitd3da6ba716d94ec684186a89a52fb90636db89ee (patch)
treec653c0c7e560be2839c468f4f877f1cf47ac83c5 /vmstk.h
parent8fdd3b45c0c2b2a5751efd79e2be4cc0241af53e (diff)
downloadrsyslog-d3da6ba716d94ec684186a89a52fb90636db89ee.tar.gz
rsyslog-d3da6ba716d94ec684186a89a52fb90636db89ee.tar.xz
rsyslog-d3da6ba716d94ec684186a89a52fb90636db89ee.zip
completed initial vmstk implementation
Diffstat (limited to 'vmstk.h')
-rw-r--r--vmstk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vmstk.h b/vmstk.h
index 4e81f5a0..30bb9009 100644
--- a/vmstk.h
+++ b/vmstk.h
@@ -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;