diff options
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -339,8 +339,8 @@ typedef struct global_State { | |||
339 | */ | 339 | */ |
340 | struct lua_State { | 340 | struct lua_State { |
341 | CommonHeader; | 341 | CommonHeader; |
342 | lu_byte status; | ||
343 | lu_byte allowhook; | 342 | lu_byte allowhook; |
343 | TStatus status; | ||
344 | unsigned short nci; /* number of items in 'ci' list */ | 344 | unsigned short nci; /* number of items in 'ci' list */ |
345 | StkIdRel top; /* first free slot in the stack */ | 345 | StkIdRel top; /* first free slot in the stack */ |
346 | global_State *l_G; | 346 | global_State *l_G; |
@@ -352,10 +352,10 @@ struct lua_State { | |||
352 | GCObject *gclist; | 352 | GCObject *gclist; |
353 | struct lua_State *twups; /* list of threads with open upvalues */ | 353 | struct lua_State *twups; /* list of threads with open upvalues */ |
354 | struct lua_longjmp *errorJmp; /* current error recover point */ | 354 | struct lua_longjmp *errorJmp; /* current error recover point */ |
355 | CallInfo base_ci; /* CallInfo for first level (C calling Lua) */ | 355 | CallInfo base_ci; /* CallInfo for first level (C host) */ |
356 | volatile lua_Hook hook; | 356 | volatile lua_Hook hook; |
357 | ptrdiff_t errfunc; /* current error handling function (stack index) */ | 357 | ptrdiff_t errfunc; /* current error handling function (stack index) */ |
358 | l_uint32 nCcalls; /* number of nested (non-yieldable | C) calls */ | 358 | l_uint32 nCcalls; /* number of nested non-yieldable or C calls */ |
359 | int oldpc; /* last pc traced */ | 359 | int oldpc; /* last pc traced */ |
360 | int basehookcount; | 360 | int basehookcount; |
361 | int hookcount; | 361 | int hookcount; |
@@ -438,7 +438,7 @@ LUAI_FUNC void luaE_checkcstack (lua_State *L); | |||
438 | LUAI_FUNC void luaE_incCstack (lua_State *L); | 438 | LUAI_FUNC void luaE_incCstack (lua_State *L); |
439 | LUAI_FUNC void luaE_warning (lua_State *L, const char *msg, int tocont); | 439 | LUAI_FUNC void luaE_warning (lua_State *L, const char *msg, int tocont); |
440 | LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where); | 440 | LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where); |
441 | LUAI_FUNC int luaE_resetthread (lua_State *L, int status); | 441 | LUAI_FUNC TStatus luaE_resetthread (lua_State *L, TStatus status); |
442 | 442 | ||
443 | 443 | ||
444 | #endif | 444 | #endif |