summaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
commita404f6e0e621927dc3765db556a7f4e645756a47 (patch)
treea539445c84760ee9190361db86da88223075c97a /ltable.h
parent2d2440a753af88fe6e23a150a4b113005873e691 (diff)
downloadlua-a404f6e0e621927dc3765db556a7f4e645756a47.tar.gz
lua-a404f6e0e621927dc3765db556a7f4e645756a47.tar.bz2
lua-a404f6e0e621927dc3765db556a7f4e645756a47.zip
Lua tables (hash)
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/ltable.h b/ltable.h
new file mode 100644
index 00000000..2633a63f
--- /dev/null
+++ b/ltable.h
@@ -0,0 +1,27 @@
1/*
2** $Id: $
3** Lua tables (hash)
4** See Copyright Notice in lua.h
5*/
6
7#ifndef ltable_h
8#define ltable_h
9
10#include "lobject.h"
11
12
13extern Hash *luaH_root;
14
15
16#define node(t,i) (&(t)->node[i])
17#define ref(n) (&(n)->ref)
18#define nhash(t) ((t)->nhash)
19
20Hash *luaH_new (int nhash);
21void luaH_callIM (Hash *l);
22void luaH_free (Hash *frees);
23TObject *luaH_get (Hash *t, TObject *ref);
24TObject *luaH_set (Hash *t, TObject *ref);
25Node *luaH_next (TObject *o, TObject *r);
26
27#endif