2 ** $Id: ltable.h,v 1.11 1999/02/23 14:57:28 roberto Exp $
4 ** See Copyright Notice in lua.h
13 #define node(t,i) (&(t)->node[i])
14 #define ref(n) (&(n)->ref)
15 #define val(n) (&(n)->val)
16 #define nhash(t) ((t)->nhash)
18 #define luaH_get(t,ref) (val(luaH_present((t), (ref))))
19 #define luaH_move(t,from,to) (luaH_setint(t, to, luaH_getint(t, from)))
21 Hash
*luaH_new (int nhash
);
22 void luaH_free (Hash
*frees
);
23 Node
*luaH_present (Hash
*t
, TObject
*key
);
24 void luaH_set (Hash
*t
, TObject
*ref
, TObject
*val
);
25 int luaH_pos (Hash
*t
, TObject
*r
);
26 void luaH_setint (Hash
*t
, int ref
, TObject
*val
);
27 TObject
*luaH_getint (Hash
*t
, int ref
);