summaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-17 11:28:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-17 11:28:06 -0300
commit4f88418170d298b065a7f71d86b1127153919ae9 (patch)
tree7e9c403890b4fe7ac13d501242cfdd967bf0285e /ldo.h
parent311e9f3ceb19eefe30a1b5f90dfad9898d8bac74 (diff)
downloadlua-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.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/ldo.h b/ldo.h
index c600bfe4..57695b0a 100644
--- a/ldo.h
+++ b/ldo.h
@@ -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' */
32typedef void (*Pfunc) (lua_State *L, void *ud); 29typedef void (*Pfunc) (lua_State *L, void *ud);