#include "lobject.h"
Go to the source code of this file.
Functions | |
Proto * | luaF_newproto (lua_State *L) |
Closure * | luaF_newCclosure (lua_State *L, int nelems) |
Closure * | luaF_newLclosure (lua_State *L, int nelems, TObject *e) |
UpVal * | luaF_findupval (lua_State *L, StkId level) |
void | luaF_close (lua_State *L, StkId level) |
void | luaF_freeproto (lua_State *L, Proto *f) |
void | luaF_freeclosure (lua_State *L, Closure *c) |
const char * | luaF_getlocalname (const Proto *func, int local_number, int pc) |
Definition at line 66 of file lfunc.c.
References LUA_TUPVAL, luaC_link(), UpVal::next, ngcotouv, lua_State::openupval, setobj, UpVal::v, valtogco, and UpVal::value.
Referenced by close_state(), lua_close(), lua_resume(), luaD_pcall(), and luaE_freethread().
Definition at line 48 of file lfunc.c.
References LUA_TUPVAL, luaM_new, UpVal::marked, UpVal::next, ngcotouv, lua_State::openupval, UpVal::tt, UpVal::v, and valtogco.
Definition at line 113 of file lfunc.c.
References Closure::c, CClosure::isC, Closure::l, luaM_free, LClosure::nupvalues, CClosure::nupvalues, sizeCclosure, and sizeLclosure.
Referenced by freeobj().
Definition at line 102 of file lfunc.c.
References Proto::code, Proto::k, Proto::lineinfo, Proto::locvars, luaM_freearray, luaM_freelem, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, and Proto::upvalues.
Referenced by freeobj().
const char* luaF_getlocalname | ( | const Proto * | func, | |
int | local_number, | |||
int | pc | |||
) |
Definition at line 124 of file lfunc.c.
References getstr, Proto::locvars, Proto::sizelocvars, LocVar::startpc, and LocVar::varname.
Referenced by getobjname(), lua_getlocal(), and lua_setlocal().
Definition at line 29 of file lfunc.c.
References Closure::c, cast, CClosure::isC, luaC_link(), luaM_malloc, CClosure::nupvalues, sizeCclosure, and valtogco.
Referenced by f_Ccall(), and lua_pushcclosure().
Definition at line 38 of file lfunc.c.
References cast, LClosure::g, LClosure::isC, Closure::l, luaC_link(), luaM_malloc, LClosure::nupvalues, sizeLclosure, and valtogco.
Referenced by f_parser().
Definition at line 77 of file lfunc.c.
References Proto::code, Proto::is_vararg, Proto::k, Proto::lineDefined, Proto::lineinfo, Proto::locvars, LUA_TPROTO, luaC_link(), luaM_new, Proto::maxstacksize, Proto::numparams, Proto::nups, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, Proto::source, Proto::upvalues, and valtogco.
Referenced by LoadFunction(), and open_func().