hiredis 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiredis/version.rb +1 -1
- data/vendor/hiredis/COPYING +29 -0
- data/vendor/hiredis/Makefile +213 -0
- data/vendor/hiredis/async.c +716 -0
- data/vendor/hiredis/async.h +130 -0
- data/vendor/hiredis/dict.c +338 -0
- data/vendor/hiredis/dict.h +126 -0
- data/vendor/hiredis/fmacros.h +12 -0
- data/vendor/hiredis/hiredis.c +1006 -0
- data/vendor/hiredis/hiredis.h +199 -0
- data/vendor/hiredis/net.c +477 -0
- data/vendor/hiredis/net.h +49 -0
- data/vendor/hiredis/read.c +598 -0
- data/vendor/hiredis/read.h +111 -0
- data/vendor/hiredis/sds.c +1272 -0
- data/vendor/hiredis/sds.h +273 -0
- data/vendor/hiredis/sdsalloc.h +42 -0
- data/vendor/hiredis/test.c +923 -0
- data/vendor/hiredis/win32.h +42 -0
- metadata +19 -1
@@ -0,0 +1,42 @@
|
|
1
|
+
#ifndef _WIN32_HELPER_INCLUDE
|
2
|
+
#define _WIN32_HELPER_INCLUDE
|
3
|
+
#ifdef _MSC_VER
|
4
|
+
|
5
|
+
#ifndef inline
|
6
|
+
#define inline __inline
|
7
|
+
#endif
|
8
|
+
|
9
|
+
#ifndef va_copy
|
10
|
+
#define va_copy(d,s) ((d) = (s))
|
11
|
+
#endif
|
12
|
+
|
13
|
+
#ifndef snprintf
|
14
|
+
#define snprintf c99_snprintf
|
15
|
+
|
16
|
+
__inline int c99_vsnprintf(char* str, size_t size, const char* format, va_list ap)
|
17
|
+
{
|
18
|
+
int count = -1;
|
19
|
+
|
20
|
+
if (size != 0)
|
21
|
+
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
|
22
|
+
if (count == -1)
|
23
|
+
count = _vscprintf(format, ap);
|
24
|
+
|
25
|
+
return count;
|
26
|
+
}
|
27
|
+
|
28
|
+
__inline int c99_snprintf(char* str, size_t size, const char* format, ...)
|
29
|
+
{
|
30
|
+
int count;
|
31
|
+
va_list ap;
|
32
|
+
|
33
|
+
va_start(ap, format);
|
34
|
+
count = c99_vsnprintf(str, size, format, ap);
|
35
|
+
va_end(ap);
|
36
|
+
|
37
|
+
return count;
|
38
|
+
}
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#endif
|
42
|
+
#endif
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiredis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pieter Noordhuis
|
@@ -76,6 +76,24 @@ files:
|
|
76
76
|
- lib/hiredis/ruby/connection.rb
|
77
77
|
- lib/hiredis/ruby/reader.rb
|
78
78
|
- lib/hiredis/version.rb
|
79
|
+
- vendor/hiredis/COPYING
|
80
|
+
- vendor/hiredis/Makefile
|
81
|
+
- vendor/hiredis/async.c
|
82
|
+
- vendor/hiredis/async.h
|
83
|
+
- vendor/hiredis/dict.c
|
84
|
+
- vendor/hiredis/dict.h
|
85
|
+
- vendor/hiredis/fmacros.h
|
86
|
+
- vendor/hiredis/hiredis.c
|
87
|
+
- vendor/hiredis/hiredis.h
|
88
|
+
- vendor/hiredis/net.c
|
89
|
+
- vendor/hiredis/net.h
|
90
|
+
- vendor/hiredis/read.c
|
91
|
+
- vendor/hiredis/read.h
|
92
|
+
- vendor/hiredis/sds.c
|
93
|
+
- vendor/hiredis/sds.h
|
94
|
+
- vendor/hiredis/sdsalloc.h
|
95
|
+
- vendor/hiredis/test.c
|
96
|
+
- vendor/hiredis/win32.h
|
79
97
|
homepage: http://github.com/redis/hiredis-rb
|
80
98
|
licenses:
|
81
99
|
- BSD-3-Clause
|