Home
last modified time | relevance | path

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

/netbsd-src/external/mit/lua/dist/src/
H A Dlvm.c562 return l_strcmp(tsvalue(l), tsvalue(r)) < 0;
589 return l_strcmp(tsvalue(l), tsvalue(r)) <= 0;
633 case LUA_VSHRSTR: return eqshrstr(tsvalue(t1), tsvalue(t2));
634 case LUA_VLNGSTR: return luaS_eqlngstr(tsvalue(t1), tsvalue(t2));
667 #define isemptystr(o) (ttisshrstring(o) && tsvalue(o)->shrlen == 0)
742 setivalue(s2v(ra), tsvalue(rb)->shrlen);
746 setivalue(s2v(ra), tsvalue(rb)->u.lnglen);
1342 TString *key = tsvalue(rc); /* key must be a string */
1385 TString *key = tsvalue(rc); /* key must be a string */
1398 TString *key = tsvalue(rb); /* key must be a string */
[all …]
H A Dltable.c170 TString *ts = tsvalue(key); in mainpositionTV()
174 TString *ts = tsvalue(key); in mainpositionTV()
242 return luaS_eqlngstr(tsvalue(k1), keystrval(n2)); in equalkey()
804 case LUA_VSHRSTR: return luaH_getshortstr(t, tsvalue(key)); in luaH_get()
H A Dlobject.h381 #define tsvalue(o) check_exp(ttisstring(o), gco2ts(val_(o).gc)) macro
419 #define svalue(o) getstr(tsvalue(o))
425 #define vslen(o) tsslen(tsvalue(o))
H A Dldump.c142 dumpString(D, tsvalue(o)); in dumpConstants()
H A Dltm.c106 return getstr(tsvalue(name)); /* use it as type name */ in luaT_objtypename()
H A Dlapi.c437 case LUA_VSHRSTR: return tsvalue(o)->shrlen; in lua_rawlen()
438 case LUA_VLNGSTR: return tsvalue(o)->u.lnglen; in lua_rawlen()
1254 if (ttisshrstring(errobj) && eqshrstr(tsvalue(errobj), G(L)->memerrmsg)) in lua_error()
H A Dluac.c327 PrintString(tsvalue(o)); in PrintConstant()
H A Dlcode.c723 e->k = VKSTR; e->u.strval = tsvalue(v); in const2exp()