Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
Go to the source code of this file.
Macros | |
#define | lfunc_c |
#define | LUA_CORE |
#define | MAXDELTA ((256ul << ((sizeof(L->stack->tbclist.delta) - 1) * 8)) - 1) |
Functions | |
CClosure * | luaF_newCclosure (lua_State *L, int nupvals) |
LClosure * | luaF_newLclosure (lua_State *L, int nupvals) |
void | luaF_initupvals (lua_State *L, LClosure *cl) |
static UpVal * | newupval (lua_State *L, int tbc, StkId level, UpVal **prev) |
UpVal * | luaF_findupval (lua_State *L, StkId level) |
static void | callclosemethod (lua_State *L, TValue *obj, TValue *err, int yy) |
static void | checkclosemth (lua_State *L, StkId level) |
static void | prepcallclosemth (lua_State *L, StkId level, int status, int yy) |
void | luaF_newtbcupval (lua_State *L, StkId level) |
void | luaF_unlinkupval (UpVal *uv) |
void | luaF_closeupval (lua_State *L, StkId level) |
static void | poptbclist (lua_State *L) |
void | luaF_close (lua_State *L, StkId level, int status, int yy) |
Proto * | luaF_newproto (lua_State *L) |
void | luaF_freeproto (lua_State *L, Proto *f) |
const char * | luaF_getlocalname (const Proto *f, int local_number, int pc) |
#define lfunc_c |
Definition at line 7 of file lua-5.4.3/src/lfunc.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.4.3/src/lfunc.c.
#define MAXDELTA ((256ul << ((sizeof(L->stack->tbclist.delta) - 1) * 8)) - 1) |
Definition at line 162 of file lua-5.4.3/src/lfunc.c.
Referenced by luaF_newtbcupval(), and poptbclist().
Definition at line 108 of file lua-5.4.3/src/lfunc.c.
References luaD_call(), luaD_callnoyield(), luaT_gettmbyobj(), setobj2s, TM_CLOSE, and lua_State::top.
Referenced by prepcallclosemth().
Definition at line 126 of file lua-5.4.3/src/lfunc.c.
References cast_int, lua_State::ci, CallInfo::func, luaG_findlocal(), luaG_runerror(), luaT_gettmbyobj(), NULL, s2v, TM_CLOSE, and ttisnil.
Referenced by luaF_newtbcupval().
Definition at line 228 of file lua-5.4.3/src/lfunc.c.
References luaF_closeupval(), poptbclist(), prepcallclosemth(), restorestack, savestack, and lua_State::tbclist.
Definition at line 194 of file lua-5.4.3/src/lfunc.c.
References iswhite, lua_assert, luaC_barrier, luaF_unlinkupval(), NULL, nw2black, lua_State::openupval, setobj, lua_State::top, UpVal::u, uplevel, UpVal::v, and UpVal::value.
Referenced by luaE_freethread(), luaF_close(), and luaV_execute().
Definition at line 88 of file lua-5.4.3/src/lfunc.c.
References G, isdead, isintwups, lua_assert, newupval(), UpVal::next, NULL, UpVal::open, lua_State::openupval, UpVal::u, and uplevel.
Definition at line 267 of file lua-5.4.3/src/lfunc.c.
References Proto::abslineinfo, Proto::code, Proto::k, Proto::lineinfo, Proto::locvars, luaM_free, luaM_freearray, Proto::p, Proto::sizeabslineinfo, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, and Proto::upvalues.
const char * luaF_getlocalname | ( | const Proto * | f, |
int | local_number, | ||
int | pc ) |
Definition at line 283 of file lua-5.4.3/src/lfunc.c.
References getstr, Proto::locvars, NULL, Proto::sizelocvars, LocVar::startpc, and LocVar::varname.
Definition at line 48 of file lua-5.4.3/src/lfunc.c.
References gco2upv, LUA_VUPVAL, luaC_newobj(), luaC_objbarrier, setnilvalue, UpVal::u, LClosure::upvals, UpVal::v, and UpVal::value.
Definition at line 27 of file lua-5.4.3/src/lfunc.c.
References cast_byte, gco2ccl, LUA_VCCL, luaC_newobj(), and sizeCclosure.
Definition at line 35 of file lua-5.4.3/src/lfunc.c.
References cast_byte, gco2lcl, LUA_VLCL, luaC_newobj(), NULL, LClosure::p, sizeLclosure, and LClosure::upvals.
Definition at line 240 of file lua-5.4.3/src/lfunc.c.
References Proto::abslineinfo, Proto::code, gco2p, Proto::is_vararg, Proto::k, Proto::lastlinedefined, Proto::linedefined, Proto::lineinfo, Proto::locvars, LUA_VPROTO, luaC_newobj(), Proto::maxstacksize, NULL, Proto::numparams, Proto::p, Proto::sizeabslineinfo, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, Proto::source, and Proto::upvalues.
Definition at line 169 of file lua-5.4.3/src/lfunc.c.
References cast, cast_uint, checkclosemth(), l_isfalse, lua_assert, MAXDELTA, s2v, and lua_State::tbclist.
Referenced by lua_toclose(), and luaV_execute().
void luaF_unlinkupval | ( | UpVal * | uv | ) |
Definition at line 183 of file lua-5.4.3/src/lfunc.c.
References lua_assert, UpVal::next, UpVal::open, UpVal::previous, UpVal::u, and upisopen.
Referenced by freeupval(), and luaF_closeupval().
Definition at line 65 of file lua-5.4.3/src/lfunc.c.
References G, gco2upv, isintwups, LUA_VUPVAL, luaC_newobj(), next, UpVal::next, UpVal::open, UpVal::previous, s2v, UpVal::tbc, lua_State::twups, UpVal::u, and UpVal::v.
Referenced by luaF_findupval().
|
static |
Definition at line 214 of file lua-5.4.3/src/lfunc.c.
References lua_assert, MAXDELTA, lua_State::stack, and lua_State::tbclist.
Referenced by luaF_close().
Definition at line 144 of file lua-5.4.3/src/lfunc.c.
References callclosemethod(), CLOSEKTOP, G, luaD_seterrorobj(), and s2v.
Referenced by luaF_close().