lua/lfunc.h File Reference

#include "lobject.h"

Go to the source code of this file.

Functions

ProtoluaF_newproto (lua_State *L)
ClosureluaF_newCclosure (lua_State *L, int nelems)
ClosureluaF_newLclosure (lua_State *L, int nelems, TObject *e)
UpValluaF_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)


Function Documentation

void luaF_close ( lua_State L,
StkId  level 
)

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().

UpVal* luaF_findupval ( lua_State L,
StkId  level 
)

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.

void luaF_freeclosure ( lua_State L,
Closure c 
)

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().

void luaF_freeproto ( lua_State L,
Proto f 
)

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().

Closure* luaF_newCclosure ( lua_State L,
int  nelems 
)

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().

Closure* luaF_newLclosure ( lua_State L,
int  nelems,
TObject e 
)

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().

Proto* luaF_newproto ( lua_State L  ) 

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().


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2