MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / luaS_remove

Function luaS_remove

lua/src/lstring.c:164–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

freeobjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected