Github User Fetcher 1.0.0
C Application with Server and GUI
|
#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 |
#define | LEVELS1 12 /* size of the first part of the stack */ |
#define | LEVELS2 10 /* size of the second part of the stack */ |
Functions | |
static int | db_getregistry (lua_State *L) |
static int | db_getmetatable (lua_State *L) |
static int | db_setmetatable (lua_State *L) |
static int | db_getfenv (lua_State *L) |
static int | db_setfenv (lua_State *L) |
static void | settabss (lua_State *L, const char *i, const char *v) |
static void | settabsi (lua_State *L, const char *i, int v) |
static lua_State * | getthread (lua_State *L, int *arg) |
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 | hookf (lua_State *L, lua_Debug *ar) |
static int | makemask (const char *smask, int count) |
static char * | unmakemask (int mask, char *smask) |
static void | gethooktable (lua_State *L) |
static int | db_sethook (lua_State *L) |
static int | db_gethook (lua_State *L) |
static int | db_debug (lua_State *L) |
static int | db_errorfb (lua_State *L) |
LUALIB_API int | luaopen_debug (lua_State *L) |
Variables | |
static const char | KEY_HOOK = 'h' |
static const luaL_Reg | dblib [] |
#define ldblib_c |
Definition at line 12 of file lua-5.1.5/src/ldblib.c.
#define LEVELS1 12 /* size of the first part of the stack */ |
Definition at line 319 of file lua-5.1.5/src/ldblib.c.
Referenced by db_errorfb().
#define LEVELS2 10 /* size of the second part of the stack */ |
Definition at line 320 of file lua-5.1.5/src/ldblib.c.
Referenced by db_errorfb().
#define LUA_LIB |
Definition at line 13 of file lua-5.1.5/src/ldblib.c.
|
static |
Definition at line 179 of file lua-5.1.5/src/ldblib.c.
References lua_getupvalue(), lua_insert, lua_iscfunction(), lua_pushstring(), lua_setupvalue(), LUA_TFUNCTION, luaL_checkint, luaL_checktype(), name, and NULL.
Referenced by db_getupvalue(), and db_setupvalue().
|
static |
Definition at line 302 of file lua-5.1.5/src/ldblib.c.
References lua_pcall, lua_settop(), lua_tostring, and luaL_loadbuffer.
|
static |
Definition at line 322 of file lua-5.1.5/src/ldblib.c.
References arg, lua_Debug::currentline, getthread(), LEVELS1, LEVELS2, lua_Debug::linedefined, lua_concat(), lua_getinfo(), lua_getstack(), lua_gettop(), lua_isnumber(), lua_isstring(), lua_pop, lua_pushfstring(), lua_pushliteral, LUA_QS, lua_tointeger, lua_Debug::name, lua_Debug::namewhat, lua_Debug::short_src, and lua_Debug::what.
|
static |
Definition at line 47 of file lua-5.1.5/src/ldblib.c.
References lua_getfenv(), and luaL_checkany().
|
static |
Definition at line 282 of file lua-5.1.5/src/ldblib.c.
References arg, gethooktable, getthread(), hookf(), lua_gethook(), lua_gethookcount(), lua_gethookmask(), lua_pushinteger(), lua_pushlightuserdata(), lua_pushliteral, lua_pushstring(), lua_rawget(), lua_remove, mask, NULL, and unmakemask().
|
static |
Definition at line 99 of file lua-5.1.5/src/ldblib.c.
References arg, lua_Debug::currentline, getthread(), lua_Debug::lastlinedefined, lua_Debug::linedefined, lua_createtable(), lua_getinfo(), lua_getstack(), lua_isfunction, lua_isnumber(), lua_pushfstring(), lua_pushnil(), lua_pushvalue(), lua_tointeger, lua_tostring, lua_xmove(), luaL_argerror(), luaL_optstring, lua_Debug::name, lua_Debug::namewhat, lua_Debug::nups, settabsi(), settabss(), lua_Debug::short_src, lua_Debug::source, treatstackoption(), and lua_Debug::what.
|
static |
Definition at line 144 of file lua-5.1.5/src/ldblib.c.
References arg, getthread(), lua_getlocal(), lua_getstack(), lua_pushnil(), lua_pushstring(), lua_pushvalue(), lua_xmove(), luaL_argerror(), luaL_checkint, and name.
|
static |
Definition at line 28 of file lua-5.1.5/src/ldblib.c.
References lua_getmetatable(), lua_pushnil(), and luaL_checkany().
|
static |
Definition at line 22 of file lua-5.1.5/src/ldblib.c.
References lua_pushvalue(), and LUA_REGISTRYINDEX.
|
static |
|
static |
Definition at line 54 of file lua-5.1.5/src/ldblib.c.
References LUA_QL, lua_setfenv(), lua_settop(), LUA_TTABLE, luaL_checktype(), and luaL_error().
|
static |
Definition at line 258 of file lua-5.1.5/src/ldblib.c.
References arg, gethooktable, getthread(), hookf(), lua_isnoneornil, lua_pop, lua_pushlightuserdata(), lua_pushvalue(), lua_rawset(), lua_sethook(), lua_settop(), LUA_TFUNCTION, luaL_checkstring, luaL_checktype(), luaL_optint, makemask(), mask, and NULL.
|
static |
Definition at line 165 of file lua-5.1.5/src/ldblib.c.
References arg, getthread(), lua_getstack(), lua_pushstring(), lua_setlocal(), lua_settop(), lua_xmove(), luaL_argerror(), luaL_checkany(), and luaL_checkint.
|
static |
Definition at line 37 of file lua-5.1.5/src/ldblib.c.
References lua_pushboolean(), lua_setmetatable(), lua_settop(), LUA_TNIL, LUA_TTABLE, lua_type(), and luaL_argcheck.
|
static |
Definition at line 197 of file lua-5.1.5/src/ldblib.c.
References auxupvalue(), and luaL_checkany().
|
static |
Definition at line 245 of file lua-5.1.5/src/ldblib.c.
References KEY_HOOK, lua_createtable(), lua_istable, lua_pop, lua_pushlightuserdata(), lua_pushvalue(), lua_rawget(), lua_rawset(), and LUA_REGISTRYINDEX.
Definition at line 76 of file lua-5.1.5/src/ldblib.c.
References arg, lua_isthread, and lua_tothread().
Referenced by db_errorfb(), db_gethook(), db_getinfo(), db_getlocal(), db_sethook(), and db_setlocal().
Definition at line 207 of file lua-5.1.5/src/ldblib.c.
References lua_Debug::currentline, lua_Debug::event, KEY_HOOK, lua_assert, lua_call, lua_getinfo(), lua_isfunction, lua_pushinteger(), lua_pushlightuserdata(), lua_pushnil(), lua_pushstring(), lua_rawget(), and LUA_REGISTRYINDEX.
Referenced by db_gethook(), and db_sethook().
LUALIB_API int luaopen_debug | ( | lua_State * | L | ) |
Definition at line 394 of file lua-5.1.5/src/ldblib.c.
References dblib, LUA_DBLIBNAME, and luaL_register().
|
static |
Definition at line 225 of file lua-5.1.5/src/ldblib.c.
References LUA_MASKCALL, LUA_MASKCOUNT, LUA_MASKLINE, LUA_MASKRET, and mask.
Referenced by db_sethook().
|
static |
Definition at line 70 of file lua-5.1.5/src/ldblib.c.
References lua_pushinteger(), and lua_setfield().
Referenced by db_getinfo().
|
static |
Definition at line 64 of file lua-5.1.5/src/ldblib.c.
References lua_pushstring(), and lua_setfield().
Referenced by db_getinfo().
Definition at line 88 of file lua-5.1.5/src/ldblib.c.
References lua_pushvalue(), lua_remove, lua_setfield(), and lua_xmove().
Referenced by db_getinfo().
|
static |
Definition at line 235 of file lua-5.1.5/src/ldblib.c.
References LUA_MASKCALL, LUA_MASKLINE, LUA_MASKRET, and mask.
Referenced by db_gethook().
|
static |
Definition at line 375 of file lua-5.1.5/src/ldblib.c.
Referenced by luaopen_debug().
|
static |
Definition at line 204 of file lua-5.1.5/src/ldblib.c.
Referenced by gethooktable(), and hookf().