MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / luaS_remove

Function luaS_remove

src/lstring.cpp:191–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

freeobjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected