59 "nil or table expected");
165 if (strchr(options,
'S')) {
172 if (strchr(options,
'l'))
174 if (strchr(options,
'u')) {
179 if (strchr(options,
'n')) {
183 if (strchr(options,
't'))
185 if (strchr(options,
'L'))
187 if (strchr(options,
'f'))
279 "invalid upvalue index");
306 static const char *
const hooknames[] =
307 {
"call",
"return",
"line",
"count",
"tail call"};
324static int makemask (
const char *smask,
int count) {
387 else if (hook !=
hookf)
406 if (fgets(buffer,
sizeof(buffer), stdin) == 0 ||
407 strcmp(buffer,
"cont\n") == 0)
CURL_EXTERN int void * arg
LUA_API void lua_pushstring(lua_State *L, const char *s)
LUA_API int lua_setmetatable(lua_State *L, int objindex)
LUA_API void lua_pushnil(lua_State *L)
LUA_API const char * lua_pushfstring(lua_State *L, const char *fmt,...)
LUA_API const char * lua_getupvalue(lua_State *L, int funcindex, int n)
LUA_API int lua_iscfunction(lua_State *L, int idx)
LUA_API void lua_setfield(lua_State *L, int idx, const char *k)
LUA_API int lua_pushthread(lua_State *L)
LUA_API void lua_rawget(lua_State *L, int idx)
LUA_API int lua_getmetatable(lua_State *L, int objindex)
LUA_API void lua_pushboolean(lua_State *L, int b)
LUA_API void lua_pushvalue(lua_State *L, int idx)
LUA_API int lua_type(lua_State *L, int idx)
LUA_API void lua_createtable(lua_State *L, int narray, int nrec)
LUA_API void lua_pushlightuserdata(lua_State *L, void *p)
LUA_API lua_State * lua_tothread(lua_State *L, int idx)
LUA_API int lua_checkstack(lua_State *L, int size)
LUA_API const char * lua_setupvalue(lua_State *L, int funcindex, int n)
LUA_API void lua_settop(lua_State *L, int idx)
LUA_API void lua_pushinteger(lua_State *L, lua_Integer n)
LUA_API void lua_xmove(lua_State *from, lua_State *to, int n)
LUA_API void lua_rawset(lua_State *L, int idx)
LUALIB_API void luaL_checktype(lua_State *L, int narg, int t)
LUALIB_API int luaL_error(lua_State *L, const char *fmt,...)
LUALIB_API lua_Integer luaL_checkinteger(lua_State *L, int narg)
LUALIB_API void luaL_checkany(lua_State *L, int narg)
LUALIB_API lua_Integer luaL_optinteger(lua_State *L, int narg, lua_Integer def)
LUALIB_API int luaL_argerror(lua_State *L, int narg, const char *extramsg)
#define luaL_optstring(L, n, d)
#define luaL_checkstring(L, n)
#define luaL_argcheck(L, cond, numarg, extramsg)
LUA_API int lua_gethookmask(lua_State *L)
LUA_API int lua_gethookcount(lua_State *L)
LUA_API lua_Hook lua_gethook(lua_State *L)
LUA_API int lua_sethook(lua_State *L, lua_Hook func, int mask, int count)
LUA_API int lua_getstack(lua_State *L, int level, lua_Debug *ar)
LUA_API int lua_getinfo(lua_State *L, const char *what, lua_Debug *ar)
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)
#define lua_isthread(L, n)
#define LUA_REGISTRYINDEX
#define lua_pushliteral(L, s)
#define lua_isfunction(L, n)
void(* lua_Hook)(lua_State *L, lua_Debug *ar)
#define lua_tostring(L, i)
#define lua_isnoneornil(L, n)
LUA_API void lua_upvaluejoin(lua_State *L, int fidx1, int n1, int fidx2, int n2)
LUA_API void * lua_upvalueid(lua_State *L, int fidx, int n)
LUA_API void lua_rawgetp(lua_State *L, int idx, const void *p)
LUA_API void lua_rawsetp(lua_State *L, int idx, const void *p)
LUALIB_API void luaL_traceback(lua_State *L, lua_State *L1, const char *msg, int level)
#define luaL_newlib(L, l)
#define luaL_loadbuffer(L, s, sz, n)
#define lua_pcall(L, n, r, f)
#define lua_call(L, n, r)
LUA_API void lua_rotate(lua_State *L, int idx, int n)
#define lua_writestringerror(s, p)
static int checkupval(lua_State *L, int argf, int argnup)
static int db_setlocal(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 int auxupvalue(lua_State *L, int get)
static void settabsi(lua_State *L, const char *k, int v)
static int db_setmetatable(lua_State *L)
static int db_getinfo(lua_State *L)
static int makemask(const char *smask, int count)
static void hookf(lua_State *L, lua_Debug *ar)
static void treatstackoption(lua_State *L, lua_State *L1, const char *fname)
static int db_gethook(lua_State *L)
static int db_getupvalue(lua_State *L)
static int db_getregistry(lua_State *L)
static void settabss(lua_State *L, const char *k, const char *v)
static int db_sethook(lua_State *L)
static int db_getmetatable(lua_State *L)
static char * unmakemask(int mask, char *smask)
static const luaL_Reg dblib[]
static int db_setupvalue(lua_State *L)
static int db_upvaluejoin(lua_State *L)
static int db_debug(lua_State *L)
LUAMOD_API int luaopen_debug(lua_State *L)
static int db_upvalueid(lua_State *L)
static int db_traceback(lua_State *L)
static int db_getlocal(lua_State *L)
static void checkstack(lua_State *L, lua_State *L1, int n)
static void settabsb(lua_State *L, const char *k, int v)
#define lua_insert(L, idx)
#define lua_remove(L, idx)
#define lua_setuservalue(L, idx)
#define lua_getuservalue(L, idx)
char short_src[LUA_IDSIZE]