MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaS_remove

Function luaS_remove

depends/lua/src/lstring.c:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153
154void luaS_remove (lua_State *L, TString *ts) {
155 stringtable *tb = &G(L)->strt;
156 TString **p = &tb->hash[lmod(ts->hash, tb->size)];
157 while (*p != ts) /* find previous element */
158 p = &(*p)->u.hnext;
159 *p = (*p)->u.hnext; /* remove element from its list */
160 tb->nuse--;
161}
162
163
164/*

Callers 1

freeobjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected