Home
last modified time | relevance | path

Searched refs:tsv (Results 1 – 10 of 10) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlstring.c34 size_t len = a->tsv.len; in luaS_eqlngstr()
35 lua_assert(a->tsv.tt == LUA_TLNGSTR && b->tsv.tt == LUA_TLNGSTR); in luaS_eqlngstr()
37 ((len == b->tsv.len) && /* equal length and ... */ in luaS_eqlngstr()
46 return (a->tsv.tt == b->tsv.tt) && in luaS_eqstr()
47 (a->tsv.tt == LUA_TSHRSTR ? eqshrstr(a, b) : luaS_eqlngstr(a, b)); in luaS_eqstr()
104 ts->tsv.len = l; in createstrobj()
105 ts->tsv.hash = h; in createstrobj()
106 ts->tsv.extra = 0; in createstrobj()
141 if (h == ts->tsv.hash && in internshrstr()
142 l == ts->tsv.len && in internshrstr()
Dlstring.h22 #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT)
28 #define isreserved(s) ((s)->tsv.tt == LUA_TSHRSTR && (s)->tsv.extra > 0)
34 #define eqshrstr(a,b) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b))
Dltable.c53 #define hashstr(t,str) hashpow2(t, (str)->tsv.hash)
103 if (s->tsv.extra == 0) { /* no hash? */ in mainposition()
104 s->tsv.hash = luaS_hash(getstr(s), s->tsv.len, s->tsv.hash); in mainposition()
105 s->tsv.extra = 1; /* now it has its hash */ in mainposition()
468 lua_assert(key->tsv.tt == LUA_TSHRSTR); in luaH_getstr()
Dlobject.h157 #define tsvalue(o) (&rawtsvalue(o)->tsv)
208 val_(io).gc=cast(GCObject *, x_); settt_(io, ctb(x_->tsv.tt)); \
417 } tsv; member
Dlstate.h202 #define gco2ts(o) (&rawgco2ts(o)->tsv)
Dldump.c70 size_t size=s->tsv.len+1; /* include trailing '\0' */ in DumpString()
Dllex.c70 ts->tsv.extra = cast_byte(i+1); /* reserved word */ in luaX_init()
498 return ts->tsv.extra - 1 + FIRST_RESERVED; in llex()
Dluac.c226 size_t i,n=ts->tsv.len; in PrintString()
Dlvm.c211 size_t ll = ls->tsv.len; in l_strcmp()
213 size_t lr = rs->tsv.len; in l_strcmp()
Dlparser.c65 luaX_newstring(ls, getstr(ts), ts->tsv.len); in anchor_token()