Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.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 | ldblib_c |
#define | LUA_LIB |
Functions | |
static void | checkstack (lua_State *L, lua_State *L1, int n) |
static int | db_getregistry (lua_State *L) |
static int | db_getmetatable (lua_State *L) |
static int | db_setmetatable (lua_State *L) |
static int | db_getuservalue (lua_State *L) |
static int | db_setuservalue (lua_State *L) |
static lua_State * | getthread (lua_State *L, int *arg) |
static void | settabss (lua_State *L, const char *k, const char *v) |
static void | settabsi (lua_State *L, const char *k, int v) |
static void | settabsb (lua_State *L, const char *k, int v) |
static void | treatstackoption (lua_State *L, lua_State *L1, const char *fname) |
static int | db_getinfo (lua_State *L) |
static int | db_getlocal (lua_State *L) |
static int | db_setlocal (lua_State *L) |
static int | auxupvalue (lua_State *L, int get) |
static int | db_getupvalue (lua_State *L) |
static int | db_setupvalue (lua_State *L) |
static void * | checkupval (lua_State *L, int argf, int argnup, int *pnup) |
static int | db_upvalueid (lua_State *L) |
static int | db_upvaluejoin (lua_State *L) |
static void | hookf (lua_State *L, lua_Debug *ar) |
static int | makemask (const char *smask, int count) |
static char * | unmakemask (int mask, char *smask) |
static int | db_sethook (lua_State *L) |
static int | db_gethook (lua_State *L) |
static int | db_debug (lua_State *L) |
static int | db_traceback (lua_State *L) |
static int | db_setcstacklimit (lua_State *L) |
LUAMOD_API int | luaopen_debug (lua_State *L) |
Variables | |
static const char *const | HOOKKEY = "_HOOKKEY" |
static const luaL_Reg | dblib [] |
#define ldblib_c |
Definition at line 7 of file lua-5.4.3/src/ldblib.c.
#define LUA_LIB |
Definition at line 8 of file lua-5.4.3/src/ldblib.c.
|
static |
Definition at line 258 of file lua-5.4.3/src/ldblib.c.
References lua_getupvalue(), lua_insert, lua_pushstring(), lua_setupvalue(), LUA_TFUNCTION, luaL_checkinteger(), luaL_checktype(), name, and NULL.
Referenced by db_getupvalue(), and db_setupvalue().
Definition at line 35 of file lua-5.4.3/src/ldblib.c.
References lua_checkstack(), and luaL_error().
Referenced by db_gethook(), db_getinfo(), db_getlocal(), db_sethook(), and db_setlocal().
|
static |
Definition at line 285 of file lua-5.4.3/src/ldblib.c.
References LUA_TFUNCTION, lua_upvalueid(), luaL_argcheck, luaL_checkinteger(), luaL_checktype(), and NULL.
Referenced by db_upvalueid(), and db_upvaluejoin().
|
static |
Definition at line 420 of file lua-5.4.3/src/ldblib.c.
References lua_pcall, lua_settop(), lua_writestringerror, luaL_loadbuffer, luaL_tolstring(), and NULL.
|
static |
Definition at line 395 of file lua-5.4.3/src/ldblib.c.
References arg, checkstack(), getthread(), hookf(), HOOKKEY, lua_getfield(), lua_gethook(), lua_gethookcount(), lua_gethookmask(), lua_pushinteger(), lua_pushliteral, lua_pushstring(), lua_pushthread(), lua_rawget(), LUA_REGISTRYINDEX, lua_remove, lua_xmove(), luaL_pushfail, mask, NULL, and unmakemask().
|
static |
Definition at line 149 of file lua-5.4.3/src/ldblib.c.
References arg, checkstack(), lua_Debug::currentline, lua_Debug::ftransfer, getthread(), lua_Debug::istailcall, lua_Debug::isvararg, lua_Debug::lastlinedefined, lua_Debug::linedefined, lua_getinfo(), lua_getstack(), lua_isfunction, lua_newtable, lua_pushfstring(), lua_pushlstring(), lua_pushvalue(), lua_setfield(), lua_xmove(), luaL_argcheck, luaL_argerror(), luaL_checkinteger(), luaL_optstring, luaL_pushfail, lua_Debug::name, lua_Debug::namewhat, lua_Debug::nparams, lua_Debug::ntransfer, lua_Debug::nups, settabsb(), settabsi(), settabss(), lua_Debug::short_src, lua_Debug::source, lua_Debug::srclen, treatstackoption(), and lua_Debug::what.
|
static |
Definition at line 203 of file lua-5.4.3/src/ldblib.c.
References arg, checkstack(), getthread(), lua_getlocal(), lua_getstack(), lua_isfunction, lua_pushstring(), lua_pushvalue(), lua_rotate(), lua_xmove(), luaL_argerror(), luaL_checkinteger(), luaL_pushfail, name, and NULL.
|
static |
Definition at line 47 of file lua-5.4.3/src/ldblib.c.
References lua_getmetatable(), lua_pushnil(), and luaL_checkany().
|
static |
Definition at line 41 of file lua-5.4.3/src/ldblib.c.
References lua_pushvalue(), and LUA_REGISTRYINDEX.
|
static |
|
static |
Definition at line 65 of file lua-5.4.3/src/ldblib.c.
References lua_getiuservalue(), lua_pushboolean(), LUA_TNONE, LUA_TUSERDATA, lua_type(), luaL_optinteger(), and luaL_pushfail.
|
static |
Definition at line 449 of file lua-5.4.3/src/ldblib.c.
References lua_pushinteger(), lua_setcstacklimit(), and luaL_checkinteger().
|
static |
hooktable.__mode = "k"
Definition at line 365 of file lua-5.4.3/src/ldblib.c.
References arg, checkstack(), getthread(), hookf(), HOOKKEY, lua_isnoneornil, lua_pushliteral, lua_pushthread(), lua_pushvalue(), lua_rawset(), LUA_REGISTRYINDEX, lua_setfield(), lua_sethook(), lua_setmetatable(), lua_settop(), LUA_TFUNCTION, lua_xmove(), luaL_checkstring, luaL_checktype(), luaL_getsubtable(), luaL_optinteger(), makemask(), mask, and NULL.
|
static |
Definition at line 234 of file lua-5.4.3/src/ldblib.c.
References arg, checkstack(), getthread(), lua_getstack(), lua_pop, lua_pushstring(), lua_setlocal(), lua_settop(), lua_xmove(), luaL_argerror(), luaL_checkany(), luaL_checkinteger(), name, and NULL.
|
static |
Definition at line 56 of file lua-5.4.3/src/ldblib.c.
References lua_setmetatable(), lua_settop(), LUA_TNIL, LUA_TTABLE, lua_type(), and luaL_argexpected.
|
static |
Definition at line 275 of file lua-5.4.3/src/ldblib.c.
References auxupvalue(), and luaL_checkany().
|
static |
Definition at line 77 of file lua-5.4.3/src/ldblib.c.
References lua_setiuservalue(), lua_settop(), LUA_TUSERDATA, luaL_checkany(), luaL_checktype(), luaL_optinteger(), and luaL_pushfail.
|
static |
Definition at line 435 of file lua-5.4.3/src/ldblib.c.
References arg, getthread(), lua_isnoneornil, lua_pushvalue(), lua_tostring, luaL_optinteger(), luaL_traceback(), and NULL.
|
static |
Definition at line 298 of file lua-5.4.3/src/ldblib.c.
References checkupval(), lua_pushlightuserdata(), luaL_pushfail, and NULL.
|
static |
Definition at line 308 of file lua-5.4.3/src/ldblib.c.
References checkupval(), lua_iscfunction(), lua_upvaluejoin(), and luaL_argcheck.
Definition at line 94 of file lua-5.4.3/src/ldblib.c.
References arg, lua_isthread, and lua_tothread().
Referenced by db_gethook(), db_getinfo(), db_getlocal(), db_sethook(), db_setlocal(), and db_traceback().
Definition at line 323 of file lua-5.4.3/src/ldblib.c.
References lua_Debug::currentline, lua_Debug::event, HOOKKEY, lua_assert, lua_call, lua_getfield(), lua_getinfo(), lua_pushinteger(), lua_pushnil(), lua_pushstring(), lua_pushthread(), lua_rawget(), LUA_REGISTRYINDEX, and LUA_TFUNCTION.
Referenced by db_gethook(), and db_sethook().
LUAMOD_API int luaopen_debug | ( | lua_State * | L | ) |
Definition at line 479 of file lua-5.4.3/src/ldblib.c.
References dblib, and luaL_newlib.
|
static |
Definition at line 342 of file lua-5.4.3/src/ldblib.c.
References LUA_MASKCALL, LUA_MASKCOUNT, LUA_MASKLINE, LUA_MASKRET, and mask.
Referenced by db_sethook().
|
static |
Definition at line 121 of file lua-5.4.3/src/ldblib.c.
References lua_pushboolean(), and lua_setfield().
Referenced by db_getinfo().
|
static |
Definition at line 116 of file lua-5.4.3/src/ldblib.c.
References lua_pushinteger(), and lua_setfield().
Referenced by db_getinfo().
|
static |
Definition at line 111 of file lua-5.4.3/src/ldblib.c.
References lua_pushstring(), and lua_setfield().
Referenced by db_getinfo().
Definition at line 134 of file lua-5.4.3/src/ldblib.c.
References lua_rotate(), lua_setfield(), and lua_xmove().
Referenced by db_getinfo().
|
static |
Definition at line 355 of file lua-5.4.3/src/ldblib.c.
References LUA_MASKCALL, LUA_MASKLINE, LUA_MASKRET, and mask.
Referenced by db_gethook().
|
static |
Definition at line 457 of file lua-5.4.3/src/ldblib.c.
Referenced by luaopen_debug().
|
static |
Definition at line 27 of file lua-5.4.3/src/ldblib.c.
Referenced by db_gethook(), db_sethook(), and hookf().