Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Macros | |
#define | lbaselib_c |
#define | LUA_LIB |
#define | SPACECHARS " \f\n\r\t\v" |
#define | RESERVEDSLOT 5 |
Functions | |
static int | luaB_print (lua_State *L) |
static const char * | b_str2int (const char *s, int base, lua_Integer *pn) |
static int | luaB_tonumber (lua_State *L) |
static int | luaB_error (lua_State *L) |
static int | luaB_getmetatable (lua_State *L) |
static int | luaB_setmetatable (lua_State *L) |
static int | luaB_rawequal (lua_State *L) |
static int | luaB_rawlen (lua_State *L) |
static int | luaB_rawget (lua_State *L) |
static int | luaB_rawset (lua_State *L) |
static int | luaB_collectgarbage (lua_State *L) |
static int | luaB_type (lua_State *L) |
static int | pairsmeta (lua_State *L, const char *method, int iszero, lua_CFunction iter) |
static int | luaB_next (lua_State *L) |
static int | luaB_pairs (lua_State *L) |
static int | ipairsaux (lua_State *L) |
static int | luaB_ipairs (lua_State *L) |
static int | load_aux (lua_State *L, int status, int envidx) |
static int | luaB_loadfile (lua_State *L) |
static const char * | generic_reader (lua_State *L, void *ud, size_t *size) |
static int | luaB_load (lua_State *L) |
static int | dofilecont (lua_State *L, int d1, lua_KContext d2) |
static int | luaB_dofile (lua_State *L) |
static int | luaB_assert (lua_State *L) |
static int | luaB_select (lua_State *L) |
static int | finishpcall (lua_State *L, int status, lua_KContext extra) |
static int | luaB_pcall (lua_State *L) |
static int | luaB_xpcall (lua_State *L) |
static int | luaB_tostring (lua_State *L) |
LUAMOD_API int | luaopen_base (lua_State *L) |
Variables | |
static const luaL_Reg | base_funcs [] |
#define lbaselib_c |
Definition at line 7 of file lua-5.3.6/src/lbaselib.c.
#define LUA_LIB |
Definition at line 8 of file lua-5.3.6/src/lbaselib.c.
#define RESERVEDSLOT 5 |
Definition at line 308 of file lua-5.3.6/src/lbaselib.c.
Referenced by generic_reader(), and luaB_load().
#define SPACECHARS " \f\n\r\t\v" |
Definition at line 46 of file lua-5.3.6/src/lbaselib.c.
Referenced by b_str2int().
|
static |
Definition at line 48 of file lua-5.3.6/src/lbaselib.c.
References digit(), NULL, s, and SPACECHARS.
Referenced by luaB_tonumber().
|
static |
Definition at line 356 of file lua-5.3.6/src/lbaselib.c.
References lua_gettop().
Referenced by luaB_dofile().
|
static |
Definition at line 408 of file lua-5.3.6/src/lbaselib.c.
References lua_gettop(), LUA_OK, lua_pushboolean(), lua_pushvalue(), and LUA_YIELD.
Referenced by luaB_pcall(), and luaB_xpcall().
|
static |
Definition at line 317 of file lua-5.3.6/src/lbaselib.c.
References lua_call, lua_isnil, lua_isstring(), lua_pop, lua_pushvalue(), lua_replace, lua_tolstring(), luaL_checkstack(), luaL_error(), NULL, and RESERVEDSLOT.
Referenced by luaB_load().
|
static |
Definition at line 246 of file lua-5.3.6/src/lbaselib.c.
References lua_geti(), lua_pushinteger(), LUA_TNIL, and luaL_checkinteger().
Referenced by luaB_ipairs().
|
static |
Definition at line 270 of file lua-5.3.6/src/lbaselib.c.
References lua_insert, LUA_OK, lua_pop, lua_pushnil(), lua_pushvalue(), and lua_setupvalue().
Referenced by luaB_load(), and luaB_loadfile().
|
static |
Definition at line 372 of file lua-5.3.6/src/lbaselib.c.
References lua_gettop(), lua_pushliteral, lua_remove, lua_settop(), lua_toboolean(), luaB_error(), and luaL_checkany().
|
static |
Definition at line 173 of file lua-5.3.6/src/lbaselib.c.
References lua_gc(), LUA_GCCOLLECT, LUA_GCCOUNT, LUA_GCCOUNTB, LUA_GCISRUNNING, LUA_GCRESTART, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, LUA_GCSTEP, LUA_GCSTOP, lua_pushboolean(), lua_pushinteger(), lua_pushnumber(), luaL_checkoption(), luaL_optinteger(), and NULL.
|
static |
Definition at line 362 of file lua-5.3.6/src/lbaselib.c.
References dofilecont(), lua_callk(), lua_error(), LUA_MULTRET, LUA_OK, lua_settop(), luaL_loadfile, luaL_optstring, and NULL.
|
static |
Definition at line 102 of file lua-5.3.6/src/lbaselib.c.
References lua_concat(), lua_error(), lua_pushvalue(), lua_settop(), LUA_TSTRING, lua_type(), luaL_optinteger(), and luaL_where().
Referenced by luaB_assert().
|
static |
Definition at line 114 of file lua-5.3.6/src/lbaselib.c.
References lua_getmetatable(), lua_pushnil(), luaL_checkany(), and luaL_getmetafield().
|
static |
Definition at line 257 of file lua-5.3.6/src/lbaselib.c.
References ipairsaux(), lua_pushcfunction, lua_pushinteger(), lua_pushvalue(), luaL_checkany(), and pairsmeta().
|
static |
Definition at line 334 of file lua-5.3.6/src/lbaselib.c.
References generic_reader(), load_aux(), lua_isnone, lua_load(), lua_settop(), LUA_TFUNCTION, lua_tolstring(), luaL_checktype(), luaL_loadbufferx(), luaL_optstring, NULL, RESERVEDSLOT, and s.
|
static |
Definition at line 287 of file lua-5.3.6/src/lbaselib.c.
References load_aux(), lua_isnone, luaL_loadfilex(), luaL_optstring, and NULL.
|
static |
Definition at line 226 of file lua-5.3.6/src/lbaselib.c.
References lua_next(), lua_pushnil(), lua_settop(), LUA_TTABLE, and luaL_checktype().
Referenced by luaB_pairs().
|
static |
Definition at line 238 of file lua-5.3.6/src/lbaselib.c.
References luaB_next(), and pairsmeta().
|
static |
Definition at line 419 of file lua-5.3.6/src/lbaselib.c.
References finishpcall(), lua_gettop(), lua_insert, LUA_MULTRET, lua_pcallk(), lua_pushboolean(), and luaL_checkany().
|
static |
Definition at line 24 of file lua-5.3.6/src/lbaselib.c.
References lua_call, lua_getglobal, lua_gettop(), lua_pop, lua_pushvalue(), lua_tolstring(), lua_writeline, lua_writestring, luaL_error(), NULL, and s.
|
static |
Definition at line 138 of file lua-5.3.6/src/lbaselib.c.
References lua_pushboolean(), lua_rawequal(), and luaL_checkany().
|
static |
Definition at line 155 of file lua-5.3.6/src/lbaselib.c.
References lua_rawget(), lua_settop(), LUA_TTABLE, luaL_checkany(), and luaL_checktype().
|
static |
Definition at line 146 of file lua-5.3.6/src/lbaselib.c.
References lua_pushinteger(), lua_rawlen, LUA_TSTRING, LUA_TTABLE, lua_type(), and luaL_argcheck.
|
static |
Definition at line 163 of file lua-5.3.6/src/lbaselib.c.
References lua_rawset(), lua_settop(), LUA_TTABLE, luaL_checkany(), and luaL_checktype().
|
static |
Definition at line 385 of file lua-5.3.6/src/lbaselib.c.
References lua_gettop(), lua_pushinteger(), lua_tostring, LUA_TSTRING, lua_type(), luaL_argcheck, and luaL_checkinteger().
|
static |
Definition at line 125 of file lua-5.3.6/src/lbaselib.c.
References lua_setmetatable(), lua_settop(), LUA_TNIL, LUA_TTABLE, lua_type(), luaL_argcheck, luaL_checktype(), luaL_error(), and luaL_getmetafield().
|
static |
Definition at line 69 of file lua-5.3.6/src/lbaselib.c.
References b_str2int(), lua_isnoneornil, lua_pushinteger(), lua_pushnil(), lua_settop(), lua_stringtonumber(), LUA_TNUMBER, lua_tolstring(), LUA_TSTRING, lua_type(), luaL_argcheck, luaL_checkany(), luaL_checkinteger(), luaL_checktype(), NULL, and s.
|
static |
Definition at line 446 of file lua-5.3.6/src/lbaselib.c.
References luaL_checkany(), luaL_tolstring(), and NULL.
|
static |
Definition at line 201 of file lua-5.3.6/src/lbaselib.c.
References lua_pushstring(), LUA_TNONE, lua_type(), lua_typename(), and luaL_argcheck.
|
static |
Definition at line 434 of file lua-5.3.6/src/lbaselib.c.
References finishpcall(), lua_gettop(), LUA_MULTRET, lua_pcallk(), lua_pushboolean(), lua_pushvalue(), lua_rotate(), LUA_TFUNCTION, and luaL_checktype().
LUAMOD_API int luaopen_base | ( | lua_State * | L | ) |
Definition at line 486 of file lua-5.3.6/src/lbaselib.c.
References base_funcs, lua_pushglobaltable, lua_pushliteral, lua_pushvalue(), lua_setfield(), LUA_VERSION, and luaL_setfuncs().
|
static |
Definition at line 209 of file lua-5.3.6/src/lbaselib.c.
References lua_call, lua_pushcfunction, lua_pushinteger(), lua_pushnil(), lua_pushvalue(), LUA_TNIL, luaL_checkany(), and luaL_getmetafield().
Referenced by luaB_ipairs(), and luaB_pairs().
|
static |
Definition at line 453 of file lua-5.3.6/src/lbaselib.c.
Referenced by luaopen_base().