Macros | Functions | Variables
lbaselib.c File Reference
#include "lprefix.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Include dependency graph for lbaselib.c:

Go to the source code of this file.

Macros

#define lbaselib_c
 
#define LUA_LIB
 
#define RESERVEDSLOT   5
 
#define SPACECHARS   " \f\n\r\t\v"
 

Functions

static const char * b_str2int (const char *s, int base, lua_Integer *pn)
 
static int dofilecont (lua_State *L, int d1, lua_KContext d2)
 
static int finishpcall (lua_State *L, int status, lua_KContext extra)
 
static const char * generic_reader (lua_State *L, void *ud, size_t *size)
 
static int ipairsaux (lua_State *L)
 
static int load_aux (lua_State *L, int status, int envidx)
 
static int luaB_assert (lua_State *L)
 
static int luaB_collectgarbage (lua_State *L)
 
static int luaB_dofile (lua_State *L)
 
static int luaB_error (lua_State *L)
 
static int luaB_getmetatable (lua_State *L)
 
static int luaB_ipairs (lua_State *L)
 
static int luaB_load (lua_State *L)
 
static int luaB_loadfile (lua_State *L)
 
static int luaB_next (lua_State *L)
 
static int luaB_pairs (lua_State *L)
 
static int luaB_pcall (lua_State *L)
 
static int luaB_print (lua_State *L)
 
static int luaB_rawequal (lua_State *L)
 
static int luaB_rawget (lua_State *L)
 
static int luaB_rawlen (lua_State *L)
 
static int luaB_rawset (lua_State *L)
 
static int luaB_select (lua_State *L)
 
static int luaB_setmetatable (lua_State *L)
 
static int luaB_tonumber (lua_State *L)
 
static int luaB_tostring (lua_State *L)
 
static int luaB_type (lua_State *L)
 
static int luaB_warn (lua_State *L)
 
static int luaB_xpcall (lua_State *L)
 
LUAMOD_API int luaopen_base (lua_State *L)
 
static int pushmode (lua_State *L, int oldmode)
 

Variables

static const luaL_Reg base_funcs []
 

Macro Definition Documentation

◆ lbaselib_c

#define lbaselib_c

Definition at line 7 of file lbaselib.c.

◆ LUA_LIB

#define LUA_LIB

Definition at line 8 of file lbaselib.c.

◆ RESERVEDSLOT

#define RESERVEDSLOT   5

Definition at line 340 of file lbaselib.c.

◆ SPACECHARS

#define SPACECHARS   " \f\n\r\t\v"

Definition at line 58 of file lbaselib.c.

Function Documentation

◆ b_str2int()

static const char* b_str2int ( const char *  s,
int  base,
lua_Integer pn 
)
static

Definition at line 60 of file lbaselib.c.

◆ dofilecont()

static int dofilecont ( lua_State L,
int  d1,
lua_KContext  d2 
)
static

Definition at line 388 of file lbaselib.c.

◆ finishpcall()

static int finishpcall ( lua_State L,
int  status,
lua_KContext  extra 
)
static

Definition at line 440 of file lbaselib.c.

◆ generic_reader()

static const char* generic_reader ( lua_State L,
void *  ud,
size_t *  size 
)
static

Definition at line 349 of file lbaselib.c.

◆ ipairsaux()

static int ipairsaux ( lua_State L)
static

Definition at line 282 of file lbaselib.c.

◆ load_aux()

static int load_aux ( lua_State L,
int  status,
int  envidx 
)
static

Definition at line 302 of file lbaselib.c.

◆ luaB_assert()

static int luaB_assert ( lua_State L)
static

Definition at line 404 of file lbaselib.c.

◆ luaB_collectgarbage()

static int luaB_collectgarbage ( lua_State L)
static

Definition at line 191 of file lbaselib.c.

◆ luaB_dofile()

static int luaB_dofile ( lua_State L)
static

Definition at line 394 of file lbaselib.c.

◆ luaB_error()

static int luaB_error ( lua_State L)
static

Definition at line 114 of file lbaselib.c.

◆ luaB_getmetatable()

static int luaB_getmetatable ( lua_State L)
static

Definition at line 126 of file lbaselib.c.

◆ luaB_ipairs()

static int luaB_ipairs ( lua_State L)
static

Definition at line 293 of file lbaselib.c.

◆ luaB_load()

static int luaB_load ( lua_State L)
static

Definition at line 366 of file lbaselib.c.

◆ luaB_loadfile()

static int luaB_loadfile ( lua_State L)
static

Definition at line 319 of file lbaselib.c.

◆ luaB_next()

static int luaB_next ( lua_State L)
static

Definition at line 252 of file lbaselib.c.

◆ luaB_pairs()

static int luaB_pairs ( lua_State L)
static

Definition at line 264 of file lbaselib.c.

◆ luaB_pcall()

static int luaB_pcall ( lua_State L)
static

Definition at line 451 of file lbaselib.c.

◆ luaB_print()

static int luaB_print ( lua_State L)
static

Definition at line 24 of file lbaselib.c.

◆ luaB_rawequal()

static int luaB_rawequal ( lua_State L)
static

Definition at line 149 of file lbaselib.c.

◆ luaB_rawget()

static int luaB_rawget ( lua_State L)
static

Definition at line 166 of file lbaselib.c.

◆ luaB_rawlen()

static int luaB_rawlen ( lua_State L)
static

Definition at line 157 of file lbaselib.c.

◆ luaB_rawset()

static int luaB_rawset ( lua_State L)
static

Definition at line 174 of file lbaselib.c.

◆ luaB_select()

static int luaB_select ( lua_State L)
static

Definition at line 417 of file lbaselib.c.

◆ luaB_setmetatable()

static int luaB_setmetatable ( lua_State L)
static

Definition at line 137 of file lbaselib.c.

◆ luaB_tonumber()

static int luaB_tonumber ( lua_State L)
static

Definition at line 81 of file lbaselib.c.

◆ luaB_tostring()

static int luaB_tostring ( lua_State L)
static

Definition at line 478 of file lbaselib.c.

◆ luaB_type()

static int luaB_type ( lua_State L)
static

Definition at line 244 of file lbaselib.c.

◆ luaB_warn()

static int luaB_warn ( lua_State L)
static

Definition at line 45 of file lbaselib.c.

◆ luaB_xpcall()

static int luaB_xpcall ( lua_State L)
static

Definition at line 466 of file lbaselib.c.

◆ luaopen_base()

LUAMOD_API int luaopen_base ( lua_State L)

Definition at line 516 of file lbaselib.c.

◆ pushmode()

static int pushmode ( lua_State L,
int  oldmode 
)
static

Definition at line 184 of file lbaselib.c.

Variable Documentation

◆ base_funcs

const luaL_Reg base_funcs[]
static
Initial value:
= {
{"assert", luaB_assert},
{"collectgarbage", luaB_collectgarbage},
{"dofile", luaB_dofile},
{"error", luaB_error},
{"getmetatable", luaB_getmetatable},
{"ipairs", luaB_ipairs},
{"loadfile", luaB_loadfile},
{"load", luaB_load},
{"next", luaB_next},
{"pairs", luaB_pairs},
{"pcall", luaB_pcall},
{"print", luaB_print},
{"warn", luaB_warn},
{"rawequal", luaB_rawequal},
{"rawlen", luaB_rawlen},
{"rawget", luaB_rawget},
{"rawset", luaB_rawset},
{"select", luaB_select},
{"setmetatable", luaB_setmetatable},
{"tonumber", luaB_tonumber},
{"tostring", luaB_tostring},
{"type", luaB_type},
{"xpcall", luaB_xpcall},
{LUA_GNAME, NULL},
{"_VERSION", NULL},
{NULL, NULL}
}

Definition at line 485 of file lbaselib.c.

luaB_tostring
static int luaB_tostring(lua_State *L)
Definition: lbaselib.c:478
luaB_rawequal
static int luaB_rawequal(lua_State *L)
Definition: lbaselib.c:149
luaB_load
static int luaB_load(lua_State *L)
Definition: lbaselib.c:366
LUA_GNAME
#define LUA_GNAME
Definition: lauxlib.h:20
luaB_rawget
static int luaB_rawget(lua_State *L)
Definition: lbaselib.c:166
luaB_xpcall
static int luaB_xpcall(lua_State *L)
Definition: lbaselib.c:466
luaB_next
static int luaB_next(lua_State *L)
Definition: lbaselib.c:252
luaB_getmetatable
static int luaB_getmetatable(lua_State *L)
Definition: lbaselib.c:126
luaB_type
static int luaB_type(lua_State *L)
Definition: lbaselib.c:244
luaB_rawlen
static int luaB_rawlen(lua_State *L)
Definition: lbaselib.c:157
luaB_warn
static int luaB_warn(lua_State *L)
Definition: lbaselib.c:45
luaB_loadfile
static int luaB_loadfile(lua_State *L)
Definition: lbaselib.c:319
luaB_select
static int luaB_select(lua_State *L)
Definition: lbaselib.c:417
luaB_ipairs
static int luaB_ipairs(lua_State *L)
Definition: lbaselib.c:293
luaB_error
static int luaB_error(lua_State *L)
Definition: lbaselib.c:114
luaB_pcall
static int luaB_pcall(lua_State *L)
Definition: lbaselib.c:451
luaB_pairs
static int luaB_pairs(lua_State *L)
Definition: lbaselib.c:264
luaB_dofile
static int luaB_dofile(lua_State *L)
Definition: lbaselib.c:394
luaB_tonumber
static int luaB_tonumber(lua_State *L)
Definition: lbaselib.c:81
luaB_collectgarbage
static int luaB_collectgarbage(lua_State *L)
Definition: lbaselib.c:191
luaB_rawset
static int luaB_rawset(lua_State *L)
Definition: lbaselib.c:174
luaB_assert
static int luaB_assert(lua_State *L)
Definition: lbaselib.c:404
luaB_setmetatable
static int luaB_setmetatable(lua_State *L)
Definition: lbaselib.c:137
luaB_print
static int luaB_print(lua_State *L)
Definition: lbaselib.c:24


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