Lines Matching refs:TValue
233 }TValue; typedef
259 #define setnvalue(obj,x){TValue*i_o=(obj);i_o->value.n=(x);i_o->tt=3;}
260 #define setbvalue(obj,x){TValue*i_o=(obj);i_o->value.b=(x);i_o->tt=1;}
261 #define setsvalue(L,obj,x){TValue*i_o=(obj);i_o->value.gc=cast(GCObject*,(x));i_o->tt=4;checklivene…
262 #define setuvalue(L,obj,x){TValue*i_o=(obj);i_o->value.gc=cast(GCObject*,(x));i_o->tt=7;checklivene…
263 #define setthvalue(L,obj,x){TValue*i_o=(obj);i_o->value.gc=cast(GCObject*,(x));i_o->tt=8;checkliven…
264 #define setclvalue(L,obj,x){TValue*i_o=(obj);i_o->value.gc=cast(GCObject*,(x));i_o->tt=6;checkliven…
265 #define sethvalue(L,obj,x){TValue*i_o=(obj);i_o->value.gc=cast(GCObject*,(x));i_o->tt=5;checklivene…
266 #define setptvalue(L,obj,x){TValue*i_o=(obj);i_o->value.gc=cast(GCObject*,(x));i_o->tt=(8+1);checkl…
267 #define setobj(L,obj1,obj2){const TValue*o2=(obj2);TValue*o1=(obj1);o1->value=o2->value;o1->tt=o2->…
270 typedef TValue*StkId;
293 TValue*k;
321 TValue*v;
323 TValue value;
333 TValue upvalue[1];
350 TValue tvk;
353 TValue i_val;
361 TValue*array;
370 static const TValue luaO_nilobject_;
375 static const TValue*luaT_gettm(Table*events,TMS event,TString*ename);
455 TValue l_registry;
482 TValue l_gt;
483 TValue env;
515 static void luaG_typeerror(lua_State*L,const TValue*o,
518 #define luaD_checkstack(L,n)if((char*)L->stack_last-(char*)L->top<=(n)*(int)sizeof(TValue))luaD_gro…
521 #define restorestack(L,n)((TValue*)((char*)L->stack+(n)))
599 static int luaV_equalval(lua_State*L,const TValue*t1,const TValue*t2);
600 static const TValue*luaV_tonumber(const TValue*obj,TValue*n);
604 static const TValue luaO_nilobject_={{NULL},0};
634 static int luaO_rawequalObj(const TValue*t1,const TValue*t2){ in luaO_rawequalObj()
769 static TValue*luaH_setnum(lua_State*L,Table*t,int key);
770 static const TValue*luaH_getstr(Table*t,TString*key);
771 static TValue*luaH_set(lua_State*L,Table*t,const TValue*key);
791 static const TValue*luaT_gettm(Table*events,TMS event,TString*ename){
792 const TValue*tm=luaH_getstr(events,ename);
799 static const TValue*luaT_gettmbyobj(lua_State*L,const TValue*o,TMS event){
813 #define sizeCclosure(n)(cast(int,sizeof(CClosure))+cast(int,sizeof(TValue)*((n)-1)))
814 #define sizeLclosure(n)(cast(int,sizeof(LClosure))+cast(int,sizeof(TValue*)*((n)-1)))
916 luaM_freearray(L,f->k,f->sizek,TValue);
1050 static void correctstack(lua_State*L,TValue*oldstack){
1064 TValue*oldstack=L->stack;
1066 luaM_reallocvector(L,L->stack,L->stacksize,realsize,TValue);
1113 const TValue*tm=luaT_gettmbyobj(L,func,TM_CALL);
1356 static Node*mainposition(const Table*t,const TValue*key){
1370 static int arrayindex(const TValue*key){
1438 static int countint(const TValue*key,int*nums){
1485 luaM_reallocvector(L,t->array,t->sizearray,size,TValue);
1527 luaM_reallocvector(L,t->array,oldasize,nasize,TValue);
1541 static void rehash(lua_State*L,Table*t,const TValue*ek){
1571 luaM_freearray(L,t->array,t->sizearray,TValue);
1581 static TValue*newkey(lua_State*L,Table*t,const TValue*key){
1608 static const TValue*luaH_getnum(Table*t,int key){
1622 static const TValue*luaH_getstr(Table*t,TString*key){
1631 static const TValue*luaH_get(Table*t,const TValue*key){
1653 static TValue*luaH_set(lua_State*L,Table*t,const TValue*key){
1654 const TValue*p=luaH_get(t,key);
1657 return cast(TValue*,p);
1665 static TValue*luaH_setnum(lua_State*L,Table*t,int key){
1666 const TValue*p=luaH_getnum(t,key);
1668 return cast(TValue*,p);
1670 TValue k;
1675 static TValue*luaH_setstr(lua_State*L,Table*t,TString*key){
1676 const TValue*p=luaH_getstr(t,key);
1678 return cast(TValue*,p);
1680 TValue k;
1816 const TValue*mode;
1917 return sizeof(Table)+sizeof(TValue)*h->sizearray+
1934 return sizeof(lua_State)+sizeof(TValue)*th->stacksize+
1943 sizeof(TValue)*p->sizek+
1956 static int iscleared(const TValue*o,int iskey){
1971 TValue*o=&h->array[i];
2045 const TValue*tm;
2268 L1->stack=luaM_newvector(L,(2*20)+5,TValue);
2279 luaM_freearray(L,L1->stack,L1->stacksize,TValue);
2531 static int isinstack(CallInfo*ci,const TValue*o){
2537 static void luaG_typeerror(lua_State*L,const TValue*o,const char*op){
2553 static void luaG_aritherror(lua_State*L,const TValue*p1,const TValue*p2){
2554 TValue temp;
2559 static int luaG_ordererror(lua_State*L,const TValue*p1,const TValue*p2){
2724 TValue*o=luaH_setstr(L,ls->fs->h,ts);
3142 static int addk(FuncState*fs,TValue*k,TValue*v){
3144 TValue*idx=luaH_set(L,fs->h,k);
3152 luaM_growvector(L,f->k,fs->nk,f->sizek,TValue,
3161 TValue o;
3166 TValue o;
3171 TValue o;
3176 TValue k,v;
3909 luaM_reallocvector(L,f->k,f->sizek,fs->nk,TValue);
4688 static const TValue*luaV_tonumber(const TValue*obj,TValue*n){
4709 static void callTMres(lua_State*L,StkId res,const TValue*f,
4710 const TValue*p1,const TValue*p2){
4722 static void callTM(lua_State*L,const TValue*f,const TValue*p1,
4723 const TValue*p2,const TValue*p3){
4732 static void luaV_gettable(lua_State*L,const TValue*t,TValue*key,StkId val){
4735 const TValue*tm;
4738 const TValue*res=luaH_get(h,key);
4755 static void luaV_settable(lua_State*L,const TValue*t,TValue*key,StkId val){
4757 TValue temp;
4759 const TValue*tm;
4762 TValue*oldval=luaH_set(L,h,key);
4782 static int call_binTM(lua_State*L,const TValue*p1,const TValue*p2,
4784 const TValue*tm=luaT_gettmbyobj(L,p1,event);
4791 static const TValue*get_compTM(lua_State*L,Table*mt1,Table*mt2,
4793 const TValue*tm1=fasttm(L,mt1,event);
4794 const TValue*tm2;
4803 static int call_orderTM(lua_State*L,const TValue*p1,const TValue*p2,
4805 const TValue*tm1=luaT_gettmbyobj(L,p1,event);
4806 const TValue*tm2;
4833 static int luaV_lessthan(lua_State*L,const TValue*l,const TValue*r){
4845 static int lessequal(lua_State*L,const TValue*l,const TValue*r){
4859 static int luaV_equalval(lua_State*L,const TValue*t1,const TValue*t2){
4860 const TValue*tm;
4914 static void Arith(lua_State*L,StkId ra,const TValue*rb,
4915 const TValue*rc,TMS op){
4916 TValue tempb,tempc;
4917 const TValue*b,*c;
4943 #define arith_op(op,tm){TValue*rb=RKB(i);TValue*rc=RKC(i);if(ttisnumber(rb)&&ttisnumber(rc)){lua_Nu…
4947 TValue*k;
4973 TValue*rb=RB(i);
4985 TValue g;
4986 TValue*rb=KBx(i);
4996 TValue g;
5049 TValue*rb=RB(i);
5065 const TValue*rb=RB(i);
5096 TValue*rb=RKB(i);
5097 TValue*rc=RKC(i);
5128 TValue*rb=RB(i);
5211 const TValue*init=ra;
5212 const TValue*plimit=ra+1;
5213 const TValue*pstep=ra+2;
5257 TValue*val=ra+n;
5313 static TValue*index2adr(lua_State*L,int idx){
5315 TValue*o=L->base+(idx-1);
5317 if(o>=L->top)return cast(TValue*,(&luaO_nilobject_));
5337 :cast(TValue*,(&luaO_nilobject_));
5433 TValue n;
5434 const TValue*o=index2adr(L,idx);
5457 TValue n;
5458 const TValue*o=index2adr(L,idx);
5465 TValue n;
5466 const TValue*o=index2adr(L,idx);
5477 const TValue*o=index2adr(L,idx);
5587 TValue key;
5613 const TValue*obj;
5667 TValue key;
5694 TValue*obj;