lfunc.c File Reference

Go to the source code of this file.

Defines

#define lfunc_c
#define LUA_CORE

Functions

ClosureluaF_newCclosure (lua_State *L, int nelems, Table *e)
ClosureluaF_newLclosure (lua_State *L, int nelems, Table *e)
UpValluaF_newupval (lua_State *L)
UpValluaF_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)
ProtoluaF_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 Documentation

#define lfunc_c

Definition at line 10 of file lfunc.c.

#define LUA_CORE

Definition at line 11 of file lfunc.c.


Function Documentation

void luaF_close ( lua_State L,
StkId  level 
)
UpVal* luaF_findupval ( lua_State L,
StkId  level 
)
void luaF_freeclosure ( lua_State L,
Closure c 
)

Definition at line 152 of file lfunc.c.

References Closure::c, Closure::l, luaM_freemem, sizeCclosure, and sizeLclosure.

Referenced by freeobj().

void luaF_freeproto ( lua_State L,
Proto f 
)
void luaF_freeupval ( lua_State L,
UpVal uv 
)

Definition at line 89 of file lfunc.c.

References luaM_free, UpVal::u, unlinkupval(), UpVal::v, and UpVal::value.

Referenced by freeobj(), and luaF_close().

const char* luaF_getlocalname ( const Proto f,
int  local_number,
int  pc 
)

Definition at line 163 of file lfunc.c.

References getstr, Proto::locvars, Proto::sizelocvars, LocVar::startpc, and LocVar::varname.

Referenced by findlocal(), and getobjname().

Closure* luaF_newCclosure ( lua_State L,
int  nelems,
Table e 
)

Definition at line 23 of file lfunc.c.

References Closure::c, cast, cast_byte, LUA_TFUNCTION, luaC_link(), luaM_malloc, obj2gco, and sizeCclosure.

Referenced by f_Ccall(), and lua_pushcclosure().

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

Definition at line 33 of file lfunc.c.

References cast, cast_byte, Closure::l, LUA_TFUNCTION, luaC_link(), luaM_malloc, obj2gco, sizeLclosure, and LClosure::upvals.

Referenced by f_parser(), and luaV_execute().

Proto* luaF_newproto ( lua_State L  ) 
UpVal* luaF_newupval ( lua_State L  ) 

Definition at line 44 of file lfunc.c.

References LUA_TUPVAL, luaC_link(), luaM_new, obj2gco, setnilvalue, UpVal::u, UpVal::v, and UpVal::value.

Referenced by f_parser().

static void unlinkupval ( UpVal uv  )  [static]

Definition at line 82 of file lfunc.c.

References UpVal::l, lua_assert, and UpVal::u.

Referenced by luaF_close(), and luaF_freeupval().


ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:59 2011 by Doxygen 1.6.1