aboutsummaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/ltable.h b/ltable.h
index df0ff232..24ec0355 100644
--- a/ltable.h
+++ b/ltable.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.h,v 1.33 2001/06/26 13:20:45 roberto Exp roberto $ 2** $Id: ltable.h,v 1.34 2001/07/05 20:31:14 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,12 +14,15 @@
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#define settableval(p,v) setobj((TObject *)p, v)
18
19
17const TObject *luaH_getnum (Hash *t, int key); 20const TObject *luaH_getnum (Hash *t, int key);
18TObject *luaH_setnum (lua_State *L, Hash *t, int key); 21void luaH_setnum (lua_State *L, Hash *t, int key, const TObject *val);
19const TObject *luaH_getstr (Hash *t, TString *key); 22const TObject *luaH_getstr (Hash *t, TString *key);
20TObject *luaH_setstr (lua_State *L, Hash *t, TString *key); 23void luaH_setstr (lua_State *L, Hash *t, TString *key, const TObject *val);
21const TObject *luaH_get (Hash *t, const TObject *key); 24const TObject *luaH_get (Hash *t, const TObject *key);
22TObject *luaH_set (lua_State *L, Hash *t, const TObject *key); 25void luaH_set (lua_State *L, Hash *t, const TObject *key, const TObject *val);
23Hash *luaH_new (lua_State *L, int nhash); 26Hash *luaH_new (lua_State *L, int nhash);
24void luaH_free (lua_State *L, Hash *t); 27void luaH_free (lua_State *L, Hash *t);
25Node *luaH_next (lua_State *L, Hash *t, const TObject *r); 28Node *luaH_next (lua_State *L, Hash *t, const TObject *r);