Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <stddef.h>
#include "lua.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 |
Functions | |
Closure * | luaF_newCclosure (lua_State *L, int nelems, Table *e) |
Closure * | luaF_newLclosure (lua_State *L, int nelems, Table *e) |
UpVal * | luaF_newupval (lua_State *L) |
UpVal * | luaF_findupval (lua_State *L, StkId level) |
static void | unlinkupval (UpVal *uv) |
void | luaF_freeupval (lua_State *L, UpVal *uv) |
void | luaF_close (lua_State *L, StkId level) |
Proto * | luaF_newproto (lua_State *L) |
void | luaF_freeproto (lua_State *L, Proto *f) |
void | luaF_freeclosure (lua_State *L, Closure *c) |
const char * | luaF_getlocalname (const Proto *f, int local_number, int pc) |
#define lfunc_c |
Definition at line 10 of file lua-5.1.5/src/lfunc.c.
#define LUA_CORE |
Definition at line 11 of file lua-5.1.5/src/lfunc.c.
Definition at line 96 of file lua-5.1.5/src/lfunc.c.
References G, isblack, isdead, lua_assert, luaC_linkupval(), luaF_freeupval(), UpVal::next, ngcotouv, NULL, obj2gco, lua_State::openupval, setobj, UpVal::u, unlinkupval(), UpVal::v, and UpVal::value.
Referenced by close_state(), close_state(), close_state(), closepaux(), finishpcallk(), lua_close(), lua_closeslot(), lua_settop(), luaD_pcall(), luaE_freethread(), luaV_execute(), luaV_execute(), luaV_execute(), moveresults(), recover(), recover(), and resetstack().
Definition at line 53 of file lua-5.1.5/src/lfunc.c.
References changewhite, G, isdead, UpVal::l, lua_assert, LUA_TUPVAL, luaC_white, luaM_new, UpVal::next, ngcotouv, NULL, obj2gco, lua_State::openupval, UpVal::prev, UpVal::u, global_State::uvhead, UpVal::v, and UpVal::value.
Referenced by luaV_execute(), pushclosure(), pushclosure(), and pushclosure().
Definition at line 152 of file lua-5.1.5/src/lfunc.c.
References Closure::c, Closure::l, luaM_freemem, sizeCclosure, and sizeLclosure.
Referenced by freeobj().
Definition at line 141 of file lua-5.1.5/src/lfunc.c.
References Proto::code, Proto::k, Proto::lineinfo, Proto::locvars, luaM_free, luaM_freearray, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, and Proto::upvalues.
Referenced by freeobj(), freeobj(), freeobj(), and freeobj().
Definition at line 89 of file lua-5.1.5/src/lfunc.c.
References luaM_free, UpVal::u, unlinkupval(), UpVal::v, and UpVal::value.
Referenced by freeobj(), freeobj(), and luaF_close().
const char * luaF_getlocalname | ( | const Proto * | f, |
int | local_number, | ||
int | pc ) |
Definition at line 163 of file lua-5.1.5/src/lfunc.c.
References getstr, Proto::locvars, NULL, Proto::sizelocvars, LocVar::startpc, and LocVar::varname.
Referenced by findlocal(), findlocal(), findlocal(), getobjname(), getobjname(), getobjname(), getobjname(), lua_getlocal(), and luaG_findlocal().
Definition at line 23 of file lua-5.1.5/src/lfunc.c.
References Closure::c, cast, cast_byte, LUA_TFUNCTION, luaC_link(), luaM_malloc, obj2gco, and sizeCclosure.
Referenced by f_Ccall(), and lua_pushcclosure().
Definition at line 33 of file lua-5.1.5/src/lfunc.c.
References cast, cast_byte, Closure::l, LUA_TFUNCTION, luaC_link(), luaM_malloc, NULL, obj2gco, sizeLclosure, and LClosure::upvals.
Referenced by f_parser(), luaU_undump(), luaU_undump(), luaV_execute(), luaY_parser(), pushclosure(), pushclosure(), and pushclosure().
Definition at line 115 of file lua-5.1.5/src/lfunc.c.
References Proto::code, Proto::is_vararg, Proto::k, Proto::lastlinedefined, Proto::linedefined, Proto::lineinfo, Proto::locvars, LUA_TPROTO, luaC_link(), luaM_new, Proto::maxstacksize, NULL, Proto::numparams, Proto::nups, obj2gco, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, Proto::source, and Proto::upvalues.
Referenced by addprototype(), addprototype(), addprototype(), combine(), LoadConstants(), LoadFunction(), LoadProtos(), loadProtos(), luaU_undump(), luaU_undump(), luaY_parser(), and open_func().
Definition at line 44 of file lua-5.1.5/src/lfunc.c.
References LUA_TUPVAL, luaC_link(), luaM_new, obj2gco, setnilvalue, UpVal::u, UpVal::v, and UpVal::value.
Referenced by f_parser(), and f_parser().
|
static |
Definition at line 82 of file lua-5.1.5/src/lfunc.c.
References UpVal::l, lua_assert, UpVal::next, UpVal::prev, and UpVal::u.
Referenced by luaF_close(), and luaF_freeupval().