Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "llex.h"
#include "lmem.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include <time.h>
Go to the source code of this file.
Data Structures | |
struct | LX |
struct | LG |
Macros | |
#define | lstate_c |
#define | LUA_CORE |
#define | fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l))) |
#define | addbuff(b, p, e) |
Typedefs | |
typedef struct LX | LX |
typedef struct LG | LG |
#define addbuff | ( | b, | |
p, | |||
e ) |
Definition at line 67 of file lua-5.4.3/src/lstate.c.
Referenced by luai_makeseed().
Definition at line 51 of file lua-5.4.3/src/lstate.c.
Referenced by close_state(), and luaE_freethread().
#define lstate_c |
Definition at line 7 of file lua-5.4.3/src/lstate.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.4.3/src/lstate.c.
typedef struct LG LG |
typedef struct LX LX |
|
static |
Definition at line 269 of file lua-5.4.3/src/lstate.c.
References completestate, global_State::frealloc, freestack(), fromstate, G, gettotalbytes, lua_assert, LUA_OK, luaC_freeallobjects(), luaD_closeprotected(), luai_userstateclose, luaM_freearray, and global_State::ud.
Referenced by lua_close(), and lua_newstate().
|
static |
Definition at line 231 of file lua-5.4.3/src/lstate.c.
References G, global_State::gcrunning, init_registry(), luai_userstateopen, luaS_init(), luaT_init(), luaX_init(), global_State::nilvalue, setnilvalue, stack_init(), and UNUSED.
Referenced by lua_newstate().
|
static |
Definition at line 203 of file lua-5.4.3/src/lstate.c.
References lua_State::base_ci, lua_State::ci, EXTRA_STACK, lua_assert, luaE_freeCI(), luaM_freearray, lua_State::nci, NULL, lua_State::stack, and stacksize.
Referenced by close_state(), and luaE_freethread().
|
static |
Definition at line 216 of file lua-5.4.3/src/lstate.c.
References global_State::l_registry, LUA_RIDX_GLOBALS, LUA_RIDX_LAST, LUA_RIDX_MAINTHREAD, luaH_new(), luaH_resize(), registry, sethvalue, and setthvalue.
Referenced by f_luaopen().
Definition at line 410 of file lua-5.4.3/src/lstate.c.
References close_state(), G, and lua_lock.
Definition at line 354 of file lua-5.4.3/src/lstate.c.
References global_State::allgc, global_State::allweak, bitmask, cast, close_state(), global_State::currentwhite, global_State::ephemeron, f_luaopen(), global_State::finobj, global_State::finobjold1, global_State::finobjrold, global_State::finobjsur, global_State::firstold1, global_State::fixedgc, global_State::frealloc, LG::g, global_State::GCdebt, global_State::gcemergency, global_State::gckind, global_State::gcpause, global_State::gcrunning, GCSpause, global_State::gcstate, global_State::gcstepmul, global_State::gcstepsize, global_State::gcstopem, global_State::genmajormul, global_State::genminormul, global_State::gray, global_State::grayagain, stringtable::hash, incnny, KGC_INC, LG::l, global_State::l_registry, global_State::lastatomic, LUA_NUMTAGS, LUA_OK, LUA_TTHREAD, LUA_VTHREAD, luaC_white, luaD_rawrunprotected(), LUAI_GCMUL, LUAI_GCPAUSE, LUAI_GCSTEPSIZE, LUAI_GENMAJORMUL, LUAI_GENMINORMUL, luai_makeseed, global_State::mainthread, global_State::mt, global_State::nilvalue, NULL, stringtable::nuse, obj2gco, global_State::old1, global_State::panic, preinit_thread(), global_State::reallyold, global_State::seed, setgcparam, setivalue, setnilvalue, stringtable::size, global_State::strt, global_State::survival, global_State::sweepgc, global_State::tobefnz, global_State::totalbytes, global_State::twups, global_State::ud, global_State::ud_warn, global_State::warnf, global_State::weak, and WHITE0BIT.
Referenced by luai_makeseed().
Definition at line 285 of file lua-5.4.3/src/lstate.c.
References global_State::allgc, api_incr_top, lua_State::basehookcount, cast, G, lua_State::hook, lua_State::hookmask, LUA_EXTRASPACE, lua_getextraspace, lua_lock, LUA_TTHREAD, lua_unlock, LUA_VTHREAD, luaC_checkGC, luaC_white, luai_userstatethread, luaM_newobject, global_State::mainthread, obj2gco, preinit_thread(), resethookcount, setthvalue2s, stack_init(), and lua_State::top.
Definition at line 345 of file lua-5.4.3/src/lstate.c.
References lua_lock, lua_unlock, luaE_resetthread(), and lua_State::status.
Referenced by luaB_auxwrap(), and luaB_close().
Definition at line 99 of file lua-5.4.3/src/lstate.c.
References LUAI_MAXCCALLS, and UNUSED.
Referenced by db_setcstacklimit().
void luaE_checkcstack | ( | lua_State * | L | ) |
Definition at line 165 of file lua-5.4.3/src/lstate.c.
References getCcalls, LUA_ERRERR, luaD_throw(), luaG_runerror(), and LUAI_MAXCCALLS.
Referenced by ccall(), and luaE_incCstack().
Definition at line 105 of file lua-5.4.3/src/lstate.c.
References lua_State::ci, CallInfo::l, lua_assert, luaM_new, lua_State::nci, CallInfo::next, NULL, CallInfo::previous, CallInfo::trap, and CallInfo::u.
void luaE_freeCI | ( | lua_State * | L | ) |
Definition at line 122 of file lua-5.4.3/src/lstate.c.
References lua_State::ci, luaM_free, lua_State::nci, next, CallInfo::next, and NULL.
Referenced by freestack().
Definition at line 316 of file lua-5.4.3/src/lstate.c.
References freestack(), fromstate, lua_assert, luaF_closeupval(), luai_userstatefree, luaM_free, NULL, lua_State::openupval, and lua_State::stack.
Definition at line 173 of file lua-5.4.3/src/lstate.c.
References getCcalls, luaE_checkcstack(), LUAI_MAXCCALLS, and lua_State::nCcalls.
Referenced by resume().
int luaE_resetthread | ( | lua_State * | L, |
int | status ) |
Definition at line 326 of file lua-5.4.3/src/lstate.c.
References lua_State::base_ci, CallInfo::callstatus, cast_byte, cast_int, lua_State::ci, CIST_C, CallInfo::func, LUA_MINSTACK, LUA_OK, LUA_YIELD, luaD_closeprotected(), luaD_reallocstack(), luaD_seterrorobj(), s2v, setnilvalue, lua_State::stack, lua_State::status, CallInfo::top, and lua_State::top.
Referenced by lua_resetthread(), and luaD_throw().
void luaE_setdebt | ( | global_State * | g, |
l_mem | debt ) |
Definition at line 89 of file lua-5.4.3/src/lstate.c.
References global_State::GCdebt, gettotalbytes, lua_assert, MAX_LMEM, and global_State::totalbytes.
void luaE_shrinkCI | ( | lua_State * | L | ) |
Definition at line 138 of file lua-5.4.3/src/lstate.c.
References lua_State::ci, luaM_free, lua_State::nci, next, CallInfo::next, NULL, and CallInfo::previous.
void luaE_warnerror | ( | lua_State * | L, |
const char * | where ) |
Definition at line 427 of file lua-5.4.3/src/lstate.c.
References luaE_warning(), s2v, svalue, lua_State::top, and ttisstring.
Referenced by GCTM().
void luaE_warning | ( | lua_State * | L, |
const char * | msg, | ||
int | tocont ) |
Definition at line 417 of file lua-5.4.3/src/lstate.c.
Referenced by lua_warning(), and luaE_warnerror().
|
static |
Definition at line 71 of file lua-5.4.3/src/lstate.c.
References addbuff, cast_uint, lua_assert, lua_newstate(), luaS_hash(), and NULL.
|
static |
Definition at line 249 of file lua-5.4.3/src/lstate.c.
References lua_State::allowhook, lua_State::basehookcount, lua_State::ci, lua_State::errfunc, lua_State::errorJmp, G, lua_State::hook, lua_State::hookmask, LUA_OK, lua_State::nCcalls, lua_State::nci, NULL, lua_State::oldpc, lua_State::openupval, resethookcount, lua_State::stack, lua_State::status, and lua_State::twups.
Referenced by lua_newstate(), and lua_newthread().
Definition at line 180 of file lua-5.4.3/src/lstate.c.
References lua_State::base_ci, BASIC_STACK_SIZE, CallInfo::c, CallInfo::callstatus, lua_State::ci, CIST_C, EXTRA_STACK, CallInfo::func, CallInfo::k, LUA_MINSTACK, luaM_newvector, CallInfo::next, CallInfo::nresults, NULL, CallInfo::previous, s2v, setnilvalue, lua_State::stack, lua_State::stack_last, lua_State::tbclist, CallInfo::top, lua_State::top, and CallInfo::u.
Referenced by f_luaopen(), and lua_newthread().