diff options
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.h,v 1.32 2001/02/02 16:32:00 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.33 2001/06/26 13:20:45 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 | */ |
@@ -14,21 +14,19 @@ | |||
14 | #define key(_n) (&(_n)->key) | 14 | #define key(_n) (&(_n)->key) |
15 | #define val(_n) (&(_n)->val) | 15 | #define val(_n) (&(_n)->val) |
16 | 16 | ||
17 | 17 | const TObject *luaH_getnum (Hash *t, int key); | |
18 | #define luaH_get(_t,_k) luaH_set(NULL,_t,_k) | 18 | TObject *luaH_setnum (lua_State *L, Hash *t, int key); |
19 | #define luaH_getnum(_t,_k) luaH_setnum(NULL,_t,_k) | 19 | const TObject *luaH_getstr (Hash *t, TString *key); |
20 | #define luaH_getstr(_t,_k) luaH_setstr(NULL,_t,_k) | 20 | TObject *luaH_setstr (lua_State *L, Hash *t, TString *key); |
21 | 21 | const TObject *luaH_get (Hash *t, const TObject *key); | |
22 | TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); | ||
22 | Hash *luaH_new (lua_State *L, int nhash); | 23 | Hash *luaH_new (lua_State *L, int nhash); |
23 | void luaH_free (lua_State *L, Hash *t); | 24 | void luaH_free (lua_State *L, Hash *t); |
24 | TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); | ||
25 | Node *luaH_next (lua_State *L, Hash *t, const TObject *r); | 25 | Node *luaH_next (lua_State *L, Hash *t, const TObject *r); |
26 | int luaH_nexti (Hash *t, int i); | 26 | int luaH_nexti (Hash *t, int i); |
27 | TObject *luaH_setnum (lua_State *L, Hash *t, lua_Number key); | ||
28 | TObject *luaH_setstr (lua_State *L, Hash *t, TString *key); | ||
29 | 27 | ||
30 | /* exported only for debugging */ | 28 | /* exported only for debugging */ |
31 | Node *luaH_mainposition (const Hash *t, const Node *n); | 29 | Node *luaH_mainposition (const Hash *t, const TObject *key); |
32 | 30 | ||
33 | 31 | ||
34 | #endif | 32 | #endif |