| /redis-3.2.3/src/ |
| H A D | object.c | 40 robj *o = zmalloc(sizeof(*o)); in createObject() local 48 return o; in createObject() 79 return o; in createEmbeddedStringObject() 97 robj *o; in createStringObjectFromLongLong() local 110 return o; in createStringObjectFromLongLong() 188 return o; in createQuicklistObject() 195 return o; in createZiplistObject() 221 robj *o; in createZsetObject() local 375 if (!sdsEncodedObject(o)) return o; in tryObjectEncoding() 380 if (o->refcount > 1) return o; in tryObjectEncoding() [all …]
|
| H A D | Makefile | 120 …o quicklist.o ae.o anet.o dict.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o… 121 REDIS_GEOHASH_OBJ=../deps/geohash-int/geohash.o ../deps/geohash-int/geohash_helper.o 123 REDIS_CLI_OBJ=anet.o adlist.o redis-cli.o zmalloc.o release.o anet.o ae.o crc64.o 125 REDIS_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o adlist.o zmalloc.o redis-benchmark.o 128 REDIS_CHECK_AOF_OBJ=redis-check-aof.o 187 $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o $(FINAL_LIBS) 200 %.o: %.c .make-prerequisites 204 …) $(REDIS_BENCHMARK_NAME) $(REDIS_CHECK_RDB_NAME) $(REDIS_CHECK_AOF_NAME) *.o *.gcda *.gcno *.gcov…
|
| H A D | t_hash.c | 456 o->ptr,ziplistBlobLen(o->ptr)); in hashTypeConvertZiplist() 488 robj *o; in hsetCommand() local 501 robj *o; in hsetnxCommand() local 519 robj *o; in hmsetCommand() local 648 robj *o; in hgetCommand() local 657 robj *o; in hmgetCommand() local 663 if (o != NULL && o->type != OBJ_HASH) { in hmgetCommand() 675 robj *o; in hdelCommand() local 703 robj *o; in hlenCommand() local 712 robj *o; in hstrlenCommand() local [all …]
|
| H A D | t_string.c | 158 robj *o; in getGenericCommand() local 185 robj *o; in setrangeCommand() local 230 o = dbUnshareStringValue(c->db,c->argv[1],o); in setrangeCommand() 234 o->ptr = sdsgrowzero(o->ptr,offset+sdslen(value)); in setrangeCommand() 245 robj *o; in getrangeCommand() local 346 if (o != NULL && checkType(c,o,OBJ_STRING)) return; in incrDecrCommand() 357 if (o && o->refcount == 1 && o->encoding == OBJ_ENCODING_INT && in incrDecrCommand() 406 if (o != NULL && checkType(c,o,OBJ_STRING)) return; in incrbyfloatCommand() 417 if (o) in incrbyfloatCommand() 458 o = dbUnshareStringValue(c->db,c->argv[1],o); in appendCommand() [all …]
|
| H A D | hyperloglog.c | 656 o->ptr = sdsMakeRoomFor(o->ptr,3); in hllSparseAdd() 1090 robj *o; in createHLLObject() local 1118 return o; in createHLLObject() 1169 o = dbUnshareStringValue(c->db,c->argv[1],o); in pfaddCommand() 1196 robj *o; in pfcountCommand() local 1243 o = dbUnshareStringValue(c->db,c->argv[1],o); in pfcountCommand() 1320 o = dbUnshareStringValue(c->db,c->argv[1],o); in pfmergeCommand() 1450 if (o) decrRefCount(o); in pfselftestCommand() 1458 robj *o; in pfdebugCommand() local 1467 o = dbUnshareStringValue(c->db,c->argv[2],o); in pfdebugCommand() [all …]
|
| H A D | rdb.c | 442 decrRefCount(o); in rdbGenericLoadStringObject() 445 return o; in rdbGenericLoadStringObject() 526 switch (o->type) { in rdbSaveObjectType() 604 dict *set = o->ptr; in rdbSaveObject() 633 zset *zs = o->ptr; in rdbSaveObject() 983 o = tryObjectEncoding(o); in rdbLoadObject() 1025 o->ptr = intsetAdd(o->ptr,llval,NULL); in rdbLoadObject() 1048 zs = o->ptr; in rdbLoadObject() 1100 o->ptr = ziplistPush(o->ptr, field->ptr, sdslen(field->ptr), ZIPLIST_TAIL); in rdbLoadObject() 1101 o->ptr = ziplistPush(o->ptr, value->ptr, sdslen(value->ptr), ZIPLIST_TAIL); in rdbLoadObject() [all …]
|
| H A D | bitops.c | 480 o = dbUnshareStringValue(c->db,c->argv[1],o); in lookupStringForBitCommand() 481 o->ptr = sdsgrowzero(o->ptr,byte+1); in lookupStringForBitCommand() 483 return o; in lookupStringForBitCommand() 505 if (o && o->encoding == OBJ_ENCODING_INT) { in getObjectReadOnlyString() 508 } else if (o) { in getObjectReadOnlyString() 519 robj *o; in setbitCommand() local 558 robj *o; in getbitCommand() local 759 robj *o; in bitcountCommand() local 808 robj *o; in bitposCommand() local 904 robj *o; in bitfieldCommand() local [all …]
|
| H A D | db.c | 144 return o; in lookupKeyReadOrReply() 150 return o; in lookupKeyWriteOrReply() 267 if (o->refcount != 1 || o->encoding != OBJ_ENCODING_RAW) { in dbUnshareStringValue() 273 return o; in dbUnshareStringValue() 502 serverAssert(o == NULL || o->type == OBJ_SET || o->type == OBJ_HASH || in scanGenericCommand() 587 } else if (o->type == OBJ_HASH || o->type == OBJ_ZSET) { in scanGenericCommand() 639 if (o && (o->type == OBJ_ZSET || o->type == OBJ_HASH)) { in scanGenericCommand() 684 robj *o; in typeCommand() local 732 robj *o; in renameGenericCommand() local 782 robj *o; in moveCommand() local [all …]
|
| H A D | t_list.c | 162 serverAssertWithInfo(NULL,o,sdsEncodedObject(o)); in listTypeEqual() 163 return quicklistCompare(entry->entry.zi,o->ptr,sdslen(o->ptr)); in listTypeEqual() 301 if (o == NULL || checkType(c,o,OBJ_LIST)) return; in llenCommand() 307 if (o == NULL || checkType(c,o,OBJ_LIST)) return; in lindexCommand() 334 if (o == NULL || checkType(c,o,OBJ_LIST)) return; in lsetCommand() 360 if (o == NULL || checkType(c,o,OBJ_LIST)) return; in popGenericCommand() 390 robj *o; in lrangeCommand() local 436 robj *o; in ltrimCommand() local 811 if (o != NULL && o->type == OBJ_LIST) { in handleClientsBlockedOnLists() 872 robj *o; in blockingPopGenericCommand() local [all …]
|
| H A D | Makefile.dep | 1 adlist.o: adlist.c adlist.h zmalloc.h 3 ae_epoll.o: ae_epoll.c 4 ae_evport.o: ae_evport.c 5 ae_kqueue.o: ae_kqueue.c 6 ae_select.o: ae_select.c 7 anet.o: anet.c fmacros.h anet.h 40 crc64.o: crc64.c 67 lzf_c.o: lzf_c.c lzfP.h 68 lzf_d.o: lzf_d.c lzfP.h 86 pqsort.o: pqsort.c [all …]
|
| H A D | debug.c | 72 o = getDecodedObject(o); in xorObjectDigest() 73 xorDigest(digest,o->ptr,sdslen(o->ptr)); in xorObjectDigest() 74 decrRefCount(o); in xorObjectDigest() 102 o = getDecodedObject(o); in mixObjectDigest() 103 mixDigest(digest,o->ptr,sdslen(o->ptr)); in mixObjectDigest() 104 decrRefCount(o); in mixObjectDigest() 137 robj *keyobj, *o; in computeDatasetDigest() local 146 o = dictGetVal(de); in computeDatasetDigest() 596 if (o->type == OBJ_STRING && sdsEncodedObject(o)) { in serverLogObjectDebugInfo() 599 sds repr = sdscatrepr(sdsempty(),o->ptr,sdslen(o->ptr)); in serverLogObjectDebugInfo() [all …]
|
| H A D | aof.c | 452 robj *o; in catAppendOnlyGenericCommand() local 461 o = getDecodedObject(argv[j]); in catAppendOnlyGenericCommand() 467 dst = sdscatlen(dst,o->ptr,sdslen(o->ptr)); in catAppendOnlyGenericCommand() 469 decrRefCount(o); in catAppendOnlyGenericCommand() 791 quicklist *list = o->ptr; in rewriteListObject() 872 unsigned char *zl = o->ptr; in rewriteSortedSetObject() 907 zset *zs = o->ptr; in rewriteSortedSetObject() 971 hi = hashTypeInitIterator(o); in rewriteHashObject() 1057 robj key, *o; in rewriteAppendOnlyFile() local 1061 o = dictGetVal(de); in rewriteAppendOnlyFile() [all …]
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lobject.h | 90 #define ttype(o) ((o)->tt) argument 91 #define gcvalue(o) check_exp(iscollectable(o), (o)->value.gc) argument 92 #define pvalue(o) check_exp(ttislightuserdata(o), (o)->value.p) argument 93 #define nvalue(o) check_exp(ttisnumber(o), (o)->value.n) argument 94 #define rawtsvalue(o) check_exp(ttisstring(o), &(o)->value.gc->ts) argument 96 #define rawuvalue(o) check_exp(ttisuserdata(o), &(o)->value.gc->u) argument 98 #define clvalue(o) check_exp(ttisfunction(o), &(o)->value.gc->cl) argument 99 #define hvalue(o) check_exp(ttistable(o), &(o)->value.gc->h) argument 100 #define bvalue(o) check_exp(ttisboolean(o), (o)->value.b) argument 101 #define thvalue(o) check_exp(ttisthread(o), &(o)->value.gc->th) argument [all …]
|
| H A D | lstate.h | 149 #define rawgco2ts(o) check_exp((o)->gch.tt == LUA_TSTRING, &((o)->ts)) argument 150 #define gco2ts(o) (&rawgco2ts(o)->tsv) argument 151 #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u)) argument 152 #define gco2u(o) (&rawgco2u(o)->uv) argument 153 #define gco2cl(o) check_exp((o)->gch.tt == LUA_TFUNCTION, &((o)->cl)) argument 154 #define gco2h(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h)) argument 155 #define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p)) argument 156 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv)) argument 157 #define ngcotouv(o) \ argument 158 check_exp((o) == NULL || (o)->gch.tt == LUA_TUPVAL, &((o)->uv)) [all …]
|
| H A D | Makefile | 26 CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \ 27 lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \ 28 lundump.o lvm.o lzio.o strbuf.o fpconv.o 29 LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o \ 30 lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o \ 31 lua_bit.o 34 LUA_O= lua.o 37 LUAC_O= luac.o print.o 47 o: $(ALL_O) target 127 lauxlib.o: lauxlib.c lua.h luaconf.h lauxlib.h [all …]
|
| H A D | lgc.c | 52 #define markvalue(g,o) { checkconsistency(o); \ argument 53 if (iscollectable(o) && iswhite(gcvalue(o))) reallymarkobject(g,gcvalue(o)); } 70 lua_assert(iswhite(o) && !isdead(g, o)); in reallymarkobject() 71 white2gray(o); in reallymarkobject() 257 StkId o, lim; in traversestack() local 265 for (o = l->stack; o < l->top; o++) in traversestack() 267 for (; o <= lim; o++) in traversestack() 344 (ttisuserdata(o) && (!iskey && isfinalized(uvalue(o)))); in iscleared() 391 luaM_freemem(L, o, sizestring(gco2ts(o))); in freeobj() 395 luaM_freemem(L, o, sizeudata(gco2u(o))); in freeobj() [all …]
|
| H A D | lapi.c | 204 StkId o; in lua_replace() local 244 return (o == luaO_nilobject) ? LUA_TNONE : ttype(o); in lua_type() 275 return (ttisuserdata(o) || ttislightuserdata(o)); in lua_isuserdata() 370 l = (luaV_tostring(L, o) ? tsvalue(o)->len : 0); in lua_objlen() 381 return (!iscfunction(o)) ? NULL : clvalue(o)->c.f; in lua_tocfunction() 397 return (!ttisthread(o)) ? NULL : thvalue(o); in lua_tothread() 568 StkId o; in lua_rawgeti() local 617 StkId o; in lua_getfenv() local 685 StkId o; in lua_rawseti() local 735 StkId o; in lua_setfenv() local [all …]
|
| H A D | lvm.h | 16 #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) argument 18 #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ argument 19 (((o) = luaV_tonumber(o,n)) != NULL))
|
| H A D | print.c | 53 const TValue* o=&f->k[i]; in PrintConstant() local 54 switch (ttype(o)) in PrintConstant() 60 printf(bvalue(o) ? "true" : "false"); in PrintConstant() 63 printf(LUA_NUMBER_FMT,nvalue(o)); in PrintConstant() 66 PrintString(rawtsvalue(o)); in PrintConstant() 69 printf("? type=%d",ttype(o)); in PrintConstant() 81 OpCode o=GET_OPCODE(i); in PrintCode() local 90 printf("%-9s\t",luaP_opnames[o]); in PrintCode() 91 switch (getOpMode(o)) in PrintCode() 102 if (o==OP_JMP) printf("%d",sbx); else printf("%d %d",a,sbx); in PrintCode() [all …]
|
| H A D | ltm.c | 61 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { in luaT_gettmbyobj() argument 63 switch (ttype(o)) { in luaT_gettmbyobj() 65 mt = hvalue(o)->metatable; in luaT_gettmbyobj() 68 mt = uvalue(o)->metatable; in luaT_gettmbyobj() 71 mt = G(L)->mt[ttype(o)]; in luaT_gettmbyobj()
|
| H A D | lstring.c | 76 GCObject *o; in luaS_newlstr() local 82 for (o = G(L)->strt.hash[lmod(h, G(L)->strt.size)]; in luaS_newlstr() 83 o != NULL; in luaS_newlstr() 84 o = o->gch.next) { in luaS_newlstr() 85 TString *ts = rawgco2ts(o); in luaS_newlstr() 88 if (isdead(G(L), o)) changewhite(o); in luaS_newlstr()
|
| /redis-3.2.3/deps/geohash-int/ |
| H A D | Makefile | 12 all: geohash.o geohash_helper.o 16 geohash.o: geohash.h geohash.c 17 geohash_helper.o: geohash.h geohash_helper.h geohash_helper.c 19 .c.o: 23 rm -f *.o
|
| /redis-3.2.3/deps/hiredis/ |
| H A D | Makefile | 6 OBJ=net.o hiredis.o sds.o async.o 60 net.o: net.c fmacros.h net.h hiredis.h 61 async.o: async.c async.h hiredis.h sds.h dict.c dict.h 62 hiredis.o: hiredis.c fmacros.h hiredis.h net.h sds.h 63 sds.o: sds.c sds.h 64 test.o: test.c hiredis.h 88 …$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. -I$(AE_DIR) $< $(AE_DIR)/ae.o $(AE_DIR)/zmalloc.o $(AE_DIR)/… 105 hiredis-test: test.o $(STLIBNAME) 117 .c.o: 121 rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) examples/hiredis-example* *.o *.gcda *.gcno *.gcov
|
| /redis-3.2.3/deps/linenoise/ |
| H A D | Makefile | 12 linenoise.o: linenoise.h linenoise.c 14 linenoise_example: linenoise.o example.o 17 .c.o: 21 rm -f linenoise_example *.o
|
| /redis-3.2.3/tests/support/ |
| H A D | util.tcl | 264 set o {} 272 append o [csvstring [{*}$r get $k]] "\n" 276 append o [csvstring $e] , 278 append o "\n" 282 append o [csvstring $e] , 284 append o "\n" 288 append o [csvstring $e] , 290 append o "\n" 300 append o [csvstring [lindex $kv 0]] , 303 append o "\n" [all …]
|