Home
last modified time | relevance | path

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

/redis-3.2.3/deps/lua/src/
H A Dlobject.h43 #define CommonHeader GCObject *next; lu_byte tt; lu_byte marked
71 #define TValuefields Value value; int tt
90 #define ttype(o) ((o)->tt)
117 #define setnilvalue(obj) ((obj)->tt=LUA_TNIL)
120 { TValue *i_o=(obj); i_o->value.n=(x); i_o->tt=LUA_TNUMBER; }
130 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TSTRING; \
140 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTHREAD; \
150 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTABLE; \
155 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TPROTO; \
163 o1->value = o2->value; o1->tt=o2->tt; \
[all …]
H A Dlstate.h149 #define rawgco2ts(o) check_exp((o)->gch.tt == LUA_TSTRING, &((o)->ts))
151 #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u))
153 #define gco2cl(o) check_exp((o)->gch.tt == LUA_TFUNCTION, &((o)->cl))
154 #define gco2h(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h))
155 #define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p))
156 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
158 check_exp((o) == NULL || (o)->gch.tt == LUA_TUPVAL, &((o)->uv))
159 #define gco2th(o) check_exp((o)->gch.tt == LUA_TTHREAD, &((o)->th))
H A Dlstring.c60 ts->tsv.tt = LUA_TSTRING; in newlstr()
102 u->uv.tt = LUA_TUSERDATA; in luaS_newudata()
H A Dlgc.c72 switch (o->gch.tt) { in reallymarkobject()
281 switch (o->gch.tt) { in propagatemark()
379 switch (o->gch.tt) { in freeobj()
412 if (curr->gch.tt == LUA_TTHREAD) /* sweep open upvalues of each thread */ in sweeplist()
685 void luaC_link (lua_State *L, GCObject *o, lu_byte tt) { in luaC_link() argument
690 o->gch.tt = tt; in luaC_link()
H A Dlgc.h104 LUAI_FUNC void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
H A Dltable.c425 gkey(mp)->value = key->value; gkey(mp)->tt = key->tt; in newkey()
H A Dlfunc.c68 uv->tt = LUA_TUPVAL; in luaF_findupval()
H A Dlstate.c152 L->tt = LUA_TTHREAD; in lua_newstate()