aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-03-07 15:09:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-03-07 15:09:25 -0300
commit6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9 (patch)
tree1f8fd00995288958a32ebd8f97863c5f1cb8f776 /lstate.h
parent5e870f86a255988ca85eda795adc31063ec1ac70 (diff)
downloadlua-6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9.tar.gz
lua-6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9.tar.bz2
lua-6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9.zip
better way to link callinfo's and stack
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/lstate.h b/lstate.h
index 21348211..69fd02ad 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.53 2001/02/23 20:30:01 roberto Exp roberto $ 2** $Id: lstate.h,v 1.54 2001/03/02 17:27:50 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -31,8 +31,6 @@
31#define LUA_USERSTATE 31#define LUA_USERSTATE
32#endif 32#endif
33 33
34typedef TObject *StkId; /* index to stack elements */
35
36 34
37/* 35/*
38** marks for Reference array 36** marks for Reference array
@@ -90,18 +88,19 @@ typedef struct global_State {
90struct lua_State { 88struct lua_State {
91 LUA_USERSTATE 89 LUA_USERSTATE
92 StkId top; /* first free slot in the stack */ 90 StkId top; /* first free slot in the stack */
93 StkId stack; /* stack base */ 91 CallInfo *ci; /* call info for current function */
94 StkId stack_last; /* last free slot in the stack */ 92 StkId stack_last; /* last free slot in the stack */
95 int stacksize;
96 StkId Cbase; /* base for current C function */
97 Hash *gt; /* table for globals */ 93 Hash *gt; /* table for globals */
98 global_State *G; 94 global_State *G;
95 StkId stack; /* stack base */
96 int stacksize;
99 lua_Hook callhook; 97 lua_Hook callhook;
100 lua_Hook linehook; 98 lua_Hook linehook;
101 int allowhooks; 99 int allowhooks;
102 struct lua_longjmp *errorJmp; /* current error recover point */ 100 struct lua_longjmp *errorJmp; /* current error recover point */
103 lua_State *next; /* circular double linked list of states */ 101 lua_State *next; /* circular double linked list of states */
104 lua_State *previous; 102 lua_State *previous;
103 CallInfo basefunc;
105}; 104};
106 105
107 106