Home
last modified time | relevance | path

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

/src/contrib/lua/src/
H A Dlvm.c99 TString *st = tsvalue(obj); in l_strton()
534 return l_strcmp(tsvalue(l), tsvalue(r)) < 0; in lessthanothers()
556 return l_strcmp(tsvalue(l), tsvalue(r)) <= 0; in lessequalothers()
598 case LUA_VSHRSTR: return eqshrstr(tsvalue(t1), tsvalue(t2)); in luaV_equalobj()
599 case LUA_VLNGSTR: return luaS_eqlngstr(tsvalue(t1), tsvalue(t2)); in luaV_equalobj()
632 #define isemptystr(o) (ttisshrstring(o) && tsvalue(o)->shrlen == 0)
638 TString *st = tsvalue(s2v(top - n)); in copy2buff()
666 size_t tl = tsslen(tsvalue(s2v(top - 1))); in luaV_concat()
670 size_t l = tsslen(tsvalue(s2v(top - n - 1))); in luaV_concat()
708 setivalue(s2v(ra), tsvalue(rb)->shrlen); in luaV_objlen()
[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()
805 case LUA_VSHRSTR: return luaH_getshortstr(t, tsvalue(key)); in luaH_get()
H A Dlapi.c420 *len = tsslen(tsvalue(o)); in lua_tolstring()
422 return getstr(tsvalue(o)); in lua_tolstring()
429 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 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 Dlstate.c439 ? getstr(tsvalue(errobj)) in luaE_warnerror()
H A Dlobject.c545 return getstr(tsvalue(s2v(L->top.p - 1))); in luaO_pushvfstring()
H A Dlobject.h369 #define tsvalue(o) check_exp(ttisstring(o), gco2ts(val_(o).gc)) macro
H A Dluac.c321 PrintString(tsvalue(o)); in PrintConstant()
H A Dldebug.c488 *name = getstr(tsvalue(kvalue)); in kname()
H A Dlgc.c548 (cast_void(smode = tsvalue(mode)), in traversetable()
H A Dlcode.c718 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()
/src/sys/contrib/openzfs/module/lua/
H A Dlvm.c37 if (ttisstring(obj) && luaO_str2d(svalue(obj), tsvalue(obj)->len, &num)) { in luaV_tonumber()
303 else if (tsvalue(top-1)->len == 0) /* second operand is empty? */ in luaV_concat()
305 else if (ttisstring(top-2) && tsvalue(top-2)->len == 0) { in luaV_concat()
310 size_t tl = tsvalue(top-1)->len; in luaV_concat()
315 size_t l = tsvalue(top-i-1)->len; in luaV_concat()
324 size_t l = tsvalue(top-i)->len; in luaV_concat()
347 setnvalue(ra, cast_num(tsvalue(rb)->len)); in luaV_objlen()
H A Dlobject.h155 #define tsvalue(o) (&rawtsvalue(o)->tsv) macro
H A Dlapi.c401 if (len != NULL) *len = tsvalue(o)->len; in lua_tolstring()
409 case LUA_TSTRING: return tsvalue(o)->len; in lua_rawlen()