Classes | Macros | Typedefs | Functions
lstate.c File Reference
#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>
Include dependency graph for lstate.c:

Go to the source code of this file.

Classes

struct  LG
 
struct  LX
 

Macros

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

Typedefs

typedef struct LG LG
 
typedef struct LX LX
 

Functions

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

Macro Definition Documentation

◆ addbuff

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

Definition at line 67 of file lstate.c.

◆ fromstate

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

Definition at line 51 of file lstate.c.

◆ lstate_c

#define lstate_c

Definition at line 7 of file lstate.c.

◆ LUA_CORE

#define LUA_CORE

Definition at line 8 of file lstate.c.

Typedef Documentation

◆ LG

typedef struct LG LG

◆ LX

typedef struct LX LX

Function Documentation

◆ close_state()

static void close_state ( lua_State L)
static

Definition at line 269 of file lstate.c.

◆ f_luaopen()

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

Definition at line 231 of file lstate.c.

◆ freestack()

static void freestack ( lua_State L)
static

Definition at line 203 of file lstate.c.

◆ init_registry()

static void init_registry ( lua_State L,
global_State g 
)
static

Definition at line 216 of file lstate.c.

◆ lua_close()

LUA_API void lua_close ( lua_State L)

Definition at line 410 of file lstate.c.

◆ lua_newstate()

LUA_API lua_State* lua_newstate ( lua_Alloc  f,
void *  ud 
)

Definition at line 354 of file lstate.c.

◆ lua_newthread()

LUA_API lua_State* lua_newthread ( lua_State L)

Definition at line 285 of file lstate.c.

◆ lua_resetthread()

LUA_API int lua_resetthread ( lua_State L)

Definition at line 345 of file lstate.c.

◆ lua_setcstacklimit()

LUA_API int lua_setcstacklimit ( lua_State L,
unsigned int  limit 
)

Definition at line 99 of file lstate.c.

◆ luaE_checkcstack()

void luaE_checkcstack ( lua_State L)

Definition at line 165 of file lstate.c.

◆ luaE_extendCI()

CallInfo* luaE_extendCI ( lua_State L)

Definition at line 105 of file lstate.c.

◆ luaE_freeCI()

void luaE_freeCI ( lua_State L)

Definition at line 122 of file lstate.c.

◆ luaE_freethread()

void luaE_freethread ( lua_State L,
lua_State L1 
)

Definition at line 316 of file lstate.c.

◆ luaE_incCstack()

LUAI_FUNC void luaE_incCstack ( lua_State L)

Definition at line 173 of file lstate.c.

◆ luaE_resetthread()

int luaE_resetthread ( lua_State L,
int  status 
)

Definition at line 326 of file lstate.c.

◆ luaE_setdebt()

void luaE_setdebt ( global_State g,
l_mem  debt 
)

Definition at line 89 of file lstate.c.

◆ luaE_shrinkCI()

void luaE_shrinkCI ( lua_State L)

Definition at line 138 of file lstate.c.

◆ luaE_warnerror()

void luaE_warnerror ( lua_State L,
const char *  where 
)

Definition at line 427 of file lstate.c.

◆ luaE_warning()

void luaE_warning ( lua_State L,
const char *  msg,
int  tocont 
)

Definition at line 417 of file lstate.c.

◆ luai_makeseed()

static unsigned int luai_makeseed ( lua_State L)
static

Definition at line 71 of file lstate.c.

◆ preinit_thread()

static void preinit_thread ( lua_State L,
global_State g 
)
static

Definition at line 249 of file lstate.c.

◆ stack_init()

static void stack_init ( lua_State L1,
lua_State L 
)
static

Definition at line 180 of file lstate.c.

cast_sizet
#define cast_sizet(i)
Definition: llimits.h:134


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49