Lines Matching refs:TString

32 #define MAXSTRTB	cast_int(luaM_limitN(MAX_INT, TString*))
38 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr()
55 unsigned int luaS_hashlongstr (TString *ts) { in luaS_hashlongstr()
66 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash()
71 TString *p = vect[i]; in tablerehash()
74 TString *hnext = p->u.hnext; /* save next */ in tablerehash()
92 TString **newvect; in luaS_resize()
95 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize()
131 tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*); in luaS_init()
147 static TString *createstrobj (lua_State *L, size_t l, int tag, unsigned int h) { in createstrobj()
148 TString *ts; in createstrobj()
161 TString *luaS_createlngstrobj (lua_State *L, size_t l) { in luaS_createlngstrobj()
162 TString *ts = createstrobj(L, l, LUA_VLNGSTR, G(L)->seed); in luaS_createlngstrobj()
168 void luaS_remove (lua_State *L, TString *ts) { in luaS_remove()
170 TString **p = &tb->hash[lmod(ts->hash, tb->size)]; in luaS_remove()
192 static TString *internshrstr (lua_State *L, const char *str, size_t l) { in internshrstr()
193 TString *ts; in internshrstr()
197 TString **list = &tb->hash[lmod(h, tb->size)]; in internshrstr()
225 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr()
229 TString *ts; in luaS_newlstr()
230 if (l_unlikely(l >= (MAX_SIZE - sizeof(TString))/sizeof(char))) in luaS_newlstr()
245 TString *luaS_new (lua_State *L, const char *str) { in luaS_new()
248 TString **p = G(L)->strcache[i]; in luaS_new()