Home
last modified time | relevance | path

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

/f-stack/freebsd/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.c399 if (len != NULL) *len = tsvalue(o)->len; in lua_tolstring()
407 case LUA_TSTRING: return tsvalue(o)->len; in lua_rawlen()
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlvm.c289 } else if (tsvalue(top-1)->len == 0) /* second op is empty? */ in luaV_concat()
293 size_t tl = tsvalue(top-1)->len; in luaV_concat()
298 size_t l = tsvalue(top-n-1)->len; in luaV_concat()
305 size_t l = tsvalue(top-i)->len; in luaV_concat()
522 setnvalue(ra, cast_num(tsvalue(rb)->len)); in luaV_execute()
H A Dlapi.c356 if (len != NULL) *len = tsvalue(o)->len; in lua_tolstring()
364 case LUA_TSTRING: return tsvalue(o)->len; in lua_objlen()
370 l = (luaV_tostring(L, o) ? tsvalue(o)->len : 0); in lua_objlen()
H A Dlobject.h95 #define tsvalue(o) (&rawtsvalue(o)->tsv) macro