|
| #define | ltable_c |
| |
| #define | LUA_CORE |
| |
| #define | MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1) |
| |
| #define | MAXASIZE luaM_limitN(1u << MAXABITS, TValue) |
| |
| #define | MAXHBITS (MAXABITS - 1) |
| |
| #define | MAXHSIZE luaM_limitN(1u << MAXHBITS, Node) |
| |
| #define | hashpow2(t, n) (gnode(t, lmod((n), sizenode(t)))) |
| |
| #define | hashstr(t, str) hashpow2(t, (str)->hash) |
| |
| #define | hashboolean(t, p) hashpow2(t, p) |
| |
| #define | hashint(t, i) hashpow2(t, i) |
| |
| #define | hashmod(t, n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) |
| |
| #define | hashpointer(t, p) hashmod(t, point2uint(p)) |
| |
| #define | dummynode (&dummynode_) |
| |
| #define | limitequalsasize(t) (isrealasize(t) || ispow2((t)->alimit)) |
| |
| #define | limitasasize(t) check_exp(isrealasize(t), t->alimit) |
| |
|
| LUAI_FUNC unsigned int | luaH_realasize (const Table *t) |
| |
| int | luaH_next (lua_State *L, Table *t, StkId key) |
| |
| void | luaH_resize (lua_State *L, Table *t, unsigned int newasize, unsigned int nhsize) |
| |
| void | luaH_resizearray (lua_State *L, Table *t, unsigned int nasize) |
| |
| Table * | luaH_new (lua_State *L) |
| |
| void | luaH_free (lua_State *L, Table *t) |
| |
| TValue * | luaH_newkey (lua_State *L, Table *t, const TValue *key) |
| |
| const TValue * | luaH_getint (Table *t, lua_Integer key) |
| |
| const TValue * | luaH_getshortstr (Table *t, TString *key) |
| |
| const TValue * | luaH_getstr (Table *t, TString *key) |
| |
| const TValue * | luaH_get (Table *t, const TValue *key) |
| |
| TValue * | luaH_set (lua_State *L, Table *t, const TValue *key) |
| |
| void | luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) |
| |
| lua_Unsigned | luaH_getn (Table *t) |
| |