Lines Matching refs:ts
247 #define rawtsvalue(o)check_exp(ttisstring(o),&(o)->value.gc->ts)
280 #define getstr(ts)cast(const char*,(ts)+1) argument
492 union TString ts; member
500 #define rawgco2ts(o)check_exp((o)->gch.tt==4,&((o)->ts))
1285 TString*ts;
1289 ts=cast(TString*,luaM_malloc(L,(l+1)*sizeof(char)+sizeof(TString)));
1290 ts->tsv.len=l;
1291 ts->tsv.hash=h;
1292 ts->tsv.marked=luaC_white(G(L));
1293 ts->tsv.tt=4;
1294 ts->tsv.reserved=0;
1295 memcpy(ts+1,str,l*sizeof(char));
1296 ((char*)(ts+1))[l]='\0';
1299 ts->tsv.next=tb->hash[h];
1300 tb->hash[h]=obj2gco(ts);
1304 return ts;
1316 TString*ts=rawgco2ts(o);
1317 if(ts->tsv.len==l&&(memcmp(str,getstr(ts),l)==0)){
1319 return ts;
2235 TString*ts;
2686 TString*ts=luaS_new(L,luaX_tokens[i]);
2687 luaS_fix(ts);
2688 ts->tsv.reserved=cast_byte(i+1);
2723 TString*ts=luaS_newlstr(L,str,l);
2724 TValue*o=luaH_setstr(L,ls->fs->h,ts);
2729 return ts;
2819 seminfo->ts=luaX_newstring(ls,luaZ_buffer(ls->buff)+(2+sep),
2873 seminfo->ts=luaX_newstring(ls,luaZ_buffer(ls->buff)+1,
2962 TString*ts;
2966 ts=luaX_newstring(ls,luaZ_buffer(ls->buff),
2968 if(ts->tsv.reserved>0)
2969 return ts->tsv.reserved-1+257;
2971 seminfo->ts=ts;
3669 TString*ts=ls->t.seminfo.ts;
3670 luaX_newstring(ls,getstr(ts),ts->tsv.len);
3712 TString*ts;
3714 ts=ls->t.seminfo.ts;
3716 return ts;
4115 codestring(ls,&args,ls->t.seminfo.ts);
4197 codestring(ls,v,ls->t.seminfo.ts);