|
|
@ -1,5 +1,5 @@ |
|
|
|
/*
|
|
|
|
** $Id: ltable.h,v 1.8 1999/01/04 12:54:33 roberto Exp roberto $ |
|
|
|
** $Id: ltable.h,v 1.9 1999/01/25 12:30:11 roberto Exp roberto $ |
|
|
|
** Lua tables (hash) |
|
|
|
** See Copyright Notice in lua.h |
|
|
|
*/ |
|
|
@ -16,15 +16,15 @@ |
|
|
|
#define nhash(t) ((t)->nhash) |
|
|
|
|
|
|
|
#define luaH_get(t,ref) (val(luaH_present((t), (ref)))) |
|
|
|
#define luaH_move(t,from,to) (luaH_setint(t, to, luaH_getint(t, from))) |
|
|
|
|
|
|
|
Hash *luaH_new (int nhash); |
|
|
|
void luaH_free (Hash *frees); |
|
|
|
Node *luaH_present (Hash *t, TObject *ref); |
|
|
|
TObject *luaH_set (Hash *t, TObject *ref); |
|
|
|
Node *luaH_present (Hash *t, TObject *key); |
|
|
|
void luaH_set (Hash *t, TObject *ref, TObject *val); |
|
|
|
Node *luaH_next (Hash *t, TObject *r); |
|
|
|
void luaH_setint (Hash *t, int ref, TObject *val); |
|
|
|
TObject *luaH_getint (Hash *t, int ref); |
|
|
|
void luaH_move (Hash *t, int from, int to); |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|