diff options
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.h,v 1.40 2002/02/14 21:41:08 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.41 2002/03/11 12:45:00 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,14 +14,12 @@ | |||
14 | #define key(n) (&(n)->i_key) | 14 | #define key(n) (&(n)->i_key) |
15 | #define val(n) (&(n)->i_val) | 15 | #define val(n) (&(n)->i_val) |
16 | 16 | ||
17 | #define settableval(p,v) setobj(cast(TObject *, p), v) | ||
18 | |||
19 | 17 | ||
20 | const TObject *luaH_getnum (Table *t, int key); | 18 | const TObject *luaH_getnum (Table *t, int key); |
21 | void luaH_setnum (lua_State *L, Table *t, int key, const TObject *val); | 19 | TObject *luaH_setnum (lua_State *L, Table *t, int key); |
22 | const TObject *luaH_getstr (Table *t, TString *key); | 20 | const TObject *luaH_getstr (Table *t, TString *key); |
23 | const TObject *luaH_get (Table *t, const TObject *key); | 21 | const TObject *luaH_get (Table *t, const TObject *key); |
24 | void luaH_set (lua_State *L, Table *t, const TObject *key, const TObject *val); | 22 | TObject *luaH_set (lua_State *L, Table *t, const TObject *key); |
25 | Table *luaH_new (lua_State *L, int narray, int lnhash); | 23 | Table *luaH_new (lua_State *L, int narray, int lnhash); |
26 | void luaH_free (lua_State *L, Table *t); | 24 | void luaH_free (lua_State *L, Table *t); |
27 | int luaH_next (lua_State *L, Table *t, TObject *key); | 25 | int luaH_next (lua_State *L, Table *t, TObject *key); |