diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:28:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:28:06 -0300 |
commit | 4f88418170d298b065a7f71d86b1127153919ae9 (patch) | |
tree | 7e9c403890b4fe7ac13d501242cfdd967bf0285e /ldo.h | |
parent | 311e9f3ceb19eefe30a1b5f90dfad9898d8bac74 (diff) | |
download | lua-4f88418170d298b065a7f71d86b1127153919ae9.tar.gz lua-4f88418170d298b065a7f71d86b1127153919ae9.tar.bz2 lua-4f88418170d298b065a7f71d86b1127153919ae9.zip |
'CallInfo' stack implemented as double-linked list instead of an array
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.h,v 2.10 2008/08/13 17:02:42 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 2.11 2009/03/10 17:14:37 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -24,9 +24,6 @@ | |||
24 | #define savestack(L,p) ((char *)(p) - (char *)L->stack) | 24 | #define savestack(L,p) ((char *)(p) - (char *)L->stack) |
25 | #define restorestack(L,n) ((TValue *)((char *)L->stack + (n))) | 25 | #define restorestack(L,n) ((TValue *)((char *)L->stack + (n))) |
26 | 26 | ||
27 | #define saveci(L,p) ((char *)(p) - (char *)L->base_ci) | ||
28 | #define restoreci(L,n) ((CallInfo *)((char *)L->base_ci + (n))) | ||
29 | |||
30 | 27 | ||
31 | /* type of protected functions, to be ran by `runprotected' */ | 28 | /* type of protected functions, to be ran by `runprotected' */ |
32 | typedef void (*Pfunc) (lua_State *L, void *ud); | 29 | typedef void (*Pfunc) (lua_State *L, void *ud); |