2
0
Эх сурвалжийг харах

name changes to avoid name collision between macros and variables

Roberto Ierusalimschy 22 жил өмнө
parent
commit
70e2b7ab86
1 өөрчлөгдсөн 6 нэмэгдсэн , 6 устгасан
  1. 6 6
      ltests.c

+ 6 - 6
ltests.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: ltests.c,v 1.154 2003/02/27 12:33:07 roberto Exp roberto $
+** $Id: ltests.c,v 1.155 2003/03/11 12:24:34 roberto Exp roberto $
 ** Internal Module for Debugging of the Lua Implementation
 ** Internal Module for Debugging of the Lua Implementation
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -307,14 +307,14 @@ static int table_query (lua_State *L) {
     lua_pushnil(L); 
     lua_pushnil(L); 
   }
   }
   else if ((i -= t->sizearray) < sizenode(t)) {
   else if ((i -= t->sizearray) < sizenode(t)) {
-    if (!ttisnil(val(node(t, i))) ||
-        ttisnil(key(node(t, i))) ||
-        ttisnumber(key(node(t, i)))) {
-      luaA_pushobject(L, key(node(t, i)));
+    if (!ttisnil(gval(gnode(t, i))) ||
+        ttisnil(gkey(gnode(t, i))) ||
+        ttisnumber(gkey(gnode(t, i)))) {
+      luaA_pushobject(L, gkey(gnode(t, i)));
     }
     }
     else
     else
       lua_pushstring(L, "<undef>");
       lua_pushstring(L, "<undef>");
-    luaA_pushobject(L, val(&t->node[i]));
+    luaA_pushobject(L, gval(gnode(t, i)));
     if (t->node[i].next)
     if (t->node[i].next)
       lua_pushnumber(L, t->node[i].next - t->node);
       lua_pushnumber(L, t->node[i].next - t->node);
     else
     else