diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-29 11:14:49 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-29 11:14:49 -0200 |
commit | caf01b5bfa33617b7bb2c40292f74599f6030eba (patch) | |
tree | 7ebc6352b89f9c331d693701aa4824a7320195e5 /ltable.h | |
parent | ca1f28b829090e99fb82d688dac34b2055d2963e (diff) | |
download | lua-caf01b5bfa33617b7bb2c40292f74599f6030eba.tar.gz lua-caf01b5bfa33617b7bb2c40292f74599f6030eba.tar.bz2 lua-caf01b5bfa33617b7bb2c40292f74599f6030eba.zip |
better implementation for list "for"
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.h,v 1.28 2001/01/26 13:18:00 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.29 2001/01/26 14:16:35 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -21,7 +21,8 @@ | |||
21 | Hash *luaH_new (lua_State *L, int nhash); | 21 | Hash *luaH_new (lua_State *L, int nhash); |
22 | void luaH_free (lua_State *L, Hash *t); | 22 | void luaH_free (lua_State *L, Hash *t); |
23 | TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); | 23 | TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); |
24 | Node * luaH_next (lua_State *L, Hash *t, const TObject *r); | 24 | Node *luaH_next (lua_State *L, Hash *t, const TObject *r); |
25 | int luaH_nexti (Hash *t, int i); | ||
25 | TObject *luaH_setnum (lua_State *L, Hash *t, lua_Number key); | 26 | TObject *luaH_setnum (lua_State *L, Hash *t, lua_Number key); |
26 | TObject *luaH_setstr (lua_State *L, Hash *t, TString *key); | 27 | TObject *luaH_setstr (lua_State *L, Hash *t, TString *key); |
27 | 28 | ||