Searched refs:tsvalue (Results 1 – 16 of 16) sorted by relevance
| /src/contrib/lua/src/ |
| H A D | lvm.c | 99 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 D | ltable.c | 162 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 D | lapi.c | 420 *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 D | ldump.c | 129 dumpString(D, tsvalue(o)); in dumpConstants()
|
| H A D | ltm.c | 97 return getstr(tsvalue(name)); /* use it as type name */ in luaT_objtypename()
|
| H A D | lstate.c | 439 ? getstr(tsvalue(errobj)) in luaE_warnerror()
|
| H A D | lobject.c | 545 return getstr(tsvalue(s2v(L->top.p - 1))); in luaO_pushvfstring()
|
| H A D | lobject.h | 369 #define tsvalue(o) check_exp(ttisstring(o), gco2ts(val_(o).gc)) macro
|
| H A D | luac.c | 321 PrintString(tsvalue(o)); in PrintConstant()
|
| H A D | ldebug.c | 488 *name = getstr(tsvalue(kvalue)); in kname()
|
| H A D | lgc.c | 548 (cast_void(smode = tsvalue(mode)), in traversetable()
|
| H A D | lcode.c | 718 e->k = VKSTR; e->u.strval = tsvalue(v); in const2exp()
|
| H A D | ltests.c | 968 lua_pushinteger(L, tsvalue(obj_at(L, 1))->hash); in hash_query()
|
| /src/sys/contrib/openzfs/module/lua/ |
| H A D | lvm.c | 37 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 D | lobject.h | 155 #define tsvalue(o) (&rawtsvalue(o)->tsv) macro
|
| H A D | lapi.c | 401 if (len != NULL) *len = tsvalue(o)->len; in lua_tolstring() 409 case LUA_TSTRING: return tsvalue(o)->len; in lua_rawlen()
|