资源简介
使用Qt Creator作为Linux IDE,实现Redis源码编译和断点调试
代码片段和文件信息
/*
* Copyright (c) 2009-2011 Salvatore Sanfilippo
* Copyright (c) 2010-2011 Pieter Noordhuis
*
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Redis nor the names of its contributors may be used
* to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR
* CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN
* CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include “fmacros.h“
#include
#include
#include
#include
#include
#include
#include “async.h“
#include “net.h“
#include “dict.c“
#include “sds.h“
#define _EL_ADD_READ(ctx) do { \
if ((ctx)->ev.addRead) (ctx)->ev.addRead((ctx)->ev.data); \
} while(0)
#define _EL_DEL_READ(ctx) do { \
if ((ctx)->ev.delRead) (ctx)->ev.delRead((ctx)->ev.data); \
} while(0)
#define _EL_ADD_WRITE(ctx) do { \
if ((ctx)->ev.addWrite) (ctx)->ev.addWrite((ctx)->ev.data); \
} while(0)
#define _EL_DEL_WRITE(ctx) do { \
if ((ctx)->ev.delWrite) (ctx)->ev.delWrite((ctx)->ev.data); \
} while(0)
#define _EL_CLEANUP(ctx) do { \
if ((ctx)->ev.cleanup) (ctx)->ev.cleanup((ctx)->ev.data); \
} while(0);
/* Forward declaration of function in hiredis.c */
void __redisAppendCommand(redisContext *c char *cmd size_t len);
/* Functions managing dictionary of callbacks for pub/sub. */
static unsigned int callbackHash(const void *key) {
return dictGenHashFunction((unsigned char*)keysdslen((char*)key));
}
static void *callbackValDup(void *privdata const void *src) {
((void) privdata);
redisCallback *dup = malloc(sizeof(*dup));
memcpy(dupsrcsizeof(*dup));
return dup;
}
static int callba
相关资源
- Hadoop The Definitive Guide 4th Edition.pdf
- redis-desktop-manager-0.8.3 for mac
- redis设计与实现第二版 高清完整PDF版
- OpenGL光照测试Revision演示程序
- CRRedist2005_x86.msi 和 CRREdist2005_x86_chs.
- control system design guide.pdf
- redis-desktop-manager-0.8.3.3850官方最新版
- WebGL Programming Guide Interactive 3D Graphic
- Video DownloadHelper的合作安装应用vdhCo
- mac net.downloadhelper.coapp-1.3.0.zip
- 室内环境检测系统.zip
- esp8266 V2.5.2--arduino IDE添加esp8266开发板
- MQTT单片机编程小工具(技小新).zi
- 基于Qt实现的物流管理系统
- Qt随机迷宫及路径获取
- MQTT客户端
- qt 基于QAudioRecorder实现的录音以及基于
- UFT(QTP 11.5)使用教程 完整中文版
- VS2012 Qt5 winpcap win64 抓包工具 http协议
- qtCodeTools.rar
- Redis入门指南+第2版高清完整带目录
- Redis实战PDF高清版
- OpenCV 3.42 for Qt 5编译好的库
- qt tcp 一个服务端对多个客户端
- 蓝讯SDK开发_工具链及IDE_包含RV32-Too
- Windows环境下供Qt使用的OpenCV库 (已经
- QtXlsxWriter和ActivePerl
- opencv_ffmpeg.rar
- 英伟达 最新的Video_Codec_SDK_9.0.20 sdk
- Qt播放视频代码,VS项目
评论
共有 条评论