diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-25 17:14:14 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-25 17:14:14 -0200 |
commit | 21aa7e55f2333e57b972aa4ef2c5e2785d609578 (patch) | |
tree | bdd6119f0fab0178979202bc5d0afbd6f4410469 /ltable.h | |
parent | fffb6f3814084cddd8a58e81ae1b73ed78ea0953 (diff) | |
download | lua-21aa7e55f2333e57b972aa4ef2c5e2785d609578.tar.gz lua-21aa7e55f2333e57b972aa4ef2c5e2785d609578.tar.bz2 lua-21aa7e55f2333e57b972aa4ef2c5e2785d609578.zip |
optimization for array part of a Table
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.h,v 1.34 2001/07/05 20:31:14 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.36 2001/08/31 19:46:07 roberto Exp $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -17,19 +17,19 @@ | |||
17 | #define settableval(p,v) setobj(cast(TObject *, p), v) | 17 | #define settableval(p,v) setobj(cast(TObject *, p), v) |
18 | 18 | ||
19 | 19 | ||
20 | const TObject *luaH_getnum (Hash *t, int key); | 20 | const TObject *luaH_getnum (Table *t, int key); |
21 | void luaH_setnum (lua_State *L, Hash *t, int key, const TObject *val); | 21 | void luaH_setnum (lua_State *L, Table *t, int key, const TObject *val); |
22 | const TObject *luaH_getstr (Hash *t, TString *key); | 22 | const TObject *luaH_getstr (Table *t, TString *key); |
23 | void luaH_setstr (lua_State *L, Hash *t, TString *key, const TObject *val); | 23 | void luaH_setstr (lua_State *L, Table *t, TString *key, const TObject *val); |
24 | const TObject *luaH_get (Hash *t, const TObject *key); | 24 | const TObject *luaH_get (Table *t, const TObject *key); |
25 | void luaH_set (lua_State *L, Hash *t, const TObject *key, const TObject *val); | 25 | void luaH_set (lua_State *L, Table *t, const TObject *key, const TObject *val); |
26 | Hash *luaH_new (lua_State *L, int nhash); | 26 | Table *luaH_new (lua_State *L, int narray, int lnhash); |
27 | void luaH_free (lua_State *L, Hash *t); | 27 | void luaH_free (lua_State *L, Table *t); |
28 | Node *luaH_next (lua_State *L, Hash *t, const TObject *r); | 28 | int luaH_index (lua_State *L, Table *t, const TObject *key); |
29 | int luaH_nexti (Hash *t, int i); | 29 | int luaH_nexti (Table *t, int i, TObject *where); |
30 | 30 | ||
31 | /* exported only for debugging */ | 31 | /* exported only for debugging */ |
32 | Node *luaH_mainposition (const Hash *t, const TObject *key); | 32 | Node *luaH_mainposition (const Table *t, const TObject *key); |
33 | 33 | ||
34 | 34 | ||
35 | #endif | 35 | #endif |