Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
Go to the source code of this file.
Macros | |
#define | ldebug_c |
#define | LUA_CORE |
#define | noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL) |
Functions | |
static const char * | getfuncname (lua_State *L, CallInfo *ci, const char **name) |
static int | currentpc (CallInfo *ci) |
static int | currentline (CallInfo *ci) |
static void | swapextra (lua_State *L) |
LUA_API int | lua_sethook (lua_State *L, lua_Hook func, int mask, int count) |
LUA_API lua_Hook | lua_gethook (lua_State *L) |
LUA_API int | lua_gethookmask (lua_State *L) |
LUA_API int | lua_gethookcount (lua_State *L) |
LUA_API int | lua_getstack (lua_State *L, int level, lua_Debug *ar) |
static const char * | upvalname (Proto *p, int uv) |
static const char * | findvararg (CallInfo *ci, int n, StkId *pos) |
static const char * | findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos) |
LUA_API const char * | lua_getlocal (lua_State *L, const lua_Debug *ar, int n) |
LUA_API const char * | lua_setlocal (lua_State *L, const lua_Debug *ar, int n) |
static void | funcinfo (lua_Debug *ar, Closure *cl) |
static void | collectvalidlines (lua_State *L, Closure *f) |
static int | auxgetinfo (lua_State *L, const char *what, lua_Debug *ar, Closure *f, CallInfo *ci) |
LUA_API int | lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) |
static const char * | getobjname (Proto *p, int lastpc, int reg, const char **name) |
static void | kname (Proto *p, int pc, int c, const char **name) |
static int | filterpc (int pc, int jmptarget) |
static int | findsetreg (Proto *p, int lastpc, int reg) |
static int | isinstack (CallInfo *ci, const TValue *o) |
static const char * | getupvalname (CallInfo *ci, const TValue *o, const char **name) |
l_noret | luaG_typeerror (lua_State *L, const TValue *o, const char *op) |
l_noret | luaG_concaterror (lua_State *L, StkId p1, StkId p2) |
l_noret | luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) |
l_noret | luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) |
static void | addinfo (lua_State *L, const char *msg) |
l_noret | luaG_errormsg (lua_State *L) |
l_noret | luaG_runerror (lua_State *L, const char *fmt,...) |
#define ldebug_c |
Definition at line 13 of file lua-5.2.4/src/ldebug.c.
#define LUA_CORE |
Definition at line 14 of file lua-5.2.4/src/ldebug.c.
Definition at line 33 of file lua-5.2.4/src/ldebug.c.
Referenced by auxgetinfo(), collectvalidlines(), and funcinfo().
|
static |
Definition at line 574 of file lua-5.2.4/src/ldebug.c.
References lua_State::ci, ci_func, currentline(), getstr, isLua, LUA_IDSIZE, luaO_chunkid(), and luaO_pushfstring().
Referenced by luaG_runerror().
|
static |
Definition at line 230 of file lua-5.2.4/src/ldebug.c.
References Closure::c, CallInfo::callstatus, CIST_TAIL, lua_Debug::currentline, currentline(), funcinfo(), getfuncname(), Proto::is_vararg, isLua, lua_Debug::istailcall, lua_Debug::isvararg, Closure::l, lua_Debug::name, lua_Debug::namewhat, noLuaClosure, lua_Debug::nparams, NULL, Proto::numparams, lua_Debug::nups, LClosure::p, and CallInfo::previous.
Referenced by lua_getinfo().
Definition at line 211 of file lua-5.2.4/src/ldebug.c.
References api_incr_top, Closure::l, Proto::lineinfo, luaH_new(), luaH_setint(), noLuaClosure, LClosure::p, setbvalue, sethvalue, setnilvalue, Proto::sizelineinfo, and lua_State::top.
Referenced by lua_getinfo().
|
static |
Definition at line 45 of file lua-5.2.4/src/ldebug.c.
References ci_func, currentpc(), and getfuncline.
Referenced by addinfo(), and auxgetinfo().
|
static |
Definition at line 39 of file lua-5.2.4/src/ldebug.c.
References ci_func, isLua, CallInfo::l, lua_assert, pcRel, CallInfo::savedpc, and CallInfo::u.
Referenced by currentline(), findlocal(), getfuncname(), and luaG_typeerror().
|
static |
Definition at line 347 of file lua-5.2.4/src/ldebug.c.
Referenced by findsetreg().
Definition at line 128 of file lua-5.2.4/src/ldebug.c.
References CallInfo::base, lua_State::ci, ci_func, currentpc(), findvararg(), CallInfo::func, isLua, CallInfo::l, luaF_getlocalname(), name, CallInfo::next, NULL, lua_State::top, and CallInfo::u.
Referenced by lua_getlocal(), and lua_setlocal().
|
static |
Definition at line 357 of file lua-5.2.4/src/ldebug.c.
References Proto::code, filterpc(), GET_OPCODE, GETARG_A, GETARG_B, GETARG_sBx, OP_CALL, OP_JMP, OP_LOADNIL, OP_TAILCALL, OP_TEST, OP_TFORCALL, and testAMode.
Referenced by getobjname().
Definition at line 117 of file lua-5.2.4/src/ldebug.c.
References CallInfo::base, clLvalue, CallInfo::func, CallInfo::l, NULL, and CallInfo::u.
Referenced by findlocal().
Definition at line 193 of file lua-5.2.4/src/ldebug.c.
References getstr, Closure::l, Proto::lastlinedefined, lua_Debug::lastlinedefined, Proto::linedefined, lua_Debug::linedefined, LUA_IDSIZE, luaO_chunkid(), noLuaClosure, LClosure::p, lua_Debug::short_src, Proto::source, lua_Debug::source, and lua_Debug::what.
Referenced by auxgetinfo().
Definition at line 462 of file lua-5.2.4/src/ldebug.c.
References ci_func, Proto::code, currentpc(), G, GET_OPCODE, GETARG_A, getobjname(), getstr, name, NULL, OP_ADD, OP_CALL, OP_CONCAT, OP_DIV, OP_EQ, OP_GETTABLE, OP_GETTABUP, OP_LE, OP_LEN, OP_LT, OP_MOD, OP_MUL, OP_POW, OP_SELF, OP_SETTABLE, OP_SETTABUP, OP_SUB, OP_TAILCALL, OP_TFORCALL, OP_UNM, Proto::p, TM_ADD, TM_CONCAT, TM_DIV, TM_EQ, TM_INDEX, TM_LE, TM_LEN, TM_LT, TM_MOD, TM_MUL, TM_NEWINDEX, TM_POW, TM_SUB, TM_UNM, and tmname.
Referenced by auxgetinfo().
|
static |
Definition at line 408 of file lua-5.2.4/src/ldebug.c.
References Proto::code, findsetreg(), GET_OPCODE, GETARG_A, GETARG_Ax, GETARG_B, GETARG_Bx, GETARG_C, getobjname(), Proto::k, kname(), LUA_ENV, luaF_getlocalname(), name, NULL, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_LOADK, OP_LOADKX, OP_MOVE, OP_SELF, svalue, ttisstring, and upvalname().
Referenced by getfuncname(), getobjname(), kname(), and luaG_typeerror().
Definition at line 516 of file lua-5.2.4/src/ldebug.c.
References ci_func, name, NULL, LClosure::p, upvalname(), LClosure::upvals, and UpVal::v.
Referenced by luaG_typeerror().
Definition at line 508 of file lua-5.2.4/src/ldebug.c.
References CallInfo::base, CallInfo::l, CallInfo::top, and CallInfo::u.
Referenced by luaG_typeerror().
|
static |
Definition at line 327 of file lua-5.2.4/src/ldebug.c.
References getobjname(), INDEXK, ISK, Proto::k, name, svalue, and ttisstring.
Referenced by getobjname().
Definition at line 78 of file lua-5.2.4/src/ldebug.c.
References lua_State::hook.
Definition at line 281 of file lua-5.2.4/src/ldebug.c.
References api_check, api_incr_top, auxgetinfo(), clvalue, collectvalidlines(), CallInfo::func, lua_Debug::i_ci, lua_assert, lua_lock, lua_unlock, NULL, setobjs2s, swapextra(), lua_State::top, ttisclosure, and ttisfunction.
Definition at line 154 of file lua-5.2.4/src/ldebug.c.
References api_incr_top, clLvalue, findlocal(), lua_Debug::i_ci, isLfunction, lua_lock, lua_unlock, luaF_getlocalname(), name, NULL, setobj2s, swapextra(), and lua_State::top.
Definition at line 93 of file lua-5.2.4/src/ldebug.c.
References lua_State::base_ci, lua_State::ci, lua_Debug::i_ci, lua_lock, lua_unlock, and CallInfo::previous.
Definition at line 63 of file lua-5.2.4/src/ldebug.c.
References lua_State::basehookcount, cast_byte, lua_State::ci, lua_State::hook, lua_State::hookmask, isLua, CallInfo::l, mask, NULL, lua_State::oldpc, resethookcount, CallInfo::savedpc, and CallInfo::u.
Definition at line 178 of file lua-5.2.4/src/ldebug.c.
References findlocal(), lua_Debug::i_ci, lua_lock, lua_unlock, name, setobjs2s, swapextra(), and lua_State::top.
Definition at line 556 of file lua-5.2.4/src/ldebug.c.
References luaG_typeerror(), luaV_tonumber(), and NULL.
Definition at line 549 of file lua-5.2.4/src/ldebug.c.
References lua_assert, luaG_typeerror(), ttisnumber, and ttisstring.
Definition at line 590 of file lua-5.2.4/src/ldebug.c.
References lua_State::errfunc, LUA_ERRERR, LUA_ERRRUN, luaD_call(), luaD_throw(), restorestack, setobjs2s, lua_State::top, and ttisfunction.
Referenced by luaG_runerror().
Definition at line 564 of file lua-5.2.4/src/ldebug.c.
References luaG_runerror(), and objtypename.
Definition at line 603 of file lua-5.2.4/src/ldebug.c.
References addinfo(), luaG_errormsg(), and luaO_pushvfstring().
Referenced by luaG_ordererror(), and luaG_typeerror().
Definition at line 530 of file lua-5.2.4/src/ldebug.c.
References CallInfo::base, cast_int, lua_State::ci, ci_func, currentpc(), getobjname(), getupvalname(), isinstack(), isLua, CallInfo::l, LUA_QS, luaG_runerror(), name, NULL, objtypename, and CallInfo::u.
Referenced by luaG_aritherror(), and luaG_concaterror().
|
static |
Definition at line 50 of file lua-5.2.4/src/ldebug.c.
References lua_State::ci, CallInfo::extra, CallInfo::func, LUA_YIELD, restorestack, savestack, and lua_State::status.
Referenced by lua_getinfo(), lua_getlocal(), and lua_setlocal().
|
static |
Definition at line 110 of file lua-5.2.4/src/ldebug.c.
References check_exp, getstr, NULL, s, and Proto::upvalues.
Referenced by getobjname(), and getupvalname().