ltable.h 560 B

12345678910111213141516171819202122232425262728
  1. /*
  2. ** $Id: ltable.h,v 1.2 1997/09/26 16:46:20 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. extern GCnode luaH_root;
  10. #define node(t,i) (&(t)->node[i])
  11. #define ref(n) (&(n)->ref)
  12. #define val(n) (&(n)->val)
  13. #define nhash(t) ((t)->nhash)
  14. Hash *luaH_new (int nhash);
  15. void luaH_callIM (Hash *l);
  16. void luaH_free (Hash *frees);
  17. TObject *luaH_get (Hash *t, TObject *ref);
  18. TObject *luaH_set (Hash *t, TObject *ref);
  19. Node *luaH_next (TObject *o, TObject *r);
  20. #endif