diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-08 15:27:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-08 15:27:13 -0300 |
commit | 8ca9534d048782af13141874e0d2fec0d0f806af (patch) | |
tree | d58ab47be12ff9d5910ffaf6222cf94bd0dff0f6 /ltests.c | |
parent | 8bcf6228765e56be19feb90c8805cc2fb2223188 (diff) | |
download | lua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.gz lua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.bz2 lua-8ca9534d048782af13141874e0d2fec0d0f806af.zip |
access to `values' in TObject always through macros
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.22 2000/06/02 17:06:42 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.23 2000/06/02 19:10:01 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 | */ |
@@ -161,14 +161,14 @@ static void hash_query (void) { | |||
161 | lua_pushnumber(tsvalue(o)->u.s.hash); | 161 | lua_pushnumber(tsvalue(o)->u.s.hash); |
162 | } | 162 | } |
163 | else { | 163 | else { |
164 | const Hash *t = avalue(luaL_tablearg(2)); | 164 | const Hash *t = hvalue(luaL_tablearg(2)); |
165 | lua_pushnumber(luaH_mainposition(t, o) - t->node); | 165 | lua_pushnumber(luaH_mainposition(t, o) - t->node); |
166 | } | 166 | } |
167 | } | 167 | } |
168 | 168 | ||
169 | 169 | ||
170 | static void table_query (void) { | 170 | static void table_query (void) { |
171 | const Hash *t = avalue(luaL_tablearg(1)); | 171 | const Hash *t = hvalue(luaL_tablearg(1)); |
172 | int i = luaL_opt_int(2, -1); | 172 | int i = luaL_opt_int(2, -1); |
173 | if (i == -1) { | 173 | if (i == -1) { |
174 | lua_pushnumber(t->size); | 174 | lua_pushnumber(t->size); |