• Home
  • Raw
  • Download

Lines Matching refs:TString

38 #define MAXSTRTB	cast_int(luaM_limitN(MAX_INT, TString*))
44 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr()
62 unsigned int luaS_hashlongstr (TString *ts) { in luaS_hashlongstr()
74 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash()
79 TString *p = vect[i]; in tablerehash()
82 TString *hnext = p->u.hnext; /* save next */ in tablerehash()
100 TString **newvect; in luaS_resize()
103 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize()
139 tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*); in luaS_init()
155 static TString *createstrobj (lua_State *L, size_t l, int tag, unsigned int h) { in createstrobj()
156 TString *ts; in createstrobj()
169 TString *luaS_createlngstrobj (lua_State *L, size_t l) { in luaS_createlngstrobj()
170 TString *ts = createstrobj(L, l, LUA_VLNGSTR, G(L)->seed); in luaS_createlngstrobj()
176 void luaS_remove (lua_State *L, TString *ts) { in luaS_remove()
178 TString **p = &tb->hash[lmod(ts->hash, tb->size)]; in luaS_remove()
200 static TString *internshrstr (lua_State *L, const char *str, size_t l) { in internshrstr()
201 TString *ts; in internshrstr()
205 TString **list = &tb->hash[lmod(h, tb->size)]; in internshrstr()
233 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr()
237 TString *ts; in luaS_newlstr()
238 if (unlikely(l >= (MAX_SIZE - sizeof(TString))/sizeof(char))) in luaS_newlstr()
253 TString *luaS_new (lua_State *L, const char *str) { in luaS_new()
256 TString **p = G(L)->strcache[i]; in luaS_new()