Home | History | Annotate | Download | only in src

Lines Matching refs:tb

66   stringtable *tb = &G(L)->strt;
69 if (newsize > tb->size) {
70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *);
71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL;
74 for (i=0; i<tb->size; i++) {
75 GCObject *p = tb->hash[i];
76 tb->hash[i] = NULL;
80 gch(p)->next = tb->hash[h]; /* chain it */
81 tb->hash[h] = p;
86 if (newsize < tb->size) {
88 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL);
89 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *);
91 tb->size = newsize;
119 stringtable *tb = &G(L)->strt;
121 if (tb->nuse >= cast(lu_int32, tb->size) && tb->size <= MAX_INT/2)
122 luaS_resize(L, tb->size*2); /* too crowded */
123 list = &tb->hash[lmod(h, tb->size)];
125 tb->nuse++;