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

Function luaS_remove

third-party/lua-5.5.0/src/lstring.c:190–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189
190void luaS_remove (lua_State *L, TString *ts) {
191 stringtable *tb = &G(L)->strt;
192 TString **p = &tb->hash[lmod(ts->hash, tb->size)];
193 while (*p != ts) /* find previous element */
194 p = &(*p)->u.hnext;
195 *p = (*p)->u.hnext; /* remove element from its list */
196 tb->nuse--;
197}
198
199
200static void growstrtab (lua_State *L, stringtable *tb) {

Callers 1

freeobjFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected