lua/lstate.c File Reference

#include <stdlib.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "llex.h"
#include "lmem.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"

Go to the source code of this file.

Defines

#define lstate_c
#define EXTRASPACE   0

Functions

static int default_panic (lua_State *L)
static lua_Statemallocstate (lua_State *L)
static void freestate (lua_State *L, lua_State *L1)
static void stack_init (lua_State *L1, lua_State *L)
static void freestack (lua_State *L, lua_State *L1)
static void f_luaopen (lua_State *L, void *ud)
static void preinit_state (lua_State *L)
static void close_state (lua_State *L)
lua_StateluaE_newthread (lua_State *L)
void luaE_freethread (lua_State *L, lua_State *L1)
LUA_API lua_Statelua_open (void)
static void callallgcTM (lua_State *L, void *ud)
LUA_API void lua_close (lua_State *L)


Define Documentation

#define EXTRASPACE   0

Definition at line 30 of file lstate.c.

Referenced by freestate(), and mallocstate().

#define lstate_c

Definition at line 10 of file lstate.c.


Function Documentation

static void callallgcTM ( lua_State L,
void *  ud 
) [static]

Definition at line 218 of file lstate.c.

References luaC_callGCTM(), and UNUSED.

Referenced by lua_close().

static void close_state ( lua_State L  )  [static]

static int default_panic ( lua_State L  )  [static]

Definition at line 42 of file lstate.c.

References UNUSED.

Referenced by f_luaopen().

static void f_luaopen ( lua_State L,
void *  ud 
) [static]

static void freestack ( lua_State L,
lua_State L1 
) [static]

static void freestate ( lua_State L,
lua_State L1 
) [static]

Definition at line 63 of file lstate.c.

References cast, EXTRASPACE, and luaM_free.

Referenced by close_state(), and luaE_freethread().

LUA_API void lua_close ( lua_State L  ) 

LUA_API lua_State* lua_open ( void   ) 

void luaE_freethread ( lua_State L,
lua_State L1 
)

Definition at line 190 of file lstate.c.

References freestack(), freestate(), lua_assert, luaF_close(), lua_State::openupval, and lua_State::stack.

Referenced by freeobj().

lua_State* luaE_newthread ( lua_State L  ) 

Definition at line 179 of file lstate.c.

References gt, lua_State::l_G, luaC_link(), mallocstate(), preinit_state(), setobj2n, stack_init(), and valtogco.

Referenced by lua_newthread().

static lua_State* mallocstate ( lua_State L  )  [static]

Definition at line 51 of file lstate.c.

References block(), cast, EXTRASPACE, and luaM_malloc.

Referenced by lua_open(), and luaE_newthread().

static void preinit_state ( lua_State L  )  [static]

static void stack_init ( lua_State L1,
lua_State L 
) [static]


Generated on Fri Dec 12 13:02:11 2008 for rpm by  doxygen 1.5.6