aboutsummaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'zutil.c')
-rw-r--r--zutil.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/zutil.c b/zutil.c
index 6ba16f6..3db9f3d 100644
--- a/zutil.c
+++ b/zutil.c
@@ -117,9 +117,9 @@ uLong ZEXPORT zlibCompileFlags()
117# ifndef verbose 117# ifndef verbose
118# define verbose 0 118# define verbose 0
119# endif 119# endif
120int z_verbose = verbose; 120int ZLIB_INTERNAL z_verbose = verbose;
121 121
122void z_error (m) 122void ZLIB_INTERNAL z_error (m)
123 char *m; 123 char *m;
124{ 124{
125 fprintf(stderr, "%s\n", m); 125 fprintf(stderr, "%s\n", m);
@@ -146,7 +146,7 @@ const char * ZEXPORT zError(err)
146 146
147#ifndef HAVE_MEMCPY 147#ifndef HAVE_MEMCPY
148 148
149void zmemcpy(dest, source, len) 149void ZLIB_INTERNAL zmemcpy(dest, source, len)
150 Bytef* dest; 150 Bytef* dest;
151 const Bytef* source; 151 const Bytef* source;
152 uInt len; 152 uInt len;
@@ -157,7 +157,7 @@ void zmemcpy(dest, source, len)
157 } while (--len != 0); 157 } while (--len != 0);
158} 158}
159 159
160int zmemcmp(s1, s2, len) 160int ZLIB_INTERNAL zmemcmp(s1, s2, len)
161 const Bytef* s1; 161 const Bytef* s1;
162 const Bytef* s2; 162 const Bytef* s2;
163 uInt len; 163 uInt len;
@@ -170,7 +170,7 @@ int zmemcmp(s1, s2, len)
170 return 0; 170 return 0;
171} 171}
172 172
173void zmemzero(dest, len) 173void ZLIB_INTERNAL zmemzero(dest, len)
174 Bytef* dest; 174 Bytef* dest;
175 uInt len; 175 uInt len;
176{ 176{
@@ -213,7 +213,7 @@ local ptr_table table[MAX_PTR];
213 * a protected system like OS/2. Use Microsoft C instead. 213 * a protected system like OS/2. Use Microsoft C instead.
214 */ 214 */
215 215
216voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) 216voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
217{ 217{
218 voidpf buf = opaque; /* just to make some compilers happy */ 218 voidpf buf = opaque; /* just to make some compilers happy */
219 ulg bsize = (ulg)items*size; 219 ulg bsize = (ulg)items*size;
@@ -237,7 +237,7 @@ voidpf zcalloc (voidpf opaque, unsigned items, unsigned size)
237 return buf; 237 return buf;
238} 238}
239 239
240void zcfree (voidpf opaque, voidpf ptr) 240void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
241{ 241{
242 int n; 242 int n;
243 if (*(ush*)&ptr != 0) { /* object < 64K */ 243 if (*(ush*)&ptr != 0) { /* object < 64K */
@@ -272,13 +272,13 @@ void zcfree (voidpf opaque, voidpf ptr)
272# define _hfree hfree 272# define _hfree hfree
273#endif 273#endif
274 274
275voidpf zcalloc (voidpf opaque, uInt items, uInt size) 275voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size)
276{ 276{
277 if (opaque) opaque = 0; /* to make compiler happy */ 277 if (opaque) opaque = 0; /* to make compiler happy */
278 return _halloc((long)items, size); 278 return _halloc((long)items, size);
279} 279}
280 280
281void zcfree (voidpf opaque, voidpf ptr) 281void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
282{ 282{
283 if (opaque) opaque = 0; /* to make compiler happy */ 283 if (opaque) opaque = 0; /* to make compiler happy */
284 _hfree(ptr); 284 _hfree(ptr);
@@ -297,7 +297,7 @@ extern voidp calloc OF((uInt items, uInt size));
297extern void free OF((voidpf ptr)); 297extern void free OF((voidpf ptr));
298#endif 298#endif
299 299
300voidpf zcalloc (opaque, items, size) 300voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
301 voidpf opaque; 301 voidpf opaque;
302 unsigned items; 302 unsigned items;
303 unsigned size; 303 unsigned size;
@@ -307,7 +307,7 @@ voidpf zcalloc (opaque, items, size)
307 (voidpf)calloc(items, size); 307 (voidpf)calloc(items, size);
308} 308}
309 309
310void zcfree (opaque, ptr) 310void ZLIB_INTERNAL zcfree (opaque, ptr)
311 voidpf opaque; 311 voidpf opaque;
312 voidpf ptr; 312 voidpf ptr;
313{ 313{