aboutsummaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/ltable.h b/ltable.h
index c42f1059..54fba106 100644
--- a/ltable.h
+++ b/ltable.h
@@ -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
20const TObject *luaH_getnum (Table *t, int key); 18const TObject *luaH_getnum (Table *t, int key);
21void luaH_setnum (lua_State *L, Table *t, int key, const TObject *val); 19TObject *luaH_setnum (lua_State *L, Table *t, int key);
22const TObject *luaH_getstr (Table *t, TString *key); 20const TObject *luaH_getstr (Table *t, TString *key);
23const TObject *luaH_get (Table *t, const TObject *key); 21const TObject *luaH_get (Table *t, const TObject *key);
24void luaH_set (lua_State *L, Table *t, const TObject *key, const TObject *val); 22TObject *luaH_set (lua_State *L, Table *t, const TObject *key);
25Table *luaH_new (lua_State *L, int narray, int lnhash); 23Table *luaH_new (lua_State *L, int narray, int lnhash);
26void luaH_free (lua_State *L, Table *t); 24void luaH_free (lua_State *L, Table *t);
27int luaH_next (lua_State *L, Table *t, TObject *key); 25int luaH_next (lua_State *L, Table *t, TObject *key);