diff options
author | Li Jin <dragon-fly@qq.com> | 2022-12-02 10:40:09 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-12-02 10:40:09 +0800 |
commit | 298b18dbe852300199cc529c942a181bead5f135 (patch) | |
tree | f4b5ae89b6920fa0a12c693118f85334f19754f8 /src/3rdParty/lua/lstate.h | |
parent | a6a65ba26a9d320611abcbfba49fa724edfb4dad (diff) | |
download | yuescript-298b18dbe852300199cc529c942a181bead5f135.tar.gz yuescript-298b18dbe852300199cc529c942a181bead5f135.tar.bz2 yuescript-298b18dbe852300199cc529c942a181bead5f135.zip |
update Lua.
Diffstat (limited to 'src/3rdParty/lua/lstate.h')
-rw-r--r-- | src/3rdParty/lua/lstate.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/3rdParty/lua/lstate.h b/src/3rdParty/lua/lstate.h index 61e82cd..2e90781 100644 --- a/src/3rdParty/lua/lstate.h +++ b/src/3rdParty/lua/lstate.h | |||
@@ -139,7 +139,7 @@ struct lua_longjmp; /* defined in ldo.c */ | |||
139 | 139 | ||
140 | #define BASIC_STACK_SIZE (2*LUA_MINSTACK) | 140 | #define BASIC_STACK_SIZE (2*LUA_MINSTACK) |
141 | 141 | ||
142 | #define stacksize(th) cast_int((th)->stack_last - (th)->stack) | 142 | #define stacksize(th) cast_int((th)->stack_last.p - (th)->stack.p) |
143 | 143 | ||
144 | 144 | ||
145 | /* kinds of Garbage Collection */ | 145 | /* kinds of Garbage Collection */ |
@@ -170,8 +170,8 @@ typedef struct stringtable { | |||
170 | ** before the function starts or after it ends. | 170 | ** before the function starts or after it ends. |
171 | */ | 171 | */ |
172 | typedef struct CallInfo { | 172 | typedef struct CallInfo { |
173 | StkId func; /* function index in the stack */ | 173 | StkIdRel func; /* function index in the stack */ |
174 | StkId top; /* top for this function */ | 174 | StkIdRel top; /* top for this function */ |
175 | struct CallInfo *previous, *next; /* dynamic call link */ | 175 | struct CallInfo *previous, *next; /* dynamic call link */ |
176 | union { | 176 | union { |
177 | struct { /* only for Lua functions */ | 177 | struct { /* only for Lua functions */ |
@@ -306,13 +306,13 @@ struct lua_State { | |||
306 | lu_byte status; | 306 | lu_byte status; |
307 | lu_byte allowhook; | 307 | lu_byte allowhook; |
308 | unsigned short nci; /* number of items in 'ci' list */ | 308 | unsigned short nci; /* number of items in 'ci' list */ |
309 | StkId top; /* first free slot in the stack */ | 309 | StkIdRel top; /* first free slot in the stack */ |
310 | global_State *l_G; | 310 | global_State *l_G; |
311 | CallInfo *ci; /* call info for current function */ | 311 | CallInfo *ci; /* call info for current function */ |
312 | StkId stack_last; /* end of stack (last element + 1) */ | 312 | StkIdRel stack_last; /* end of stack (last element + 1) */ |
313 | StkId stack; /* stack base */ | 313 | StkIdRel stack; /* stack base */ |
314 | UpVal *openupval; /* list of open upvalues in this stack */ | 314 | UpVal *openupval; /* list of open upvalues in this stack */ |
315 | StkId tbclist; /* list of to-be-closed variables */ | 315 | StkIdRel tbclist; /* list of to-be-closed variables */ |
316 | GCObject *gclist; | 316 | GCObject *gclist; |
317 | struct lua_State *twups; /* list of threads with open upvalues */ | 317 | struct lua_State *twups; /* list of threads with open upvalues */ |
318 | struct lua_longjmp *errorJmp; /* current error recover point */ | 318 | struct lua_longjmp *errorJmp; /* current error recover point */ |