ltable.h 505 B

123456789101112131415161718192021222324
  1. /*
  2. ** $Id: ltable.h,v 1.4 1997/11/19 17:29:23 roberto Exp roberto $
  3. ** Lua tables (hash)
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef ltable_h
  7. #define ltable_h
  8. #include "lobject.h"
  9. #define node(t,i) (&(t)->node[i])
  10. #define ref(n) (&(n)->ref)
  11. #define val(n) (&(n)->val)
  12. #define nhash(t) ((t)->nhash)
  13. Hash *luaH_new (int nhash);
  14. void luaH_free (Hash *frees);
  15. TObject *luaH_get (Hash *t, TObject *ref);
  16. TObject *luaH_set (Hash *t, TObject *ref);
  17. Node *luaH_next (TObject *o, TObject *r);
  18. #endif