aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-19 18:14:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-19 18:14:53 -0300
commit70e2b7ab8680ca290d4c682705a9d9f5220f6073 (patch)
tree881652706c75c7a3ee381f058cdfb7a10cd2d633
parent5a144e891a4b8965fc9fa16fa1efa1eaa3da2390 (diff)
downloadlua-70e2b7ab8680ca290d4c682705a9d9f5220f6073.tar.gz
lua-70e2b7ab8680ca290d4c682705a9d9f5220f6073.tar.bz2
lua-70e2b7ab8680ca290d4c682705a9d9f5220f6073.zip
name changes to avoid name collision between macros and variables
-rw-r--r--ltests.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ltests.c b/ltests.c
index 95a43af0..da880c65 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.154 2003/02/27 12:33:07 roberto Exp roberto $ 2** $Id: ltests.c,v 1.155 2003/03/11 12:24:34 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -307,14 +307,14 @@ static int table_query (lua_State *L) {
307 lua_pushnil(L); 307 lua_pushnil(L);
308 } 308 }
309 else if ((i -= t->sizearray) < sizenode(t)) { 309 else if ((i -= t->sizearray) < sizenode(t)) {
310 if (!ttisnil(val(node(t, i))) || 310 if (!ttisnil(gval(gnode(t, i))) ||
311 ttisnil(key(node(t, i))) || 311 ttisnil(gkey(gnode(t, i))) ||
312 ttisnumber(key(node(t, i)))) { 312 ttisnumber(gkey(gnode(t, i)))) {
313 luaA_pushobject(L, key(node(t, i))); 313 luaA_pushobject(L, gkey(gnode(t, i)));
314 } 314 }
315 else 315 else
316 lua_pushstring(L, "<undef>"); 316 lua_pushstring(L, "<undef>");
317 luaA_pushobject(L, val(&t->node[i])); 317 luaA_pushobject(L, gval(gnode(t, i)));
318 if (t->node[i].next) 318 if (t->node[i].next)
319 lua_pushnumber(L, t->node[i].next - t->node); 319 lua_pushnumber(L, t->node[i].next - t->node);
320 else 320 else