aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/lua/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdParty/lua/lstate.h')
-rw-r--r--src/3rdParty/lua/lstate.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/3rdParty/lua/lstate.h b/src/3rdParty/lua/lstate.h
index 2e90781..007704c 100644
--- a/src/3rdParty/lua/lstate.h
+++ b/src/3rdParty/lua/lstate.h
@@ -9,6 +9,11 @@
9 9
10#include "lua.h" 10#include "lua.h"
11 11
12
13/* Some header files included here need this definition */
14typedef struct CallInfo CallInfo;
15
16
12#include "lobject.h" 17#include "lobject.h"
13#include "ltm.h" 18#include "ltm.h"
14#include "lzio.h" 19#include "lzio.h"
@@ -169,14 +174,14 @@ typedef struct stringtable {
169** - field 'transferinfo' is used only during call/returnhooks, 174** - field 'transferinfo' is used only during call/returnhooks,
170** before the function starts or after it ends. 175** before the function starts or after it ends.
171*/ 176*/
172typedef struct CallInfo { 177struct CallInfo {
173 StkIdRel func; /* function index in the stack */ 178 StkIdRel func; /* function index in the stack */
174 StkIdRel top; /* top for this function */ 179 StkIdRel top; /* top for this function */
175 struct CallInfo *previous, *next; /* dynamic call link */ 180 struct CallInfo *previous, *next; /* dynamic call link */
176 union { 181 union {
177 struct { /* only for Lua functions */ 182 struct { /* only for Lua functions */
178 const Instruction *savedpc; 183 const Instruction *savedpc;
179 volatile l_signalT trap; 184 volatile l_signalT trap; /* function is tracing lines/counts */
180 int nextraargs; /* # of extra arguments in vararg functions */ 185 int nextraargs; /* # of extra arguments in vararg functions */
181 } l; 186 } l;
182 struct { /* only for C functions */ 187 struct { /* only for C functions */
@@ -196,7 +201,7 @@ typedef struct CallInfo {
196 } u2; 201 } u2;
197 short nresults; /* expected number of results from this function */ 202 short nresults; /* expected number of results from this function */
198 unsigned short callstatus; 203 unsigned short callstatus;
199} CallInfo; 204};
200 205
201 206
202/* 207/*
@@ -291,7 +296,7 @@ typedef struct global_State {
291 struct lua_State *mainthread; 296 struct lua_State *mainthread;
292 TString *memerrmsg; /* message for memory-allocation errors */ 297 TString *memerrmsg; /* message for memory-allocation errors */
293 TString *tmname[TM_N]; /* array with tag-method names */ 298 TString *tmname[TM_N]; /* array with tag-method names */
294 struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ 299 struct Table *mt[LUA_NUMTYPES]; /* metatables for basic types */
295 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ 300 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */
296 lua_WarnFunction warnf; /* warning function */ 301 lua_WarnFunction warnf; /* warning function */
297 void *ud_warn; /* auxiliary data to 'warnf' */ 302 void *ud_warn; /* auxiliary data to 'warnf' */
@@ -391,7 +396,6 @@ union GCUnion {
391LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); 396LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
392LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); 397LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1);
393LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); 398LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L);
394LUAI_FUNC void luaE_freeCI (lua_State *L);
395LUAI_FUNC void luaE_shrinkCI (lua_State *L); 399LUAI_FUNC void luaE_shrinkCI (lua_State *L);
396LUAI_FUNC void luaE_checkcstack (lua_State *L); 400LUAI_FUNC void luaE_checkcstack (lua_State *L);
397LUAI_FUNC void luaE_incCstack (lua_State *L); 401LUAI_FUNC void luaE_incCstack (lua_State *L);