MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaS_remove

Function luaS_remove

lib/lua/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.85

Calls 1

GFunction · 0.50

Tested by

no test coverage detected