diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
| commit | a404f6e0e621927dc3765db556a7f4e645756a47 (patch) | |
| tree | a539445c84760ee9190361db86da88223075c97a /ltable.h | |
| parent | 2d2440a753af88fe6e23a150a4b113005873e691 (diff) | |
| download | lua-a404f6e0e621927dc3765db556a7f4e645756a47.tar.gz lua-a404f6e0e621927dc3765db556a7f4e645756a47.tar.bz2 lua-a404f6e0e621927dc3765db556a7f4e645756a47.zip | |
Lua tables (hash)
Diffstat (limited to 'ltable.h')
| -rw-r--r-- | ltable.h | 27 |
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 | |||
| 13 | extern 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 | |||
| 20 | Hash *luaH_new (int nhash); | ||
| 21 | void luaH_callIM (Hash *l); | ||
| 22 | void luaH_free (Hash *frees); | ||
| 23 | TObject *luaH_get (Hash *t, TObject *ref); | ||
| 24 | TObject *luaH_set (Hash *t, TObject *ref); | ||
| 25 | Node *luaH_next (TObject *o, TObject *r); | ||
| 26 | |||
| 27 | #endif | ||
