13 #define gnode(t,i) (&(t)->node[i]) 14 #define gval(n) (&(n)->i_val) 15 #define gnext(n) ((n)->u.next) 23 #define invalidateTMcache(t) ((t)->flags &= ~maskflags) 27 #define isdummy(t) ((t)->lastfree == NULL) 31 #define allocsizenode(t) (isdummy(t) ? 0 : sizenode(t)) 35 #define nodefromval(v) cast(Node *, (v)) 38 LUAI_FUNC
const TValue *luaH_getint (Table *t, lua_Integer key);
39 LUAI_FUNC
void luaH_setint (lua_State *L, Table *t, lua_Integer key,
41 LUAI_FUNC
const TValue *luaH_getshortstr (Table *t, TString *key);
42 LUAI_FUNC
const TValue *luaH_getstr (Table *t, TString *key);
43 LUAI_FUNC
const TValue *luaH_get (Table *t,
const TValue *key);
44 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t,
const TValue *key);
45 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t,
const TValue *key);
46 LUAI_FUNC Table *luaH_new (lua_State *L);
47 LUAI_FUNC
void luaH_resize (lua_State *L, Table *t,
unsigned int nasize,
49 LUAI_FUNC
void luaH_resizearray (lua_State *L, Table *t,
unsigned int nasize);
50 LUAI_FUNC
void luaH_free (lua_State *L, Table *t);
51 LUAI_FUNC
int luaH_next (lua_State *L, Table *t, StkId key);
52 LUAI_FUNC lua_Unsigned luaH_getn (Table *t);
53 LUAI_FUNC
unsigned int luaH_realasize (
const Table *t);
56 #if defined(LUA_DEBUG) 57 LUAI_FUNC Node *luaH_mainposition (
const Table *t,
const TValue *key);
58 LUAI_FUNC
int luaH_isdummy (
const Table *t);