MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaS_remove

Function luaS_remove

third-party/lua-5.4.6/src/lstring.c:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165void luaS_remove (lua_State *L, TString *ts) {
166 stringtable *tb = &G(L)->strt;
167 TString **p = &tb->hash[lmod(ts->hash, tb->size)];
168 while (*p != ts) /* find previous element */
169 p = &(*p)->u.hnext;
170 *p = (*p)->u.hnext; /* remove element from its list */
171 tb->nuse--;
172}
173
174
175static void growstrtab (lua_State *L, stringtable *tb) {

Callers 1

freeobjFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected