lua5.4
| 宏定义 | 类型定义 | 函数
lstate.c 文件参考
#include "lprefix.h"
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lapi.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 <time.h>
lstate.c 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

struct  LX
 
struct  LG
 

宏定义

#define lstate_c
 
#define LUA_CORE
 
#define fromstate(L)   (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l)))
 
#define addbuff(b, p, e)
 

类型定义

typedef struct LX LX
 
typedef struct LG LG
 

函数

static unsigned int luai_makeseed (lua_State *L)
 
void luaE_setdebt (global_State *g, l_mem debt)
 
LUA_API int lua_setcstacklimit (lua_State *L, unsigned int limit)
 
CallInfoluaE_extendCI (lua_State *L)
 
void luaE_freeCI (lua_State *L)
 
void luaE_shrinkCI (lua_State *L)
 
void luaE_checkcstack (lua_State *L)
 
LUAI_FUNC void luaE_incCstack (lua_State *L)
 
static void stack_init (lua_State *L1, lua_State *L)
 
static void freestack (lua_State *L)
 
static void init_registry (lua_State *L, global_State *g)
 
static void f_luaopen (lua_State *L, void *ud)
 
static void preinit_thread (lua_State *L, global_State *g)
 
static void close_state (lua_State *L)
 
LUA_API lua_Statelua_newthread (lua_State *L)
 
void luaE_freethread (lua_State *L, lua_State *L1)
 
int lua_resetthread (lua_State *L)
 
LUA_API lua_Statelua_newstate (lua_Alloc f, void *ud)
 
LUA_API void lua_close (lua_State *L)
 
void luaE_warning (lua_State *L, const char *msg, int tocont)
 
void luaE_warnerror (lua_State *L, const char *where)
 

宏定义说明

◆ addbuff

#define addbuff (   b,
  p,
 
)
值:
{ size_t t = cast_sizet(e); \
memcpy(b + p, &t, sizeof(t)); p += sizeof(t); }

◆ fromstate

#define fromstate (   L)    (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l)))

◆ lstate_c

#define lstate_c

◆ LUA_CORE

#define LUA_CORE

类型定义说明

◆ LG

typedef struct LG LG

◆ LX

typedef struct LX LX

函数说明

◆ close_state()

static void close_state ( lua_State L)
static
函数调用图:
这是这个函数的调用关系图:

◆ f_luaopen()

static void f_luaopen ( lua_State L,
void *  ud 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ freestack()

static void freestack ( lua_State L)
static
函数调用图:
这是这个函数的调用关系图:

◆ init_registry()

static void init_registry ( lua_State L,
global_State g 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ lua_close()

LUA_API void lua_close ( lua_State L)
函数调用图:
这是这个函数的调用关系图:

◆ lua_newstate()

LUA_API lua_State* lua_newstate ( lua_Alloc  f,
void *  ud 
)
函数调用图:
这是这个函数的调用关系图:

◆ lua_newthread()

LUA_API lua_State* lua_newthread ( lua_State L)
函数调用图:
这是这个函数的调用关系图:

◆ lua_resetthread()

int lua_resetthread ( lua_State L)
函数调用图:
这是这个函数的调用关系图:

◆ lua_setcstacklimit()

LUA_API int lua_setcstacklimit ( lua_State L,
unsigned int  limit 
)
这是这个函数的调用关系图:

◆ luaE_checkcstack()

void luaE_checkcstack ( lua_State L)
函数调用图:
这是这个函数的调用关系图:

◆ luaE_extendCI()

CallInfo* luaE_extendCI ( lua_State L)

◆ luaE_freeCI()

void luaE_freeCI ( lua_State L)
这是这个函数的调用关系图:

◆ luaE_freethread()

void luaE_freethread ( lua_State L,
lua_State L1 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaE_incCstack()

LUAI_FUNC void luaE_incCstack ( lua_State L)
函数调用图:
这是这个函数的调用关系图:

◆ luaE_setdebt()

void luaE_setdebt ( global_State g,
l_mem  debt 
)
这是这个函数的调用关系图:

◆ luaE_shrinkCI()

void luaE_shrinkCI ( lua_State L)
这是这个函数的调用关系图:

◆ luaE_warnerror()

void luaE_warnerror ( lua_State L,
const char *  where 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaE_warning()

void luaE_warning ( lua_State L,
const char *  msg,
int  tocont 
)
这是这个函数的调用关系图:

◆ luai_makeseed()

static unsigned int luai_makeseed ( lua_State L)
static
函数调用图:
这是这个函数的调用关系图:

◆ preinit_thread()

static void preinit_thread ( lua_State L,
global_State g 
)
static
这是这个函数的调用关系图:

◆ stack_init()

static void stack_init ( lua_State L1,
lua_State L 
)
static
这是这个函数的调用关系图:
cast_sizet
#define cast_sizet(i)
Definition: llimits.h:134