summaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
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