aboutsummaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-25 17:14:14 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-25 17:14:14 -0200
commit21aa7e55f2333e57b972aa4ef2c5e2785d609578 (patch)
treebdd6119f0fab0178979202bc5d0afbd6f4410469 /ltable.h
parentfffb6f3814084cddd8a58e81ae1b73ed78ea0953 (diff)
downloadlua-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.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/ltable.h b/ltable.h
index f342a6f0..aa41586e 100644
--- a/ltable.h
+++ b/ltable.h
@@ -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
20const TObject *luaH_getnum (Hash *t, int key); 20const TObject *luaH_getnum (Table *t, int key);
21void luaH_setnum (lua_State *L, Hash *t, int key, const TObject *val); 21void luaH_setnum (lua_State *L, Table *t, int key, const TObject *val);
22const TObject *luaH_getstr (Hash *t, TString *key); 22const TObject *luaH_getstr (Table *t, TString *key);
23void luaH_setstr (lua_State *L, Hash *t, TString *key, const TObject *val); 23void luaH_setstr (lua_State *L, Table *t, TString *key, const TObject *val);
24const TObject *luaH_get (Hash *t, const TObject *key); 24const TObject *luaH_get (Table *t, const TObject *key);
25void luaH_set (lua_State *L, Hash *t, const TObject *key, const TObject *val); 25void luaH_set (lua_State *L, Table *t, const TObject *key, const TObject *val);
26Hash *luaH_new (lua_State *L, int nhash); 26Table *luaH_new (lua_State *L, int narray, int lnhash);
27void luaH_free (lua_State *L, Hash *t); 27void luaH_free (lua_State *L, Table *t);
28Node *luaH_next (lua_State *L, Hash *t, const TObject *r); 28int luaH_index (lua_State *L, Table *t, const TObject *key);
29int luaH_nexti (Hash *t, int i); 29int luaH_nexti (Table *t, int i, TObject *where);
30 30
31/* exported only for debugging */ 31/* exported only for debugging */
32Node *luaH_mainposition (const Hash *t, const TObject *key); 32Node *luaH_mainposition (const Table *t, const TObject *key);
33 33
34 34
35#endif 35#endif