lua/lstate.c File Reference

#include <stddef.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"

Include dependency graph for lstate.c:

Go to the source code of this file.

Data Structures

struct  LG

Defines

#define lstate_c
#define LUA_CORE
#define state_size(x)   (sizeof(x) + LUAI_EXTRASPACE)
#define fromstate(l)   (cast(lu_byte *, (l)) - LUAI_EXTRASPACE)
#define tostate(l)   (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE))

Functions

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, global_State *g)
static void close_state (lua_State *L)
lua_StateluaE_newthread (lua_State *L)
void luaE_freethread (lua_State *L, lua_State *L1)
lua_Statelua_newstate (lua_Alloc f, void *ud)
static void callallgcTM (lua_State *L, void *ud)
void lua_close (lua_State *L)


Define Documentation

#define fromstate (  )     (cast(lu_byte *, (l)) - LUAI_EXTRASPACE)

Definition at line 28 of file lstate.c.

Referenced by close_state(), and luaE_freethread().

#define lstate_c

Definition at line 10 of file lstate.c.

#define LUA_CORE

Definition at line 11 of file lstate.c.

#define state_size (  )     (sizeof(x) + LUAI_EXTRASPACE)

Definition at line 27 of file lstate.c.

Referenced by close_state(), lua_newstate(), luaE_freethread(), and luaE_newthread().

#define tostate (  )     (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE))

Definition at line 29 of file lstate.c.

Referenced by lua_newstate(), and luaE_newthread().


Function Documentation

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

Definition at line 193 of file lstate.c.

References luaC_callGCTM(), and UNUSED.

Referenced by lua_close().

static void close_state ( lua_State L  )  [static]

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

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

void lua_close ( lua_State L  ) 

lua_State* lua_newstate ( lua_Alloc  f,
void *  ud 
)

void luaE_freethread ( lua_State L,
lua_State L1 
)

lua_State* luaE_newthread ( lua_State L  ) 

static void preinit_state ( lua_State L,
global_State g 
) [static]

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


Generated on Wed Nov 4 20:11:47 2009 for rpm by  doxygen 1.5.9