| 162 | |
| 163 | |
| 164 | void 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 | |
| 174 | static void growstrtab (lua_State *L, stringtable *tb) { |