Lines Matching refs:tb
73 stringtable *tb = &G(L)->strt; in luaS_resize() local
74 if (newsize > tb->size) { /* grow table if needed */ in luaS_resize()
75 luaM_reallocvector(L, tb->hash, tb->size, newsize, TString *); in luaS_resize()
76 for (i = tb->size; i < newsize; i++) in luaS_resize()
77 tb->hash[i] = NULL; in luaS_resize()
79 for (i = 0; i < tb->size; i++) { /* rehash */ in luaS_resize()
80 TString *p = tb->hash[i]; in luaS_resize()
81 tb->hash[i] = NULL; in luaS_resize()
85 p->u.hnext = tb->hash[h]; /* chain it */ in luaS_resize()
86 tb->hash[h] = p; in luaS_resize()
90 if (newsize < tb->size) { /* shrink table if needed */ in luaS_resize()
92 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL); in luaS_resize()
93 luaM_reallocvector(L, tb->hash, tb->size, newsize, TString *); in luaS_resize()
95 tb->size = newsize; in luaS_resize()
155 stringtable *tb = &G(L)->strt; in luaS_remove() local
156 TString **p = &tb->hash[lmod(ts->hash, tb->size)]; in luaS_remove()
160 tb->nuse--; in luaS_remove()