#include "lobject.h"
Go to the source code of this file.
Macros | |
#define | gnode(t, i) (&(t)->node[i]) |
#define | gkey(n) (&(n)->i_key.tvk) |
#define | gval(n) (&(n)->i_val) |
#define | gnext(n) ((n)->i_key.nk.next) |
#define | invalidateTMcache(t) ((t)->flags = 0) |
#define | keyfromval(v) (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val)))) |
Functions | |
LUAI_FUNC const TValue * | luaH_getint (Table *t, int key) |
LUAI_FUNC void | luaH_setint (lua_State *L, Table *t, int key, TValue *value) |
LUAI_FUNC const TValue * | luaH_getstr (Table *t, TString *key) |
LUAI_FUNC const TValue * | luaH_get (Table *t, const TValue *key) |
LUAI_FUNC TValue * | luaH_newkey (lua_State *L, Table *t, const TValue *key) |
LUAI_FUNC TValue * | luaH_set (lua_State *L, Table *t, const TValue *key) |
LUAI_FUNC Table * | luaH_new (lua_State *L) |
LUAI_FUNC void | luaH_resize (lua_State *L, Table *t, int nasize, int nhsize) |
LUAI_FUNC void | luaH_resizearray (lua_State *L, Table *t, int nasize) |
LUAI_FUNC void | luaH_free (lua_State *L, Table *t) |
LUAI_FUNC int | luaH_next (lua_State *L, Table *t, StkId key) |
LUAI_FUNC int | luaH_getn (Table *t) |
Definition at line 13 of file ltable.h.
Referenced by clearkeys(), findindex(), getfreepos(), luaH_get(), luaH_getint(), luaH_getstr(), luaH_newkey(), luaH_next(), luaH_resize(), numusehash(), removeentry(), setnodevector(), traverseephemeron(), traversestrongtable(), and traverseweakvalue().
#define gnext | ( | n | ) | ((n)->i_key.nk.next) |
Definition at line 15 of file ltable.h.
Referenced by findindex(), luaH_get(), luaH_getint(), luaH_getstr(), luaH_newkey(), and setnodevector().
Definition at line 12 of file ltable.h.
Referenced by clearkeys(), clearvalues(), findindex(), luaH_next(), setnodevector(), traverseephemeron(), traversestrongtable(), and traverseweakvalue().
Definition at line 14 of file ltable.h.
Referenced by clearkeys(), clearvalues(), luaH_get(), luaH_getint(), luaH_getstr(), luaH_newkey(), luaH_next(), luaH_resize(), numusehash(), removeentry(), setnodevector(), traverseephemeron(), traversestrongtable(), and traverseweakvalue().
Definition at line 17 of file ltable.h.
Referenced by lua_rawset(), and luaV_settable().
Definition at line 20 of file ltable.h.
Referenced by luaX_newstring().
Definition at line 378 of file ltable.cpp.
References Table::array, cast, isdummy, luaM_free, luaM_freearray, Table::node, Table::sizearray, and sizenode.
Referenced by freeobj().
Definition at line 480 of file ltable.cpp.
References cast_num, gkey, gnext, gval, lua_number2int, LUA_TNIL, LUA_TNUMBER, LUA_TSHRSTR, luaH_getint(), luaH_getstr(), luaO_nilobject, luaV_rawequalobj, mainposition(), nvalue, rawtsvalue, and ttype.
Referenced by lua_rawget(), lua_rawgetp(), luaH_set(), luaV_gettable(), and luaV_settable().
Definition at line 445 of file ltable.cpp.
References Table::array, cast, cast_num, gkey, gnext, gval, hashnum(), luaO_nilobject, nvalue, Table::sizearray, and ttisnumber.
Referenced by lua_getglobal(), lua_load(), lua_rawgeti(), lua_setglobal(), luaH_get(), luaH_setint(), and unbound_search().
Definition at line 559 of file ltable.cpp.
References Table::array, i, isdummy, Table::node, Table::sizearray, ttisnil, and unbound_search().
Referenced by lua_rawlen(), and luaV_objlen().
Definition at line 465 of file ltable.cpp.
References eqshrstr, gkey, gnext, gval, hashstr, lua_assert, LUA_TSHRSTR, luaO_nilobject, rawtsvalue, TString::tsv, and ttisshrstring.
Referenced by luaH_get(), luaT_gettm(), and luaT_gettmbyobj().
Definition at line 367 of file ltable.cpp.
References Table::array, cast_byte, Table::flags, GCObject::h, LUA_TTABLE, luaC_newobj(), Table::metatable, setnodevector(), and Table::sizearray.
Referenced by collectvalidlines(), init_registry(), lua_createtable(), luaV_execute(), and open_func().
Definition at line 404 of file ltable.cpp.
References getfreepos(), gkey, gnext, gval, isdummy, lua_assert, luaC_barrierback, luaG_runerror(), luaH_set(), mainposition(), nvalue, obj2gco, rehash(), setnilvalue, setobj2t, ttisnil, and ttisnumber.
Referenced by luaH_set(), luaH_setint(), and luaV_settable().
Definition at line 168 of file ltable.cpp.
References Table::array, cast_num, findindex(), gkey, gnode, gval, i, setnvalue, setobj2s, Table::sizearray, sizenode, and ttisnil.
Referenced by lua_next().
Definition at line 303 of file ltable.cpp.
References Table::array, cast, gkey, gval, i, isdummy, Table::lsizenode, luaH_set(), luaH_setint(), luaM_freearray, luaM_reallocvector, Table::node, setarrayvector(), setnodevector(), setobjt2t, Table::sizearray, ttisnil, and twoto.
Referenced by init_registry(), lua_createtable(), luaH_resizearray(), luaV_execute(), and rehash().
Definition at line 336 of file ltable.cpp.
References isdummy, luaH_resize(), Table::node, and sizenode.
Referenced by luaV_execute().
Definition at line 509 of file ltable.cpp.
References cast, luaH_get(), luaH_newkey(), and luaO_nilobject.
Referenced by addk(), lua_rawset(), lua_rawsetp(), luaH_newkey(), luaH_resize(), and luaX_newstring().
Definition at line 517 of file ltable.cpp.
References cast, cast_num, luaH_getint(), luaH_newkey(), luaO_nilobject, setnvalue, and setobj2t.
Referenced by collectvalidlines(), init_registry(), lua_rawseti(), luaH_resize(), and luaV_execute().