| /redis-3.2.3/deps/lua/src/ |
| H A D | lopcodes.h | 82 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP)))) 86 ((cast(Instruction, u)<<POS_A)&MASK1(SIZE_A,POS_A)))) 90 ((cast(Instruction, b)<<POS_B)&MASK1(SIZE_B,POS_B)))) 94 ((cast(Instruction, b)<<POS_C)&MASK1(SIZE_C,POS_C)))) 98 ((cast(Instruction, b)<<POS_Bx)&MASK1(SIZE_Bx,POS_Bx)))) 105 | (cast(Instruction, a)<<POS_A) \ 106 | (cast(Instruction, b)<<POS_B) \ 107 | (cast(Instruction, c)<<POS_C)) 110 | (cast(Instruction, a)<<POS_A) \ 111 | (cast(Instruction, bc)<<POS_Bx)) [all …]
|
| H A D | llimits.h | 74 #ifndef cast 75 #define cast(t, exp) ((t)(exp)) macro 78 #define cast_byte(i) cast(lu_byte, (i)) 79 #define cast_num(i) cast(lua_Number, (i)) 80 #define cast_int(i) cast(int, (i))
|
| H A D | lmem.h | 20 ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ 29 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) 31 cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 35 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 38 ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t))))
|
| H A D | lfunc.h | 14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 cast(int, sizeof(TValue)*((n)-1))) 17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 cast(int, sizeof(TValue *)*((n)-1)))
|
| H A D | lstring.c | 56 ts = cast(TString *, luaM_malloc(L, (l+1)*sizeof(char)+sizeof(TString))); in newlstr() 69 if (tb->nuse > cast(lu_int32, tb->size) && tb->size <= MAX_INT/2) in newlstr() 77 unsigned int h = cast(unsigned int, l); /* seed */ in luaS_newlstr() 81 h = h ^ ((h<<5)+(h>>2)+cast(unsigned char, str[l1-1])); in luaS_newlstr() 100 u = cast(Udata *, luaM_malloc(L, s + sizeof(Udata))); in luaS_newudata()
|
| H A D | lobject.h | 130 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TSTRING; \ 135 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TUSERDATA; \ 140 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTHREAD; \ 145 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TFUNCTION; \ 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; \ 210 #define getstr(ts) cast(const char *, (ts) + 1) 356 (check_exp((size&(size-1))==0, (cast(int, (s) & ((size)-1)))))
|
| H A D | lzio.h | 20 #define char2int(c) cast(int, cast(unsigned char, (c)))
|
| H A D | ltable.c | 275 t->node = cast(Node *, dummynode); /* use common `dummynode' */ in setnodevector() 367 t->node = cast(Node *, dummynode); in luaH_new() 437 if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) in luaH_getnum() 498 return cast(TValue *, p); in luaH_set() 511 return cast(TValue *, p); in luaH_setnum() 523 return cast(TValue *, p); in luaH_setstr() 539 if (j > cast(unsigned int, MAX_INT)) { /* overflow? */ in unbound_search()
|
| H A D | lgc.h | 27 #define resetbits(x,m) ((x) &= cast(lu_byte, ~(m))) 77 #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS)
|
| H A D | lstate.c | 28 #define fromstate(l) (cast(lu_byte *, (l)) - LUAI_EXTRASPACE) 29 #define tostate(l) (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE))
|
| H A D | lobject.c | 97 while (isspace(cast(unsigned char, *endptr))) endptr++; in luaO_str2d() 128 buff[0] = cast(char, va_arg(argp, int)); in luaO_pushvfstring()
|
| H A D | ldebug.h | 14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
|
| H A D | llex.h | 36 #define NUM_RESERVED (cast(int, TK_WHILE-FIRST_RESERVED+1))
|
| H A D | lfunc.c | 24 Closure *c = cast(Closure *, luaM_malloc(L, sizeCclosure(nelems))); in luaF_newCclosure() 34 Closure *c = cast(Closure *, luaM_malloc(L, sizeLclosure(nelems))); in luaF_newLclosure()
|
| H A D | lstate.h | 162 #define obj2gco(v) (cast(GCObject *, (v)))
|
| H A D | lapi.c | 53 if (o >= L->top) return cast(TValue *, luaO_nilobject); in index2adr() 73 : cast(TValue *, luaO_nilobject); in index2adr() 799 struct CallS *c = cast(struct CallS *, ud); in f_call() 838 struct CCallS *c = cast(struct CCallS *, ud); in f_Ccall() 927 lu_mem a = (cast(lu_mem, data) << 10); in lua_gc()
|
| H A D | llex.c | 60 b->buffer[b->n++] = cast(char, c); in save() 80 lua_assert(token == cast(unsigned char, token)); in luaX_token2str()
|
| H A D | ldo.c | 385 StkId firstArg = cast(StkId, ud); in resume() 495 struct SParser *p = cast(struct SParser *, ud); in f_parser()
|
| H A D | lgc.c | 434 if (g->strt.nuse < cast(lu_int32, g->strt.size/4) && in checkSizes()
|
| H A D | lcode.c | 827 luaK_code(fs, cast(Instruction, c), fs->ls->lastline); in luaK_setlist()
|
| H A D | lparser.c | 163 fs->actvar[fs->nactvar+n] = cast(unsigned short, registerlocalvar(ls, name)); in new_localvar()
|