| 188 | |
| 189 | |
| 190 | void 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 | |
| 200 | static void growstrtab (lua_State *L, stringtable *tb) { |