Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
hanoi2005
redis
提交
d6ede8b3
R
redis
项目概览
hanoi2005
/
redis
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d6ede8b3
编写于
6月 11, 2015
作者:
E
Enrico Giordani
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moved RedisLog.* to Win32_Interop and renamed to Win32_RedisLog.*
Deleted unused file msvs/RedisLog.h
上级
13f36c88
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
16 addition
and
56 deletion
+16
-56
msvs/RedisLog.h
msvs/RedisLog.h
+0
-37
src/Win32_Interop/Win32_FDAPI.cpp
src/Win32_Interop/Win32_FDAPI.cpp
+1
-1
src/Win32_Interop/Win32_Interop.vcxproj
src/Win32_Interop/Win32_Interop.vcxproj
+5
-6
src/Win32_Interop/Win32_QFork.cpp
src/Win32_Interop/Win32_QFork.cpp
+1
-2
src/Win32_Interop/Win32_RedisLog.c
src/Win32_Interop/Win32_RedisLog.c
+5
-5
src/Win32_Interop/Win32_RedisLog.h
src/Win32_Interop/Win32_RedisLog.h
+0
-0
src/Win32_Interop/Win32_service.cpp
src/Win32_Interop/Win32_service.cpp
+1
-1
src/redis.c
src/redis.c
+0
-1
src/redis.h
src/redis.h
+3
-3
未找到文件。
msvs/RedisLog.h
已删除
100644 → 0
浏览文件 @
13f36c88
/*
* Copyright (c), Microsoft Open Technologies, Inc.
* 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.
* 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 HOLDER 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.
*/
#pragma once
/* Log levels */
#define REDIS_DEBUG 0
#define REDIS_VERBOSE 1
#define REDIS_NOTICE 2
#define REDIS_WARNING 3
#define REDIS_LOG_RAW (1<<10)
/* Modifier to log without timestamp */
#define REDIS_MAX_LOGMSG_LEN 1024
/* Default maximum length of syslog messages */
void
redisLog
(
int
level
,
const
char
*
fmt
,
...);
void
redisLogRaw
(
int
level
,
const
char
*
msg
);
void
redisLogFromHandler
(
int
level
,
const
char
*
msg
);
void
SetVerbosity
(
int
verbosity
);
\ No newline at end of file
src/Win32_Interop/Win32_FDAPI.cpp
浏览文件 @
d6ede8b3
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "Win32_ANSI.h"
#include "Win32_ANSI.h"
#include "win32_util.h"
#include "win32_util.h"
#include <string>
#include <string>
#include "
..\r
edisLog.h"
#include "
Win32_R
edisLog.h"
using
namespace
std
;
using
namespace
std
;
#define CATCH_AND_REPORT() catch(const std::exception &){::redisLog(REDIS_WARNING, "FDAPI: std exception");}catch(...){::redisLog(REDIS_WARNING, "FDAPI: other exception");}
#define CATCH_AND_REPORT() catch(const std::exception &){::redisLog(REDIS_WARNING, "FDAPI: std exception");}catch(...){::redisLog(REDIS_WARNING, "FDAPI: other exception");}
...
...
src/Win32_Interop/Win32_Interop.vcxproj
浏览文件 @
d6ede8b3
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
</ProjectConfiguration>
</ProjectConfiguration>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ClCompile
Include=
"..\RedisLog.c"
/>
<ClCompile
Include=
"win32fixes.c"
/>
<ClCompile
Include=
"win32fixes.c"
/>
<ClCompile
Include=
"Win32_ANSI.c"
/>
<ClCompile
Include=
"Win32_ANSI.c"
/>
<ClCompile
Include=
"Win32_CommandLine.cpp"
/>
<ClCompile
Include=
"Win32_CommandLine.cpp"
/>
...
@@ -29,6 +28,7 @@
...
@@ -29,6 +28,7 @@
<ClCompile
Include=
"Win32_fdapi_crt.cpp"
/>
<ClCompile
Include=
"Win32_fdapi_crt.cpp"
/>
<ClCompile
Include=
"Win32_QFork.cpp"
/>
<ClCompile
Include=
"Win32_QFork.cpp"
/>
<ClCompile
Include=
"Win32_QFork_impl.c"
/>
<ClCompile
Include=
"Win32_QFork_impl.c"
/>
<ClCompile
Include=
"Win32_RedisLog.c"
/>
<ClCompile
Include=
"win32_rfdmap.cpp"
/>
<ClCompile
Include=
"win32_rfdmap.cpp"
/>
<ClCompile
Include=
"Win32_service.cpp"
/>
<ClCompile
Include=
"Win32_service.cpp"
/>
<ClCompile
Include=
"win32_util.c"
/>
<ClCompile
Include=
"win32_util.c"
/>
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
<ClCompile
Include=
"win32_wsiocp.c"
/>
<ClCompile
Include=
"win32_wsiocp.c"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ClInclude
Include=
"..\redisLog.h"
/>
<ClInclude
Include=
"win32fixes.h"
/>
<ClInclude
Include=
"win32fixes.h"
/>
<ClInclude
Include=
"Win32_ANSI.h"
/>
<ClInclude
Include=
"Win32_ANSI.h"
/>
<ClInclude
Include=
"Win32_CommandLine.h"
/>
<ClInclude
Include=
"Win32_CommandLine.h"
/>
...
@@ -46,9 +45,11 @@
...
@@ -46,9 +45,11 @@
<ClInclude
Include=
"Win32_fdapi_crt.h"
/>
<ClInclude
Include=
"Win32_fdapi_crt.h"
/>
<ClInclude
Include=
"Win32_QFork.h"
/>
<ClInclude
Include=
"Win32_QFork.h"
/>
<ClInclude
Include=
"Win32_QFork_impl.h"
/>
<ClInclude
Include=
"Win32_QFork_impl.h"
/>
<ClInclude
Include=
"Win32_RedisLog.h"
/>
<ClInclude
Include=
"win32_rfdmap.h"
/>
<ClInclude
Include=
"win32_rfdmap.h"
/>
<ClInclude
Include=
"Win32_Service.h"
/>
<ClInclude
Include=
"Win32_Service.h"
/>
<ClInclude
Include=
"Win32_SmartHandle.h"
/>
<ClInclude
Include=
"Win32_SmartHandle.h"
/>
<ClInclude
Include=
"win32_types.h"
/>
<ClInclude
Include=
"win32_util.h"
/>
<ClInclude
Include=
"win32_util.h"
/>
<ClInclude
Include=
"Win32_variadicFunctor.h"
/>
<ClInclude
Include=
"Win32_variadicFunctor.h"
/>
<ClInclude
Include=
"win32_winapifamily.h"
/>
<ClInclude
Include=
"win32_winapifamily.h"
/>
...
@@ -150,8 +151,7 @@ link.exe -dll -noentry resources/EventLog.res -out:$(TargetDir)EventLog.dll
...
@@ -150,8 +151,7 @@ link.exe -dll -noentry resources/EventLog.res -out:$(TargetDir)EventLog.dll
</Link>
</Link>
<Lib>
<Lib>
<IgnoreSpecificDefaultLibraries>
MSVCRT
</IgnoreSpecificDefaultLibraries>
<IgnoreSpecificDefaultLibraries>
MSVCRT
</IgnoreSpecificDefaultLibraries>
<AdditionalDependencies>
<AdditionalDependencies>
DbgHelp.lib;%(AdditionalDependencies)
</AdditionalDependencies>
</AdditionalDependencies>
</Lib>
</Lib>
</ItemDefinitionGroup>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
...
@@ -198,8 +198,7 @@ link.exe -dll -noentry resources/EventLog.res -out:$(TargetDir)EventLog.dll
...
@@ -198,8 +198,7 @@ link.exe -dll -noentry resources/EventLog.res -out:$(TargetDir)EventLog.dll
<OptimizeReferences>
true
</OptimizeReferences>
<OptimizeReferences>
true
</OptimizeReferences>
</Link>
</Link>
<Lib>
<Lib>
<AdditionalDependencies>
<AdditionalDependencies>
DbgHelp.lib;%(AdditionalDependencies)
</AdditionalDependencies>
</AdditionalDependencies>
</Lib>
</Lib>
</ItemDefinitionGroup>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
...
...
src/Win32_Interop/Win32_QFork.cpp
浏览文件 @
d6ede8b3
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
*/
*/
#include "win32_types.h"
#include "win32_types.h"
#include "Win32_FDAPI.h"
#include "Win32_FDAPI.h"
#include <Windows.h>
#include <Windows.h>
...
@@ -42,7 +41,7 @@
...
@@ -42,7 +41,7 @@
#include "Win32_SmartHandle.h"
#include "Win32_SmartHandle.h"
#include "Win32_Service.h"
#include "Win32_Service.h"
#include "Win32_CommandLine.h"
#include "Win32_CommandLine.h"
#include "
..\r
edisLog.h"
#include "
Win32_R
edisLog.h"
#include <vector>
#include <vector>
#include <map>
#include <map>
...
...
src/RedisLog.c
→
src/
Win32_Interop/Win32_
RedisLog.c
浏览文件 @
d6ede8b3
...
@@ -20,16 +20,16 @@
...
@@ -20,16 +20,16 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "
win32_Interop/w
in32_types.h"
#include "
W
in32_types.h"
#include "
r
edisLog.h"
#include "
Win32_R
edisLog.h"
#include <stdio.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdarg.h>
#include <malloc.h>
#include <malloc.h>
#include <string.h>
#include <string.h>
#include <process.h>
#include <process.h>
#include "redis.h"
#include "
../
redis.h"
#include "
win32_Interop/w
in32Fixes.h"
#include "
W
in32Fixes.h"
#include "
win32_Interop/
Win32_EventLog.h"
#include "Win32_EventLog.h"
#include <time.h>
#include <time.h>
#include <assert.h>
#include <assert.h>
...
...
src/
r
edisLog.h
→
src/
Win32_Interop/Win32_R
edisLog.h
浏览文件 @
d6ede8b3
文件已移动
src/Win32_Interop/Win32_service.cpp
浏览文件 @
d6ede8b3
...
@@ -68,7 +68,7 @@ this should preceed the other arguments passed to redis. For instance:
...
@@ -68,7 +68,7 @@ this should preceed the other arguments passed to redis. For instance:
#include <sstream>
#include <sstream>
#include <vector>
#include <vector>
#include <iostream>
#include <iostream>
#include "
..\r
edisLog.h"
#include "
Win32_R
edisLog.h"
#include "Win32_CommandLine.h"
#include "Win32_CommandLine.h"
using
namespace
std
;
using
namespace
std
;
...
...
src/redis.c
浏览文件 @
d6ede8b3
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#ifdef _WIN32
#ifdef _WIN32
#include <locale.h>
#include <locale.h>
#define LOG_LOCAL0 0
#define LOG_LOCAL0 0
#include "redisLog.h"
#else
#else
#include <sys/wait.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <arpa/inet.h>
...
...
src/redis.h
浏览文件 @
d6ede8b3
...
@@ -73,7 +73,7 @@ typedef PORT_LONGLONG mstime_t; /* millisecond time type. */
...
@@ -73,7 +73,7 @@ typedef PORT_LONGLONG mstime_t; /* millisecond time type. */
#include "latency.h"
/* Latency monitor API */
#include "latency.h"
/* Latency monitor API */
#include "sparkline.h"
/* ASII graphs API */
#include "sparkline.h"
/* ASII graphs API */
#include "
r
edisLog.h"
/* moved logging for hiredis and RedisCli usage /*
#include "
Win32_Interop/Win32_R
edisLog.h"
/* moved logging for hiredis and RedisCli usage /*
/* Error codes */
/* Error codes */
#define REDIS_OK 0
#define REDIS_OK 0
...
@@ -94,7 +94,7 @@ typedef PORT_LONGLONG mstime_t; /* millisecond time type. */
...
@@ -94,7 +94,7 @@ typedef PORT_LONGLONG mstime_t; /* millisecond time type. */
#define REDIS_SHARED_INTEGERS 10000
#define REDIS_SHARED_INTEGERS 10000
#define REDIS_SHARED_BULKHDR_LEN 32
#define REDIS_SHARED_BULKHDR_LEN 32
#ifdef _WIN32
#ifdef _WIN32
// see
r
edisLog.h
// see
Win32_R
edisLog.h
#else
#else
#define REDIS_MAX_LOGMSG_LEN 1024
/* Default maximum length of syslog messages */
#define REDIS_MAX_LOGMSG_LEN 1024
/* Default maximum length of syslog messages */
#endif
#endif
...
@@ -307,7 +307,7 @@ typedef PORT_LONGLONG mstime_t; /* millisecond time type. */
...
@@ -307,7 +307,7 @@ typedef PORT_LONGLONG mstime_t; /* millisecond time type. */
#define REDIS_SORTKEY_MAX 1024
#define REDIS_SORTKEY_MAX 1024
#ifdef _WIN32
#ifdef _WIN32
// see
r
edisLog.h
// see
Win32_R
edisLog.h
#else
#else
/* Log levels */
/* Log levels */
#define REDIS_DEBUG 0
#define REDIS_DEBUG 0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录