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:
This graph shows which files directly or indirectly include this file:

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)
 
int lua_resetthread (lua_State *L)
 
LUA_API int lua_setcstacklimit (lua_State *L, unsigned int limit)
 
void luaE_enterCcall (lua_State *L)
 
CallInfoluaE_extendCI (lua_State *L)
 
void luaE_freeCI (lua_State *L)
 
void luaE_freethread (lua_State *L, lua_State *L1)
 
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

#define addbuff (   b,
  p,
 
)
Value:
{ size_t t = cast_sizet(e); \
memcpy(b + p, &t, sizeof(t)); p += sizeof(t); }
#define cast_sizet(i)
Definition: llimits.h:134

Definition at line 67 of file lstate.c.

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

Definition at line 51 of file lstate.c.

#define lstate_c

Definition at line 7 of file lstate.c.

#define LUA_CORE

Definition at line 8 of file lstate.c.

Typedef Documentation

typedef struct LG LG
typedef struct LX LX

Function Documentation

static void close_state ( lua_State L)
static

Definition at line 308 of file lstate.c.

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

Definition at line 270 of file lstate.c.

static void freestack ( lua_State L)
static

Definition at line 237 of file lstate.c.

static void init_registry ( lua_State L,
global_State g 
)
static

Definition at line 250 of file lstate.c.

LUA_API void lua_close ( lua_State L)

Definition at line 441 of file lstate.c.

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

Definition at line 385 of file lstate.c.

LUA_API lua_State* lua_newthread ( lua_State L)

Definition at line 321 of file lstate.c.

int lua_resetthread ( lua_State L)

Definition at line 363 of file lstate.c.

LUA_API int lua_setcstacklimit ( lua_State L,
unsigned int  limit 
)

Definition at line 99 of file lstate.c.

void luaE_enterCcall ( lua_State L)

Definition at line 135 of file lstate.c.

CallInfo* luaE_extendCI ( lua_State L)

Definition at line 156 of file lstate.c.

void luaE_freeCI ( lua_State L)

Definition at line 174 of file lstate.c.

void luaE_freethread ( lua_State L,
lua_State L1 
)

Definition at line 353 of file lstate.c.

void luaE_setdebt ( global_State g,
l_mem  debt 
)

Definition at line 89 of file lstate.c.

void luaE_shrinkCI ( lua_State L)

Definition at line 192 of file lstate.c.

void luaE_warnerror ( lua_State L,
const char *  where 
)

Definition at line 458 of file lstate.c.

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

Definition at line 448 of file lstate.c.

static unsigned int luai_makeseed ( lua_State L)
static

Definition at line 71 of file lstate.c.

static void preinit_thread ( lua_State L,
global_State g 
)
static

Definition at line 288 of file lstate.c.

static void stack_init ( lua_State L1,
lua_State L 
)
static

Definition at line 214 of file lstate.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48