diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-04-14 01:42:03 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-04-15 21:17:31 -0700 |
commit | e9d5486e6635141f589e110fd789648aa08e9544 (patch) | |
tree | a78b9ccd92b05af7cd5776b688d9c3eb3a81a40a /zutil.h | |
parent | 5799c14c8526bf1aaa130c021982f831d155b46d (diff) | |
download | zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.gz zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.bz2 zlib-e9d5486e6635141f589e110fd789648aa08e9544.zip |
Remove K&R function definitions from zlib.
C2X has removed K&R definitions from the C function syntax.
Though the standard has not yet been approved, some high-profile
compilers are now issuing warnings when such definitions are
encountered.
Diffstat (limited to 'zutil.h')
-rw-r--r-- | zutil.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -191,9 +191,9 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | |||
191 | /* provide prototypes for these when building zlib without LFS */ | 191 | /* provide prototypes for these when building zlib without LFS */ |
192 | #if !defined(_WIN32) && \ | 192 | #if !defined(_WIN32) && \ |
193 | (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0) | 193 | (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0) |
194 | ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); | 194 | ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t); |
195 | ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); | 195 | ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t); |
196 | ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off_t)); | 196 | ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t); |
197 | #endif | 197 | #endif |
198 | 198 | ||
199 | /* common defaults */ | 199 | /* common defaults */ |
@@ -232,16 +232,16 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | |||
232 | # define zmemzero(dest, len) memset(dest, 0, len) | 232 | # define zmemzero(dest, len) memset(dest, 0, len) |
233 | # endif | 233 | # endif |
234 | #else | 234 | #else |
235 | void ZLIB_INTERNAL zmemcpy OF((Bytef* dest, const Bytef* source, uInt len)); | 235 | void ZLIB_INTERNAL zmemcpy(Bytef* dest, const Bytef* source, uInt len); |
236 | int ZLIB_INTERNAL zmemcmp OF((const Bytef* s1, const Bytef* s2, uInt len)); | 236 | int ZLIB_INTERNAL zmemcmp(const Bytef* s1, const Bytef* s2, uInt len); |
237 | void ZLIB_INTERNAL zmemzero OF((Bytef* dest, uInt len)); | 237 | void ZLIB_INTERNAL zmemzero(Bytef* dest, uInt len); |
238 | #endif | 238 | #endif |
239 | 239 | ||
240 | /* Diagnostic functions */ | 240 | /* Diagnostic functions */ |
241 | #ifdef ZLIB_DEBUG | 241 | #ifdef ZLIB_DEBUG |
242 | # include <stdio.h> | 242 | # include <stdio.h> |
243 | extern int ZLIB_INTERNAL z_verbose; | 243 | extern int ZLIB_INTERNAL z_verbose; |
244 | extern void ZLIB_INTERNAL z_error OF((char *m)); | 244 | extern void ZLIB_INTERNAL z_error(char *m); |
245 | # define Assert(cond,msg) {if(!(cond)) z_error(msg);} | 245 | # define Assert(cond,msg) {if(!(cond)) z_error(msg);} |
246 | # define Trace(x) {if (z_verbose>=0) fprintf x ;} | 246 | # define Trace(x) {if (z_verbose>=0) fprintf x ;} |
247 | # define Tracev(x) {if (z_verbose>0) fprintf x ;} | 247 | # define Tracev(x) {if (z_verbose>0) fprintf x ;} |
@@ -258,9 +258,9 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | |||
258 | #endif | 258 | #endif |
259 | 259 | ||
260 | #ifndef Z_SOLO | 260 | #ifndef Z_SOLO |
261 | voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items, | 261 | voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, |
262 | unsigned size)); | 262 | unsigned size); |
263 | void ZLIB_INTERNAL zcfree OF((voidpf opaque, voidpf ptr)); | 263 | void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr); |
264 | #endif | 264 | #endif |
265 | 265 | ||
266 | #define ZALLOC(strm, items, size) \ | 266 | #define ZALLOC(strm, items, size) \ |