diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-18 13:59:09 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-18 13:59:09 -0200 |
commit | f2c451d7455aad3496f32dfa2bfca7f7e8b5376d (patch) | |
tree | 38e30f839516ff5b6178351750b5e3256f4dd98e /ltests.c | |
parent | 619edfd9e4c210bdfcfbf1e911d1760c53c4293f (diff) | |
download | lua-f2c451d7455aad3496f32dfa2bfca7f7e8b5376d.tar.gz lua-f2c451d7455aad3496f32dfa2bfca7f7e8b5376d.tar.bz2 lua-f2c451d7455aad3496f32dfa2bfca7f7e8b5376d.zip |
all accesses to TObjects done through macros
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.55 2000/12/28 12:55:41 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.56 2001/01/15 16:13:24 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 | */ |
@@ -226,8 +226,7 @@ static int string_query (lua_State *L) { | |||
226 | TString *ts; | 226 | TString *ts; |
227 | int n = 0; | 227 | int n = 0; |
228 | for (ts = tb->hash[s]; ts; ts = ts->nexthash) { | 228 | for (ts = tb->hash[s]; ts; ts = ts->nexthash) { |
229 | ttype(L->top) = LUA_TSTRING; | 229 | setsvalue(L->top, ts); |
230 | tsvalue(L->top) = ts; | ||
231 | incr_top; | 230 | incr_top; |
232 | n++; | 231 | n++; |
233 | } | 232 | } |