From 9273fbd131eb0be7d4e7ca4f44345b41f8a557cf Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Aug 2005 14:32:05 -0300 Subject: no more 'luaL_get/setfield' (replaced by more direct luaL_findtable) --- ltests.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index ba2f01a1..f27e21bd 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.27 2005/07/12 14:32:08 roberto Exp roberto $ +** $Id: ltests.c,v 2.28 2005/08/15 14:12:32 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -1078,23 +1078,6 @@ static int auxgsub (lua_State *L) { } -static int auxgetf (lua_State *L) { - const char *s = luaL_checkstring(L, 1); - lua_settop(L, 2); - lua_pushstring(L, luaL_getfield(L, 2, s)); - lua_assert(lua_gettop(L) == 4); - return 2; -} - - -static int auxsetf (lua_State *L) { - const char *s = luaL_checkstring(L, 1); - lua_settop(L, 3); - lua_pushstring(L, luaL_setfield(L, 2, s)); - lua_assert(lua_gettop(L) == 3); - return 1; -} - /* }====================================================== */ @@ -1107,7 +1090,6 @@ static const struct luaL_reg tests_funcs[] = { {"doremote", doremote}, {"gccolor", get_gccolor}, {"gcstate", gcstate}, - {"getfield", auxgetf}, {"getref", getref}, {"gsub", auxgsub}, {"hash", hash_query}, @@ -1127,7 +1109,6 @@ static const struct luaL_reg tests_funcs[] = { {"ref", tref}, {"resume", coresume}, {"s2d", s2d}, - {"setfield", auxsetf}, {"setyhook", setyhook}, {"stacklevel", stacklevel}, {"testC", testC}, -- cgit v1.2.3-55-g6feb