Lines Matching refs:TString
28 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*))
34 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr()
51 unsigned int luaS_hashlongstr (TString *ts) { in luaS_hashlongstr()
62 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash()
67 TString *p = vect[i]; in tablerehash()
70 TString *hnext = p->u.hnext; /* save next */ in tablerehash()
88 TString **newvect; in luaS_resize()
91 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize()
127 tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*); in luaS_init()
143 static TString *createstrobj (lua_State *L, size_t l, int tag, unsigned int h) { in createstrobj()
144 TString *ts; in createstrobj()
157 TString *luaS_createlngstrobj (lua_State *L, size_t l) { in luaS_createlngstrobj()
158 TString *ts = createstrobj(L, l, LUA_VLNGSTR, G(L)->seed); in luaS_createlngstrobj()
164 void luaS_remove (lua_State *L, TString *ts) { in luaS_remove()
166 TString **p = &tb->hash[lmod(ts->hash, tb->size)]; in luaS_remove()
188 static TString *internshrstr (lua_State *L, const char *str, size_t l) { in internshrstr()
189 TString *ts; in internshrstr()
193 TString **list = &tb->hash[lmod(h, tb->size)]; in internshrstr()
221 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr()
225 TString *ts; in luaS_newlstr()
226 if (l_unlikely(l >= (MAX_SIZE - sizeof(TString))/sizeof(char))) in luaS_newlstr()
241 TString *luaS_new (lua_State *L, const char *str) { in luaS_new()
244 TString **p = G(L)->strcache[i]; in luaS_new()