summaryrefslogtreecommitdiffstats
path: root/sample/test.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-23 22:01:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-23 22:01:36 +0000
commit93742ee6a67c807b1fc0be75f93aea0072c04572 (patch)
tree0d6a7ebff5032a6e385ba6de3b64b775511bfd71 /sample/test.rb
parent8aabecdc6b4c60759590d8dfe64fbf4855cc7fed (diff)
* ext/win32ole/win32ole.c: got rid of improper casts.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
0 files changed, 0 insertions, 0 deletions
e max size of the stack - TODO: make configurable */ #define VMSTK_SIZE 256 /* the vmstk object */ 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 */ }; /* interfaces */ BEGINinterface(vmstk) /* name must also be changed in ENDinterface macro! */ INTERFACEObjDebugPrint(vmstk); rsRetVal (*Construct)(vmstk_t **ppThis); rsRetVal (*ConstructFinalize)(vmstk_t __attribute__((unused)) *pThis); rsRetVal (*Destruct)(vmstk_t **ppThis); rsRetVal (*Push)(vmstk_t *pThis, var_t *pVar); rsRetVal (*Pop)(vmstk_t *pThis, var_t **ppVar); rsRetVal (*PopBool)(vmstk_t *pThis, var_t **ppVar); rsRetVal (*PopNumber)(vmstk_t *pThis, var_t **ppVar); rsRetVal (*PopString)(vmstk_t *pThis, var_t **ppVar); rsRetVal (*Pop2CommOp)(vmstk_t *pThis, var_t **ppVar1, var_t **ppVar2); ENDinterface(vmstk) #define vmstkCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */ /* prototypes */ PROTOTYPEObj(vmstk); #endif /* #ifndef INCLUDED_VMSTK_H */