Github User Fetcher 1.0.0
C Application with Server and GUI
|
#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 | CO_RUN 0 /* running */ |
#define | CO_SUS 1 /* suspended */ |
#define | CO_NOR 2 /* 'normal' (it resumed another coroutine) */ |
#define | CO_DEAD 3 |
Variables | |
static const luaL_Reg | base_funcs [] |
static const char *const | statnames [] |
static const luaL_Reg | co_funcs [] |
#define CO_DEAD 3 |
Definition at line 485 of file lua-5.1.5/src/lbaselib.c.
Referenced by costatus().
#define CO_NOR 2 /* 'normal' (it resumed another coroutine) */ |
Definition at line 484 of file lua-5.1.5/src/lbaselib.c.
Referenced by costatus().
#define CO_RUN 0 /* running */ |
Definition at line 482 of file lua-5.1.5/src/lbaselib.c.
Referenced by costatus().
#define CO_SUS 1 /* suspended */ |
Definition at line 483 of file lua-5.1.5/src/lbaselib.c.
Referenced by auxresume(), and costatus().
#define lbaselib_c |
Definition at line 14 of file lua-5.1.5/src/lbaselib.c.
#define LUA_LIB |
Definition at line 15 of file lua-5.1.5/src/lbaselib.c.
|
static |
Definition at line 618 of file lua-5.1.5/src/lbaselib.c.
References lua_pushcclosure(), lua_pushcfunction, lua_setfield(), and name.
Referenced by base_open().
Definition at line 518 of file lua-5.1.5/src/lbaselib.c.
References CO_SUS, costatus(), lua_checkstack(), lua_gettop(), lua_pushfstring(), lua_resume(), lua_setlevel(), lua_xmove(), LUA_YIELD, luaL_error(), and statnames.
Referenced by luaB_auxwrap(), and luaB_coresume().
|
static |
Definition at line 626 of file lua-5.1.5/src/lbaselib.c.
References auxopen(), base_funcs, ipairsaux(), lua_createtable(), LUA_GLOBALSINDEX, lua_pushcclosure(), lua_pushliteral, lua_pushvalue(), lua_setfield(), lua_setglobal, lua_setmetatable(), LUA_VERSION, luaB_ipairs(), luaB_newproxy(), luaB_next(), luaB_pairs(), and luaL_register().
Referenced by luaopen_base().
Definition at line 490 of file lua-5.1.5/src/lbaselib.c.
References CO_DEAD, CO_NOR, CO_RUN, CO_SUS, lua_getstack(), lua_gettop(), lua_status(), and LUA_YIELD.
Referenced by auxresume(), and luaB_costatus().
|
static |
Definition at line 297 of file lua-5.1.5/src/lbaselib.c.
References lua_call, lua_isnil, lua_isstring(), lua_pushvalue(), lua_replace, lua_tolstring(), luaL_checkstack(), luaL_error(), and NULL.
Referenced by luaB_load().
|
static |
Definition at line 117 of file lua-5.1.5/src/lbaselib.c.
References lua_getinfo(), lua_getstack(), lua_isfunction, lua_isnil, lua_pushvalue(), luaL_argcheck, luaL_argerror(), luaL_checkint, luaL_error(), and luaL_optint.
Referenced by luaB_getfenv(), and luaB_setfenv().
|
static |
Definition at line 247 of file lua-5.1.5/src/lbaselib.c.
References lua_isnil, lua_pushinteger(), lua_rawgeti(), LUA_TTABLE, luaL_checkint, and luaL_checktype().
Referenced by base_open().
|
static |
Definition at line 266 of file lua-5.1.5/src/lbaselib.c.
References lua_insert, and lua_pushnil().
Referenced by luaB_load(), luaB_loadfile(), and luaB_loadstring().
|
static |
Definition at line 334 of file lua-5.1.5/src/lbaselib.c.
References lua_gettop(), lua_toboolean(), luaL_checkany(), luaL_error(), and luaL_optstring.
|
static |
Definition at line 561 of file lua-5.1.5/src/lbaselib.c.
References auxresume(), lua_concat(), lua_error(), lua_gettop(), lua_insert, lua_isstring(), lua_tothread(), lua_upvalueindex, and luaL_where().
Referenced by luaB_cowrap().
|
static |
Definition at line 576 of file lua-5.1.5/src/lbaselib.c.
References lua_iscfunction(), lua_isfunction, lua_newthread(), lua_pushvalue(), lua_xmove(), and luaL_argcheck.
Referenced by luaB_cowrap().
|
static |
Definition at line 193 of file lua-5.1.5/src/lbaselib.c.
References lua_gc(), LUA_GCCOLLECT, LUA_GCCOUNT, LUA_GCCOUNTB, LUA_GCRESTART, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, LUA_GCSTEP, LUA_GCSTOP, lua_pushboolean(), lua_pushnumber(), luaL_checkoption(), luaL_optint, and NULL.
|
static |
Definition at line 543 of file lua-5.1.5/src/lbaselib.c.
References auxresume(), lua_gettop(), lua_insert, lua_pushboolean(), lua_tothread(), and luaL_argcheck.
|
static |
Definition at line 598 of file lua-5.1.5/src/lbaselib.c.
References lua_pushnil(), and lua_pushthread().
|
static |
Definition at line 510 of file lua-5.1.5/src/lbaselib.c.
References costatus(), lua_pushstring(), lua_tothread(), luaL_argcheck, and statnames.
|
static |
Definition at line 586 of file lua-5.1.5/src/lbaselib.c.
References lua_pushcclosure(), luaB_auxwrap(), and luaB_cocreate().
|
static |
Definition at line 325 of file lua-5.1.5/src/lbaselib.c.
References lua_call, lua_error(), lua_gettop(), LUA_MULTRET, luaL_loadfile, luaL_optstring, and NULL.
|
static |
Definition at line 81 of file lua-5.1.5/src/lbaselib.c.
References lua_concat(), lua_error(), lua_isstring(), lua_pushvalue(), lua_settop(), luaL_optint, and luaL_where().
|
static |
Definition at line 187 of file lua-5.1.5/src/lbaselib.c.
References lua_getgccount, and lua_pushinteger().
|
static |
Definition at line 133 of file lua-5.1.5/src/lbaselib.c.
References getfunc(), lua_getfenv(), LUA_GLOBALSINDEX, lua_iscfunction(), and lua_pushvalue().
|
static |
Definition at line 93 of file lua-5.1.5/src/lbaselib.c.
References lua_getmetatable(), lua_pushnil(), luaL_checkany(), and luaL_getmetafield().
|
static |
Definition at line 257 of file lua-5.1.5/src/lbaselib.c.
References lua_pushinteger(), lua_pushvalue(), LUA_TTABLE, lua_upvalueindex, and luaL_checktype().
Referenced by base_open().
|
static |
Definition at line 315 of file lua-5.1.5/src/lbaselib.c.
References generic_reader(), load_aux(), lua_load(), lua_settop(), LUA_TFUNCTION, luaL_checktype(), luaL_optstring, and NULL.
|
static |
Definition at line 285 of file lua-5.1.5/src/lbaselib.c.
References load_aux(), luaL_loadfile, luaL_optstring, and NULL.
|
static |
Definition at line 277 of file lua-5.1.5/src/lbaselib.c.
References load_aux(), luaL_checklstring(), luaL_loadbuffer, luaL_optstring, and s.
|
static |
Definition at line 421 of file lua-5.1.5/src/lbaselib.c.
References lua_getmetatable(), lua_isboolean, lua_newtable, lua_newuserdata, lua_pop, lua_pushboolean(), lua_pushvalue(), lua_rawget(), lua_rawset(), lua_setmetatable(), lua_settop(), lua_toboolean(), lua_upvalueindex, and luaL_argcheck.
Referenced by base_open().
|
static |
Definition at line 226 of file lua-5.1.5/src/lbaselib.c.
References lua_next(), lua_pushnil(), lua_settop(), LUA_TTABLE, and luaL_checktype().
Referenced by base_open().
|
static |
Definition at line 238 of file lua-5.1.5/src/lbaselib.c.
References lua_pushnil(), lua_pushvalue(), LUA_TTABLE, lua_upvalueindex, and luaL_checktype().
Referenced by base_open().
|
static |
Definition at line 374 of file lua-5.1.5/src/lbaselib.c.
References lua_gettop(), lua_insert, LUA_MULTRET, lua_pcall, lua_pushboolean(), and luaL_checkany().
|
static |
Definition at line 31 of file lua-5.1.5/src/lbaselib.c.
References lua_call, lua_getglobal, lua_gettop(), lua_pop, lua_pushvalue(), LUA_QL, lua_tostring, luaL_error(), NULL, and s.
|
static |
Definition at line 161 of file lua-5.1.5/src/lbaselib.c.
References lua_pushboolean(), lua_rawequal(), and luaL_checkany().
|
static |
Definition at line 169 of file lua-5.1.5/src/lbaselib.c.
References lua_rawget(), lua_settop(), LUA_TTABLE, luaL_checkany(), and luaL_checktype().
|
static |
Definition at line 177 of file lua-5.1.5/src/lbaselib.c.
References lua_rawset(), lua_settop(), LUA_TTABLE, luaL_checkany(), and luaL_checktype().
|
static |
Definition at line 358 of file lua-5.1.5/src/lbaselib.c.
References lua_gettop(), lua_pushinteger(), lua_tostring, LUA_TSTRING, lua_type(), luaL_argcheck, and luaL_checkint.
|
static |
Definition at line 143 of file lua-5.1.5/src/lbaselib.c.
References getfunc(), lua_insert, lua_iscfunction(), lua_isnumber(), lua_pushthread(), lua_pushvalue(), LUA_QL, lua_setfenv(), lua_tonumber, LUA_TTABLE, luaL_checktype(), and luaL_error().
|
static |
Definition at line 104 of file lua-5.1.5/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 53 of file lua-5.1.5/src/lbaselib.c.
References lua_isnumber(), lua_pushnil(), lua_pushnumber(), lua_tonumber, luaL_argcheck, luaL_checkany(), luaL_checkstring, and luaL_optint.
|
static |
Definition at line 396 of file lua-5.1.5/src/lbaselib.c.
References lua_pushfstring(), lua_pushliteral, lua_pushstring(), lua_pushvalue(), LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, lua_toboolean(), lua_topointer(), lua_tostring, LUA_TSTRING, lua_type(), luaL_callmeta(), luaL_checkany(), and luaL_typename.
|
static |
Definition at line 219 of file lua-5.1.5/src/lbaselib.c.
References lua_pushstring(), luaL_checkany(), and luaL_typename.
|
static |
Definition at line 342 of file lua-5.1.5/src/lbaselib.c.
References lua_checkstack(), lua_rawgeti(), LUA_TTABLE, luaL_checkint, luaL_checktype(), luaL_error(), luaL_getn, luaL_opt, and luaL_optint.
|
static |
Definition at line 384 of file lua-5.1.5/src/lbaselib.c.
References lua_gettop(), lua_insert, LUA_MULTRET, lua_pcall, lua_pushboolean(), lua_replace, lua_settop(), and luaL_checkany().
|
static |
Definition at line 593 of file lua-5.1.5/src/lbaselib.c.
References lua_gettop(), and lua_yield.
LUALIB_API int luaopen_base | ( | lua_State * | L | ) |
Definition at line 648 of file lua-5.1.5/src/lbaselib.c.
References base_open(), co_funcs, LUA_COLIBNAME, and luaL_register().
|
static |
Definition at line 447 of file lua-5.1.5/src/lbaselib.c.
Referenced by base_open().
|
static |
Definition at line 605 of file lua-5.1.5/src/lbaselib.c.
Referenced by luaopen_base().
|
static |
Definition at line 487 of file lua-5.1.5/src/lbaselib.c.
Referenced by auxresume(), and luaB_costatus().