MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaH_new

Function luaH_new

Source/Misc/lua/src/lua.c:9598–9611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9596
9597
9598Table *luaH_new (lua_State *L, int narray, int nhash) {
9599Table *t = luaM_new(L, Table);
9600luaC_link(L, obj2gco(t), LUA_TTABLE);
9601t->metatable = NULL;
9602t->flags = cast_byte(~0);
9603/* temporary values (kept only if some malloc fails) */
9604t->array = NULL;
9605t->sizearray = 0;
9606t->lsizenode = 0;
9607t->node = cast(Node *, dummynode);
9608setarrayvector(L, t, narray);
9609setnodevector(L, t, nhash);
9610return t;
9611}
9612
9613
9614void luaH_free (lua_State *L, Table *t) {

Callers 6

lua_createtableFunction · 0.85
collectvalidlinesFunction · 0.85
adjust_varargsFunction · 0.85
open_funcFunction · 0.85
f_luaopenFunction · 0.85
luaV_executeFunction · 0.85

Calls 3

luaC_linkFunction · 0.85
setarrayvectorFunction · 0.85
setnodevectorFunction · 0.85

Tested by

no test coverage detected