34#define noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_VCCL)
89 while (basepc++ < pc) {
163 if (level < 0)
return 0;
167 if (level == 0 && ci != &L->
base_ci) {
179 if (
s ==
NULL)
return "?";
188 *pos = ci->
func - nextra - (n + 1);
207 if (limit - base >= n && n > 0) {
209 name =
isLua(ci) ?
"(temporary)" :
"(C temporary)";
215 *pos = base + (n - 1);
329 for (; *what; what++) {
340 ar->
nups = (f ==
NULL) ? 0 : f->
c.nupvalues;
402 if (strchr(what,
'f')) {
406 if (strchr(what,
'L'))
437 if (!(what && *what ==
'c'))
470 for (pc = 0; pc < lastpc; pc++) {
478 change = (
a <= reg && reg <=
a + b);
482 change = (reg >=
a + 2);
492 int dest = pc + 1 + b;
494 if (dest <= lastpc && dest > jmptarget)
546 return gxf(p, pc, i, 1);
551 return gxf(p, pc, i, 0);
554 *
name =
"integer index";
560 return gxf(p, pc, i, 0);
608 *
name =
"for iterator";
609 return "for iterator";
651 for (pos = ci->
func + 1; pos < ci->
top; pos++) {
668 for (i = 0; i < c->nupvalues; i++) {
681 const char *kind =
NULL;
724 const TValue *p2,
const char *msg) {
745 if (strcmp(t1, t2) == 0)
759 buff[0] =
'?'; buff[1] =
'\0';
860 int npci =
pcRel(pc, p);
static int currentline(lua_State *L, CallInfo *ci)
#define resethookcount(L)
void luaD_throw(lua_State *L, int errcode)
#define restorestack(L, n)
const char * luaF_getlocalname(const Proto *f, int local_number, int pc)
void luaO_chunkid(char *out, const char *source, size_t bufflen)
const char * luaO_pushfstring(lua_State *L, const char *fmt,...)
const char * luaO_pushvfstring(lua_State *L, const char *fmt, va_list argp)
Table * luaH_new(lua_State *L, int narray, int nhash)
void(* lua_Hook)(lua_State *L, lua_Debug *ar)
void luaD_hook(lua_State *L, int event, int line)
void luaH_setint(lua_State *L, Table *t, int key, TValue *value)
void luaD_callnoyield(lua_State *L, StkId func, int nResults)
const char * luaT_objtypename(lua_State *L, const TValue *o)
static int filterpc(int pc, int jmptarget)
l_noret luaG_concaterror(lua_State *L, const TValue *p1, const TValue *p2)
LUA_API int lua_gethookmask(lua_State *L)
LUA_API int lua_gethookcount(lua_State *L)
static const char * upvalname(const Proto *p, int uv)
static void rkname(const Proto *p, int pc, Instruction i, const char **name)
l_noret luaG_forerror(lua_State *L, const TValue *o, const char *what)
static int nextline(const Proto *p, int currentline, int pc)
static int getbaseline(const Proto *f, int pc, int *basepc)
static void rname(const Proto *p, int pc, int c, const char **name)
LUA_API lua_Hook lua_gethook(lua_State *L)
l_noret luaG_opinterror(lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
static const char * getobjname(const Proto *p, int lastpc, int reg, const char **name)
l_noret luaG_typeerror(lua_State *L, const TValue *o, const char *op)
static int findsetreg(const Proto *p, int lastpc, int reg)
static void collectvalidlines(lua_State *L, Closure *f)
static int currentpc(CallInfo *ci)
const char * luaG_findlocal(lua_State *L, CallInfo *ci, int n, StkId *pos)
static void funcinfo(lua_Debug *ar, Closure *cl)
l_noret luaG_runerror(lua_State *L, const char *fmt,...)
static const char * varinfo(lua_State *L, const TValue *o)
static int isinstack(CallInfo *ci, const TValue *o)
static const char * funcnamefromcode(lua_State *L, CallInfo *ci, const char **name)
static void kname(const Proto *p, int c, const char **name)
int luaG_traceexec(lua_State *L, const Instruction *pc)
const char * luaG_addinfo(lua_State *L, const char *msg, TString *src, int line)
l_noret luaG_callerror(lua_State *L, const TValue *o)
static const char * getupvalname(CallInfo *ci, const TValue *o, const char **name)
static const char * getfuncname(lua_State *L, CallInfo *ci, const char **name)
LUA_API int lua_getstack(lua_State *L, int level, lua_Debug *ar)
static void settraps(CallInfo *ci)
LUA_API void lua_sethook(lua_State *L, lua_Hook func, int mask, int count)
LUA_API int lua_getinfo(lua_State *L, const char *what, lua_Debug *ar)
static const char * gxf(const Proto *p, int pc, Instruction i, int isup)
LUA_API const char * lua_getlocal(lua_State *L, const lua_Debug *ar, int n)
l_noret luaG_ordererror(lua_State *L, const TValue *p1, const TValue *p2)
static int getcurrentline(CallInfo *ci)
static int auxgetinfo(lua_State *L, const char *what, lua_Debug *ar, Closure *f, CallInfo *ci)
l_noret luaG_tointerror(lua_State *L, const TValue *p1, const TValue *p2)
LUA_API const char * lua_setlocal(lua_State *L, const lua_Debug *ar, int n)
static const char * findvararg(CallInfo *ci, int n, StkId *pos)
static int changedline(const Proto *p, int oldpc, int newpc)
int luaG_getfuncline(const Proto *f, int pc)
l_noret luaG_errormsg(lua_State *L)
int luaV_tointegerns(const TValue *obj, lua_Integer *p, F2Imod mode)
CURL_EXTERN CURLMcode curl_socket_t s
struct CallInfo * previous
struct CallInfo::@95::@98 transferinfo
struct CallInfo::@64::@65 l
const Instruction * savedpc
AbsLineInfo * abslineinfo
char short_src[LUA_IDSIZE]
const Instruction * oldpc