Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

lua/lfunc.h File Reference

#include "lobject.h"

Include dependency graph for lfunc.h:

This graph shows which files directly or indirectly include this file:

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(), luaE_freethread(), and luaV_execute().

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.

Referenced by luaV_execute().

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, 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(), and luaV_execute().

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 Wed Dec 28 00:20:01 2016 for rpm by  doxygen 1.4.4