diff options
| author | Lua Team <team@lua.org> | 2010-01-08 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2010-01-08 12:00:00 +0000 |
| commit | 22912c77c80f8de8f7accd3319c726f7c5349fd3 (patch) | |
| tree | caf064ecca31cd2ef1c919c585ee6b3d5e6d25d6 /src/ltable.h | |
| parent | 300cd56eb905be061aa75bb665549b3b85109bbe (diff) | |
| download | lua-github-5.2.0-work1.tar.gz | |
Lua 5.2.0-work15.2.0-work1
Diffstat (limited to 'src/ltable.h')
| -rw-r--r-- | src/ltable.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ltable.h b/src/ltable.h index f5b9d5ea..784377ac 100644 --- a/src/ltable.h +++ b/src/ltable.h @@ -1,5 +1,5 @@ /* -** $Id: ltable.h,v 2.10.1.1 2007/12/27 13:02:25 roberto Exp $ +** $Id: ltable.h,v 2.13 2009/11/06 17:07:48 roberto Exp $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -11,20 +11,21 @@ #define gnode(t,i) (&(t)->node[i]) -#define gkey(n) (&(n)->i_key.nk) +#define gkey(n) (&(n)->i_key.tvk) #define gval(n) (&(n)->i_val) #define gnext(n) ((n)->i_key.nk.next) #define key2tval(n) (&(n)->i_key.tvk) -LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); -LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); +LUAI_FUNC const TValue *luaH_getint (Table *t, int key); +LUAI_FUNC TValue *luaH_setint (lua_State *L, Table *t, int key); LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); -LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); +LUAI_FUNC Table *luaH_new (lua_State *L); +LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize); LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); LUAI_FUNC void luaH_free (lua_State *L, Table *t); LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); |
