Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lobject.h"
Go to the source code of this file.
Macros | |
#define | gnode(t, i) (&(t)->node[i]) |
#define | gval(n) (&(n)->i_val) |
#define | gnext(n) ((n)->u.next) |
#define | invalidateTMcache(t) ((t)->flags &= ~maskflags) |
#define | isdummy(t) ((t)->lastfree == NULL) |
#define | allocsizenode(t) (isdummy(t) ? 0 : sizenode(t)) |
#define | nodefromval(v) cast(Node *, (v)) |
Definition at line 31 of file lua-5.4.3/src/ltable.h.
#define gnext | ( | n | ) | ((n)->u.next) |
Definition at line 15 of file lua-5.4.3/src/ltable.h.
#define gnode | ( | t, | |
i ) (&(t)->node[i]) |
Definition at line 13 of file lua-5.4.3/src/ltable.h.
#define gval | ( | n | ) | (&(n)->i_val) |
Definition at line 14 of file lua-5.4.3/src/ltable.h.
#define invalidateTMcache | ( | t | ) | ((t)->flags &= ~maskflags) |
Definition at line 23 of file lua-5.4.3/src/ltable.h.
#define isdummy | ( | t | ) | ((t)->lastfree == NULL) |
Definition at line 27 of file lua-5.4.3/src/ltable.h.
Definition at line 35 of file lua-5.4.3/src/ltable.h.
Referenced by findindex(), and luaX_newstring().
LUAI_FUNC void luaH_finishset | ( | lua_State * | L, |
Table * | t, | ||
const TValue * | key, | ||
const TValue * | slot, | ||
TValue * | value ) |
Definition at line 800 of file lua-5.4.3/src/ltable.c.
References cast, isabstkey, luaH_newkey(), setobj2t, and value.
Referenced by addk(), luaH_set(), luaV_finishset(), and luaX_newstring().
Definition at line 374 of file lua-5.1.5/src/ltable.c.
References Table::array, cast, dummynode, freehash(), isdummy, luaH_realasize(), luaM_free, luaM_freearray, Table::node, Table::sizearray, and sizenode.
Referenced by freeobj(), freeobj(), freeobj(), and freeobj().
Definition at line 469 of file lua-5.1.5/src/ltable.c.
References absentkey, cast_num, F2Ieq, fltvalue, getgeneric(), getgeneric(), gkey, gnext, gval, ivalue, key2tval, lua_number2int, LUA_TNIL, LUA_TNUMBER, LUA_TNUMFLT, LUA_TNUMINT, LUA_TSHRSTR, LUA_TSTRING, LUA_VNIL, LUA_VNUMFLT, LUA_VNUMINT, LUA_VSHRSTR, luaH_getint(), luaH_getint(), luaH_getnum(), luaH_getshortstr(), luaH_getstr(), luai_numeq, luaO_nilobject, luaO_rawequalObj(), luaV_flttointeger(), luaV_rawequalobj, luaV_tointeger(), mainposition(), mainposition(), nvalue, rawtsvalue, tsvalue, ttype, and ttypetag.
Referenced by addk(), lua_gettable(), lua_rawget(), lua_rawgetp(), lua_settable(), luaH_set(), luaH_set(), luaV_execute(), luaV_finishget(), luaV_finishset(), luaV_finishset(), luaV_gettable(), and luaV_settable().
LUAI_FUNC const TValue * luaH_getint | ( | Table * | t, |
lua_Integer | key ) |
Definition at line 516 of file lua-5.3.6/src/ltable.c.
References absentkey, Table::alimit, Table::array, cast_uint, gkey, gnext, gval, hashint, ivalue, keyisinteger, keyival, l_castS2U, limitequalsasize, luaH_realasize(), luaO_nilobject, Table::sizearray, and ttisinteger.
Referenced by hash_search(), luaH_get(), luaH_getn(), luaH_setint(), and unbound_search().
LUAI_FUNC lua_Unsigned luaH_getn | ( | Table * | t | ) |
Definition at line 560 of file lua-5.1.5/src/ltable.c.
References Table::alimit, Table::array, binsearch(), cast, dummynode, hash_search(), isdummy, isempty, ispow2, ispow2realasize(), limitequalsasize, lua_assert, luaH_getint(), luaH_realasize(), Table::node, setnorealasize, Table::sizearray, ttisnil, unbound_search(), unbound_search(), and unbound_search().
Referenced by lua_objlen(), lua_rawlen(), luaV_execute(), and luaV_objlen().
Definition at line 539 of file lua-5.3.6/src/ltable.c.
References absentkey, eqshrstr, gkey, gnext, gval, hashstr, keyisshrstr, keystrval, lua_assert, LUA_TSHRSTR, LUA_VSHRSTR, luaO_nilobject, tsvalue, and ttisshrstring.
Referenced by luaH_get(), luaH_getstr(), luaT_gettm(), luaT_gettmbyobj(), luaT_objtypename(), and luaV_execute().
Definition at line 455 of file lua-5.1.5/src/ltable.c.
References cast, eqshrstr, getgeneric(), getgeneric(), gkey, gnext, gval, hashstr, lua_assert, LUA_TSHRSTR, LUA_VSHRSTR, luaH_getshortstr(), luaO_nilobject, NULL, rawtsvalue, setsvalue, TString::tsv, ttisshrstring, and ttisstring.
Referenced by auxgetstr(), auxgetstr(), auxsetstr(), auxsetstr(), luaH_get(), luaH_setstr(), luaT_gettm(), luaT_gettmbyobj(), luaV_execute(), luaV_execute(), and luaX_newstring().
Definition at line 368 of file lua-5.2.4/src/ltable.c.
References Table::alimit, Table::array, cast_byte, Table::flags, gco2t, GCObject::h, LUA_TTABLE, LUA_VTABLE, luaC_newobj(), maskflags, Table::metatable, NULL, setnodevector(), setnodevector(), setnodevector(), and Table::sizearray.
Definition at line 654 of file lua-5.4.3/src/ltable.c.
References cast_int, F2Ieq, fltvalue, getfreepos(), gnext, gval, isdummy, isempty, keytt, keyval, lua_assert, luaC_barrierback, luaG_runerror(), luaH_set(), luai_numisnan, luaV_flttointeger(), mainposition(), mainpositionTV(), NULL, obj2gco, rehash(), setempty, setivalue, setnodekey, setobj2t, ttisfloat, ttisnil, and value.
Referenced by luaH_finishset(), and luaH_setint().
Definition at line 162 of file lua-5.1.5/src/ltable.c.
References Table::array, cast_int, cast_num, findindex(), findindex(), findindex(), findindex(), getnodekey, gkey, gnode, gval, isempty, key2tval, luaH_realasize(), s2v, setivalue, setnvalue, setobj2s, Table::sizearray, sizenode, and ttisnil.
Referenced by lua_next().
Definition at line 241 of file lua-5.4.3/src/ltable.c.
References Table::alimit, ispow2, limitequalsasize, and lua_assert.
Referenced by clearbyvalues(), luaH_free(), luaH_getint(), luaH_getn(), luaH_next(), luaV_execute(), setlimittosize(), traverseephemeron(), and traversestrongtable().
Definition at line 347 of file lua-5.3.6/src/ltable.c.
References Table::alimit, allocsizenode, Table::array, auxsetnode(), cast, exchangehashpart(), freehash(), gkey, gval, isempty, LUA_ERRMEM, LUA_OK, luaD_rawrunprotected(), luaD_throw(), luaH_set(), luaH_setint(), luaM_error, luaM_freearray, luaM_reallocvector, AuxsetnodeT::nhsize, Table::node, NULL, reinsert(), setarrayvector(), setempty, setlimittosize(), setnodevector(), setobjt2t, Table::sizearray, AuxsetnodeT::t, and ttisnil.
Referenced by luaH_resizearray(), rehash(), and rehash().
Definition at line 387 of file lua-5.3.6/src/ltable.c.
References allocsizenode, luaH_resize(), and luaH_resize().
Definition at line 813 of file lua-5.4.3/src/ltable.c.
References luaH_finishset(), luaH_get(), and value.
Referenced by luaH_newkey(), and reinsert().
LUAI_FUNC void luaH_setint | ( | lua_State * | L, |
Table * | t, | ||
lua_Integer | key, | ||
TValue * | value ) |
Definition at line 618 of file lua-5.3.6/src/ltable.c.
References cast, isabstkey, luaH_getint(), luaH_newkey(), luaH_newkey(), luaO_nilobject, setivalue, setobj2t, and value.
Referenced by luaH_resize(), and luaH_resize().