Home
last modified time | relevance | path

Searched refs:tsvalue (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/lua/src/
H A Dlvm.c527 return l_strcmp(tsvalue(l), tsvalue(r)) < 0; in lessthanothers()
549 return l_strcmp(tsvalue(l), tsvalue(r)) <= 0; in lessequalothers()
591 case LUA_VSHRSTR: return eqshrstr(tsvalue(t1), tsvalue(t2)); in luaV_equalobj()
592 case LUA_VLNGSTR: return luaS_eqlngstr(tsvalue(t1), tsvalue(t2)); in luaV_equalobj()
625 #define isemptystr(o) (ttisshrstring(o) && tsvalue(o)->shrlen == 0)
700 setivalue(s2v(ra), tsvalue(rb)->shrlen); in luaV_objlen()
704 setivalue(s2v(ra), tsvalue(rb)->u.lnglen); in luaV_objlen()
1260 TString *key = tsvalue(rc); /* key must be a string */ in luaV_execute()
1303 TString *key = tsvalue(rc); /* key must be a string */ in luaV_execute()
1316 TString *key = tsvalue(rb); /* key must be a string */ in luaV_execute()
[all …]
H A Dltable.c162 TString *ts = tsvalue(key); in mainpositionTV()
166 TString *ts = tsvalue(key); in mainpositionTV()
232 return luaS_eqlngstr(tsvalue(k1), keystrval(n2)); in equalkey()
790 case LUA_VSHRSTR: return luaH_getshortstr(t, tsvalue(key)); in luaH_get()
H A Dlobject.h369 #define tsvalue(o) check_exp(ttisstring(o), gco2ts(val_(o).gc)) macro
407 #define svalue(o) getstr(tsvalue(o))
413 #define vslen(o) tsslen(tsvalue(o))
H A Dldump.c129 dumpString(D, tsvalue(o)); in dumpConstants()
H A Dltm.c97 return getstr(tsvalue(name)); /* use it as type name */ in luaT_objtypename()
H A Dlapi.c429 case LUA_VSHRSTR: return tsvalue(o)->shrlen; in lua_rawlen()
430 case LUA_VLNGSTR: return tsvalue(o)->u.lnglen; in lua_rawlen()
1244 if (ttisshrstring(errobj) && eqshrstr(tsvalue(errobj), G(L)->memerrmsg)) in lua_error()
H A Dluac.c321 PrintString(tsvalue(o)); in PrintConstant()
H A Dlcode.c717 e->k = VKSTR; e->u.strval = tsvalue(v); in const2exp()
H A Dltests.c968 lua_pushinteger(L, tsvalue(obj_at(L, 1))->hash); in hash_query()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlvm.c36 if (ttisstring(obj) && luaO_str2d(svalue(obj), tsvalue(obj)->len, &num)) { in luaV_tonumber()
302 else if (tsvalue(top-1)->len == 0) /* second operand is empty? */ in luaV_concat()
304 else if (ttisstring(top-2) && tsvalue(top-2)->len == 0) { in luaV_concat()
309 size_t tl = tsvalue(top-1)->len; in luaV_concat()
314 size_t l = tsvalue(top-i-1)->len; in luaV_concat()
323 size_t l = tsvalue(top-i)->len; in luaV_concat()
346 setnvalue(ra, cast_num(tsvalue(rb)->len)); in luaV_objlen()
H A Dlobject.h154 #define tsvalue(o) (&rawtsvalue(o)->tsv) macro
H A Dlapi.c400 if (len != NULL) *len = tsvalue(o)->len; in lua_tolstring()
408 case LUA_TSTRING: return tsvalue(o)->len; in lua_rawlen()