wearefair-grpc 1.3.1.pre.a → 1.3.1.pre.c

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /* zutil.c -- target dependent utility functions for the compression library
2
- * Copyright (C) 1995-2005, 2010, 2011, 2012 Jean-loup Gailly.
2
+ * Copyright (C) 1995-2017 Jean-loup Gailly
3
3
  * For conditions of distribution and use, see copyright notice in zlib.h
4
4
  */
5
5
 
@@ -10,21 +10,18 @@
10
10
  # include "gzguts.h"
11
11
  #endif
12
12
 
13
- #ifndef NO_DUMMY_DECL
14
- struct internal_state {int dummy;}; /* for buggy compilers */
15
- #endif
16
-
17
13
  z_const char * const z_errmsg[10] = {
18
- "need dictionary", /* Z_NEED_DICT 2 */
19
- "stream end", /* Z_STREAM_END 1 */
20
- "", /* Z_OK 0 */
21
- "file error", /* Z_ERRNO (-1) */
22
- "stream error", /* Z_STREAM_ERROR (-2) */
23
- "data error", /* Z_DATA_ERROR (-3) */
24
- "insufficient memory", /* Z_MEM_ERROR (-4) */
25
- "buffer error", /* Z_BUF_ERROR (-5) */
26
- "incompatible version",/* Z_VERSION_ERROR (-6) */
27
- ""};
14
+ (z_const char *)"need dictionary", /* Z_NEED_DICT 2 */
15
+ (z_const char *)"stream end", /* Z_STREAM_END 1 */
16
+ (z_const char *)"", /* Z_OK 0 */
17
+ (z_const char *)"file error", /* Z_ERRNO (-1) */
18
+ (z_const char *)"stream error", /* Z_STREAM_ERROR (-2) */
19
+ (z_const char *)"data error", /* Z_DATA_ERROR (-3) */
20
+ (z_const char *)"insufficient memory", /* Z_MEM_ERROR (-4) */
21
+ (z_const char *)"buffer error", /* Z_BUF_ERROR (-5) */
22
+ (z_const char *)"incompatible version",/* Z_VERSION_ERROR (-6) */
23
+ (z_const char *)""
24
+ };
28
25
 
29
26
 
30
27
  const char * ZEXPORT zlibVersion()
@@ -61,7 +58,7 @@ uLong ZEXPORT zlibCompileFlags()
61
58
  case 8: flags += 2 << 6; break;
62
59
  default: flags += 3 << 6;
63
60
  }
64
- #ifdef DEBUG
61
+ #ifdef ZLIB_DEBUG
65
62
  flags += 1 << 8;
66
63
  #endif
67
64
  #if defined(ASMV) || defined(ASMINF)
@@ -115,8 +112,8 @@ uLong ZEXPORT zlibCompileFlags()
115
112
  return flags;
116
113
  }
117
114
 
118
- #ifdef DEBUG
119
-
115
+ #ifdef ZLIB_DEBUG
116
+ #include <stdlib.h>
120
117
  # ifndef verbose
121
118
  # define verbose 0
122
119
  # endif
@@ -219,9 +216,11 @@ local ptr_table table[MAX_PTR];
219
216
 
220
217
  voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
221
218
  {
222
- voidpf buf = opaque; /* just to make some compilers happy */
219
+ voidpf buf;
223
220
  ulg bsize = (ulg)items*size;
224
221
 
222
+ (void)opaque;
223
+
225
224
  /* If we allocate less than 65520 bytes, we assume that farmalloc
226
225
  * will return a usable pointer which doesn't have to be normalized.
227
226
  */
@@ -244,6 +243,9 @@ voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
244
243
  void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
245
244
  {
246
245
  int n;
246
+
247
+ (void)opaque;
248
+
247
249
  if (*(ush*)&ptr != 0) { /* object < 64K */
248
250
  farfree(ptr);
249
251
  return;
@@ -259,7 +261,6 @@ void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
259
261
  next_ptr--;
260
262
  return;
261
263
  }
262
- ptr = opaque; /* just to make some compilers happy */
263
264
  Assert(0, "zcfree: ptr not found");
264
265
  }
265
266
 
@@ -278,13 +279,13 @@ void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
278
279
 
279
280
  voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size)
280
281
  {
281
- if (opaque) opaque = 0; /* to make compiler happy */
282
+ (void)opaque;
282
283
  return _halloc((long)items, size);
283
284
  }
284
285
 
285
286
  void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
286
287
  {
287
- if (opaque) opaque = 0; /* to make compiler happy */
288
+ (void)opaque;
288
289
  _hfree(ptr);
289
290
  }
290
291
 
@@ -306,7 +307,7 @@ voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
306
307
  unsigned items;
307
308
  unsigned size;
308
309
  {
309
- if (opaque) items += size - size; /* make compiler happy */
310
+ (void)opaque;
310
311
  return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
311
312
  (voidpf)calloc(items, size);
312
313
  }
@@ -315,8 +316,8 @@ void ZLIB_INTERNAL zcfree (opaque, ptr)
315
316
  voidpf opaque;
316
317
  voidpf ptr;
317
318
  {
319
+ (void)opaque;
318
320
  free(ptr);
319
- if (opaque) return; /* make compiler happy */
320
321
  }
321
322
 
322
323
  #endif /* MY_ZCALLOC */
@@ -1,5 +1,5 @@
1
1
  /* zutil.h -- internal interface and configuration of the compression library
2
- * Copyright (C) 1995-2013 Jean-loup Gailly.
2
+ * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
3
3
  * For conditions of distribution and use, see copyright notice in zlib.h
4
4
  */
5
5
 
@@ -36,7 +36,9 @@
36
36
  #ifndef local
37
37
  # define local static
38
38
  #endif
39
- /* compile with -Dlocal if your debugger can't find static symbols */
39
+ /* since "static" is used to mean two completely different things in C, we
40
+ define "local" for the non-static meaning of "static", for readability
41
+ (compile with -Dlocal if your debugger can't find static symbols) */
40
42
 
41
43
  typedef unsigned char uch;
42
44
  typedef uch FAR uchf;
@@ -98,28 +100,38 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
98
100
  #endif
99
101
 
100
102
  #ifdef AMIGA
101
- # define OS_CODE 0x01
103
+ # define OS_CODE 1
102
104
  #endif
103
105
 
104
106
  #if defined(VAXC) || defined(VMS)
105
- # define OS_CODE 0x02
107
+ # define OS_CODE 2
106
108
  # define F_OPEN(name, mode) \
107
109
  fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
108
110
  #endif
109
111
 
112
+ #ifdef __370__
113
+ # if __TARGET_LIB__ < 0x20000000
114
+ # define OS_CODE 4
115
+ # elif __TARGET_LIB__ < 0x40000000
116
+ # define OS_CODE 11
117
+ # else
118
+ # define OS_CODE 8
119
+ # endif
120
+ #endif
121
+
110
122
  #if defined(ATARI) || defined(atarist)
111
- # define OS_CODE 0x05
123
+ # define OS_CODE 5
112
124
  #endif
113
125
 
114
126
  #ifdef OS2
115
- # define OS_CODE 0x06
127
+ # define OS_CODE 6
116
128
  # if defined(M_I86) && !defined(Z_SOLO)
117
129
  # include <malloc.h>
118
130
  # endif
119
131
  #endif
120
132
 
121
133
  #if defined(MACOS) || defined(TARGET_OS_MAC)
122
- # define OS_CODE 0x07
134
+ # define OS_CODE 7
123
135
  # ifndef Z_SOLO
124
136
  # if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
125
137
  # include <unix.h> /* for fdopen */
@@ -131,18 +143,24 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
131
143
  # endif
132
144
  #endif
133
145
 
134
- #ifdef TOPS20
135
- # define OS_CODE 0x0a
146
+ #ifdef __acorn
147
+ # define OS_CODE 13
136
148
  #endif
137
149
 
138
- #ifdef WIN32
139
- # ifndef __CYGWIN__ /* Cygwin is Unix, not Win32 */
140
- # define OS_CODE 0x0b
141
- # endif
150
+ #if defined(WIN32) && !defined(__CYGWIN__)
151
+ # define OS_CODE 10
152
+ #endif
153
+
154
+ #ifdef _BEOS_
155
+ # define OS_CODE 16
156
+ #endif
157
+
158
+ #ifdef __TOS_OS400__
159
+ # define OS_CODE 18
142
160
  #endif
143
161
 
144
- #ifdef __50SERIES /* Prime/PRIMOS */
145
- # define OS_CODE 0x0f
162
+ #ifdef __APPLE__
163
+ # define OS_CODE 19
146
164
  #endif
147
165
 
148
166
  #if defined(_BEOS_) || defined(RISCOS)
@@ -177,7 +195,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
177
195
  /* common defaults */
178
196
 
179
197
  #ifndef OS_CODE
180
- # define OS_CODE 0x03 /* assume Unix */
198
+ # define OS_CODE 3 /* assume Unix */
181
199
  #endif
182
200
 
183
201
  #ifndef F_OPEN
@@ -216,7 +234,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
216
234
  #endif
217
235
 
218
236
  /* Diagnostic functions */
219
- #ifdef DEBUG
237
+ #ifdef ZLIB_DEBUG
220
238
  # include <stdio.h>
221
239
  extern int ZLIB_INTERNAL z_verbose;
222
240
  extern void ZLIB_INTERNAL z_error OF((char *m));
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wearefair-grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1.pre.a
4
+ version: 1.3.1.pre.c
5
5
  platform: ruby
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2017-05-09 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -790,6 +790,7 @@ files:
790
790
  - src/ruby/lib/grpc/generic/service.rb
791
791
  - src/ruby/lib/grpc/grpc.rb
792
792
  - src/ruby/lib/grpc/grpc_c.bundle
793
+ - src/ruby/lib/grpc/grpc_c.so
793
794
  - src/ruby/lib/grpc/logconfig.rb
794
795
  - src/ruby/lib/grpc/notifier.rb
795
796
  - src/ruby/lib/grpc/version.rb