Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Data Structures | |
struct | stringtable |
struct | CallInfo |
struct | global_State |
struct | lua_State |
union | GCUnion |
Macros | |
#define | yieldable(L) (((L)->nCcalls & 0xffff0000) == 0) |
#define | getCcalls(L) ((L)->nCcalls & 0xffff) |
#define | incnny(L) ((L)->nCcalls += 0x10000) |
#define | decnny(L) ((L)->nCcalls -= 0x10000) |
#define | nyci (0x10000 | 1) |
#define | l_signalT sig_atomic_t |
#define | EXTRA_STACK 5 |
#define | BASIC_STACK_SIZE (2*LUA_MINSTACK) |
#define | stacksize(th) cast_int((th)->stack_last - (th)->stack) |
#define | KGC_INC 0 /* incremental gc */ |
#define | KGC_GEN 1 /* generational gc */ |
#define | CIST_OAH (1<<0) /* original value of 'allowhook' */ |
#define | CIST_C (1<<1) /* call is running a C function */ |
#define | CIST_FRESH (1<<2) /* call is on a fresh "luaV_execute" frame */ |
#define | CIST_HOOKED (1<<3) /* call is running a debug hook */ |
#define | CIST_YPCALL (1<<4) /* doing a yieldable protected call */ |
#define | CIST_TAIL (1<<5) /* call was tail called */ |
#define | CIST_HOOKYIELD (1<<6) /* last hook called yielded */ |
#define | CIST_FIN (1<<7) /* call is running a finalizer */ |
#define | CIST_TRAN (1<<8) /* 'ci' has transfer information */ |
#define | CIST_CLSRET (1<<9) /* function is closing tbc variables */ |
#define | CIST_RECST 10 |
#define | getcistrecst(ci) (((ci)->callstatus >> CIST_RECST) & 7) |
#define | setcistrecst(ci, st) |
#define | isLua(ci) (!((ci)->callstatus & CIST_C)) |
#define | isLuacode(ci) (!((ci)->callstatus & (CIST_C | CIST_HOOKED))) |
#define | setoah(st, v) ((st) = ((st) & ~CIST_OAH) | (v)) |
#define | getoah(st) ((st) & CIST_OAH) |
#define | G(L) (L->l_G) |
#define | completestate(g) ttisnil(&g->nilvalue) |
#define | cast_u(o) cast(union GCUnion *, (o)) |
#define | gco2ts(o) check_exp(novariant((o)->tt) == LUA_TSTRING, &((cast_u(o))->ts)) |
#define | gco2u(o) check_exp((o)->tt == LUA_VUSERDATA, &((cast_u(o))->u)) |
#define | gco2lcl(o) check_exp((o)->tt == LUA_VLCL, &((cast_u(o))->cl.l)) |
#define | gco2ccl(o) check_exp((o)->tt == LUA_VCCL, &((cast_u(o))->cl.c)) |
#define | gco2cl(o) check_exp(novariant((o)->tt) == LUA_TFUNCTION, &((cast_u(o))->cl)) |
#define | gco2t(o) check_exp((o)->tt == LUA_VTABLE, &((cast_u(o))->h)) |
#define | gco2p(o) check_exp((o)->tt == LUA_VPROTO, &((cast_u(o))->p)) |
#define | gco2th(o) check_exp((o)->tt == LUA_VTHREAD, &((cast_u(o))->th)) |
#define | gco2upv(o) check_exp((o)->tt == LUA_VUPVAL, &((cast_u(o))->upv)) |
#define | obj2gco(v) check_exp((v)->tt >= LUA_TSTRING, &(cast_u(v)->gc)) |
#define | gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt) |
Typedefs | |
typedef struct stringtable | stringtable |
typedef struct CallInfo | CallInfo |
typedef struct global_State | global_State |
Functions | |
LUAI_FUNC void | luaE_setdebt (global_State *g, l_mem debt) |
LUAI_FUNC void | luaE_freethread (lua_State *L, lua_State *L1) |
LUAI_FUNC CallInfo * | luaE_extendCI (lua_State *L) |
LUAI_FUNC void | luaE_freeCI (lua_State *L) |
LUAI_FUNC void | luaE_shrinkCI (lua_State *L) |
LUAI_FUNC void | luaE_checkcstack (lua_State *L) |
LUAI_FUNC void | luaE_incCstack (lua_State *L) |
LUAI_FUNC void | luaE_warning (lua_State *L, const char *msg, int tocont) |
LUAI_FUNC void | luaE_warnerror (lua_State *L, const char *where) |
LUAI_FUNC int | luaE_resetthread (lua_State *L, int status) |
#define BASIC_STACK_SIZE (2*LUA_MINSTACK) |
Definition at line 140 of file lua-5.4.3/src/lstate.h.
Definition at line 365 of file lua-5.4.3/src/lstate.h.
Definition at line 206 of file lua-5.4.3/src/lstate.h.
Referenced by luaD_precall(), luaE_resetthread(), and stack_init().
#define CIST_CLSRET (1<<9) /* function is closing tbc variables */ |
Definition at line 214 of file lua-5.4.3/src/lstate.h.
Referenced by finishCcall(), luaD_poscall(), and moveresults().
Definition at line 212 of file lua-5.4.3/src/lstate.h.
Definition at line 207 of file lua-5.4.3/src/lstate.h.
Definition at line 208 of file lua-5.4.3/src/lstate.h.
#define CIST_HOOKYIELD (1<<6) /* last hook called yielded */ |
Definition at line 211 of file lua-5.4.3/src/lstate.h.
#define CIST_OAH (1<<0) /* original value of 'allowhook' */ |
Definition at line 205 of file lua-5.4.3/src/lstate.h.
#define CIST_RECST 10 |
Definition at line 216 of file lua-5.4.3/src/lstate.h.
#define CIST_TAIL (1<<5) /* call was tail called */ |
Definition at line 210 of file lua-5.4.3/src/lstate.h.
#define CIST_TRAN (1<<8) /* 'ci' has transfer information */ |
Definition at line 213 of file lua-5.4.3/src/lstate.h.
Referenced by auxgetinfo(), luaD_hook(), and luaD_poscall().
Definition at line 209 of file lua-5.4.3/src/lstate.h.
#define completestate | ( | g | ) | ttisnil(&g->nilvalue) |
Definition at line 336 of file lua-5.4.3/src/lstate.h.
Referenced by close_state(), and tryagain().
#define decnny | ( | L | ) | ((L)->nCcalls -= 0x10000) |
Definition at line 109 of file lua-5.4.3/src/lstate.h.
Referenced by luaD_protectedparser().
#define EXTRA_STACK 5 |
Definition at line 137 of file lua-5.4.3/src/lstate.h.
#define G | ( | L | ) | (L->l_G) |
Definition at line 330 of file lua-5.4.3/src/lstate.h.
Definition at line 372 of file lua-5.4.3/src/lstate.h.
#define gco2cl | ( | o | ) | check_exp(novariant((o)->tt) == LUA_TFUNCTION, &((cast_u(o))->cl)) |
Definition at line 373 of file lua-5.4.3/src/lstate.h.
Definition at line 371 of file lua-5.4.3/src/lstate.h.
#define gco2p | ( | o | ) | check_exp((o)->tt == LUA_VPROTO, &((cast_u(o))->p)) |
Definition at line 376 of file lua-5.4.3/src/lstate.h.
#define gco2t | ( | o | ) | check_exp((o)->tt == LUA_VTABLE, &((cast_u(o))->h)) |
Definition at line 375 of file lua-5.4.3/src/lstate.h.
#define gco2th | ( | o | ) | check_exp((o)->tt == LUA_VTHREAD, &((cast_u(o))->th)) |
Definition at line 377 of file lua-5.4.3/src/lstate.h.
#define gco2ts | ( | o | ) | check_exp(novariant((o)->tt) == LUA_TSTRING, &((cast_u(o))->ts)) |
Definition at line 368 of file lua-5.4.3/src/lstate.h.
#define gco2u | ( | o | ) | check_exp((o)->tt == LUA_VUSERDATA, &((cast_u(o))->u)) |
Definition at line 370 of file lua-5.4.3/src/lstate.h.
#define gco2upv | ( | o | ) | check_exp((o)->tt == LUA_VUPVAL, &((cast_u(o))->upv)) |
Definition at line 378 of file lua-5.4.3/src/lstate.h.
Referenced by freeobj(), luaF_initupvals(), newupval(), reallymarkobject(), and sweep2old().
#define getCcalls | ( | L | ) | ((L)->nCcalls & 0xffff) |
Definition at line 102 of file lua-5.4.3/src/lstate.h.
Referenced by ccall(), lua_resume(), luaE_checkcstack(), and luaE_incCstack().
#define getcistrecst | ( | ci | ) | (((ci)->callstatus >> CIST_RECST) & 7) |
Definition at line 228 of file lua-5.4.3/src/lstate.h.
Referenced by finishpcallk().
#define getoah | ( | st | ) | ((st) & CIST_OAH) |
Definition at line 243 of file lua-5.4.3/src/lstate.h.
Definition at line 389 of file lua-5.4.3/src/lstate.h.
#define incnny | ( | L | ) | ((L)->nCcalls += 0x10000) |
Definition at line 106 of file lua-5.4.3/src/lstate.h.
Referenced by lua_newstate(), and luaD_protectedparser().
#define isLua | ( | ci | ) | (!((ci)->callstatus & CIST_C)) |
Definition at line 236 of file lua-5.4.3/src/lstate.h.
#define isLuacode | ( | ci | ) | (!((ci)->callstatus & (CIST_C | CIST_HOOKED))) |
Definition at line 239 of file lua-5.4.3/src/lstate.h.
Referenced by lua_yieldk(), luaT_callTM(), and luaT_callTMres().
#define KGC_GEN 1 /* generational gc */ |
Definition at line 147 of file lua-5.4.3/src/lstate.h.
#define KGC_INC 0 /* incremental gc */ |
Definition at line 146 of file lua-5.4.3/src/lstate.h.
Referenced by enterinc(), lua_gc(), lua_newstate(), luaC_barrier_(), luaC_freeallobjects(), and luaC_fullgc().
#define l_signalT sig_atomic_t |
Definition at line 126 of file lua-5.4.3/src/lstate.h.
#define nyci (0x10000 | 1) |
Definition at line 112 of file lua-5.4.3/src/lstate.h.
Referenced by luaD_callnoyield().
#define obj2gco | ( | v | ) | check_exp((v)->tt >= LUA_TSTRING, &(cast_u(v)->gc)) |
Definition at line 385 of file lua-5.4.3/src/lstate.h.
#define setcistrecst | ( | ci, | |
st ) |
Definition at line 229 of file lua-5.4.3/src/lstate.h.
Referenced by finishpcallk(), and precover().
#define setoah | ( | st, | |
v ) ((st) = ((st) & ~CIST_OAH) | (v)) |
Definition at line 242 of file lua-5.4.3/src/lstate.h.
#define stacksize | ( | th | ) | cast_int((th)->stack_last - (th)->stack) |
Definition at line 142 of file lua-5.4.3/src/lstate.h.
Referenced by checkstacksizes(), freestack(), luaD_growstack(), luaD_growstack(), luaD_reallocstack(), luaD_shrinkstack(), and traversethread().
#define yieldable | ( | L | ) | (((L)->nCcalls & 0xffff0000) == 0) |
Definition at line 99 of file lua-5.4.3/src/lstate.h.
Referenced by finishCcall(), lua_callk(), lua_isyieldable(), lua_pcallk(), and lua_yieldk().
typedef struct CallInfo CallInfo |
typedef struct global_State global_State |
typedef struct stringtable stringtable |
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 112 of file lua-5.2.4/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.
Definition at line 122 of file lua-5.2.4/src/lstate.c.
References lua_State::ci, luaM_free, lua_State::nci, next, CallInfo::next, and NULL.
Referenced by freestack(), freestack(), freestack(), luaD_shrinkstack(), and sweepthread().
Definition at line 134 of file lua-5.1.5/src/lstate.c.
References freestack(), freestack(), freestack(), freestack(), fromstate, lua_assert, luaF_close(), luaF_closeupval(), luai_userstatefree, luaM_free, luaM_freemem, NULL, lua_State::openupval, lua_State::stack, and state_size.
Referenced by freeobj(), freeobj(), freeobj(), and freeobj().
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().
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().
LUAI_FUNC void luaE_setdebt | ( | global_State * | g, |
l_mem | debt ) |
Definition at line 106 of file lua-5.2.4/src/lstate.c.
References global_State::GCdebt, gettotalbytes, lua_assert, MAX_LMEM, and global_State::totalbytes.
Referenced by incstep(), incstep(), lua_gc(), lua_gc(), luaC_step(), setminordebt(), setpause(), setpause(), and setpause().
Definition at line 137 of file lua-5.3.6/src/lstate.c.
References lua_State::ci, luaM_free, lua_State::nci, next, CallInfo::next, NULL, and CallInfo::previous.
Referenced by luaD_shrinkstack().
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().
Definition at line 417 of file lua-5.4.3/src/lstate.c.
Referenced by lua_warning(), and luaE_warnerror().