too much optimization to "break" keys in tables; keep them as TObjects...

This commit is contained in:
Roberto Ierusalimschy
2001-06-26 10:20:45 -03:00
parent 9559c111a3
commit 37f3a1c045
8 changed files with 64 additions and 78 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ldebug.c,v 1.82 2001/06/11 14:56:42 roberto Exp roberto $
** $Id: ldebug.c,v 1.83 2001/06/15 20:36:57 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
@@ -225,8 +225,8 @@ static const l_char *travglobals (lua_State *L, const TObject *o) {
int i;
for (i=0; i<g->size; i++) {
if (luaO_equalObj(o, val(node(g, i))) &&
ttype_key(node(g, i)) == LUA_TSTRING)
return getstr(tsvalue_key(node(g, i)));
ttype(key(node(g, i))) == LUA_TSTRING)
return getstr(tsvalue(key(node(g, i))));
}
return NULL;
}