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 /deflate.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 'deflate.h')
-rw-r--r-- | deflate.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -291,14 +291,14 @@ typedef struct internal_state { | |||
291 | memory checker errors from longest match routines */ | 291 | memory checker errors from longest match routines */ |
292 | 292 | ||
293 | /* in trees.c */ | 293 | /* in trees.c */ |
294 | void ZLIB_INTERNAL _tr_init OF((deflate_state *s)); | 294 | void ZLIB_INTERNAL _tr_init(deflate_state *s); |
295 | int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); | 295 | int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc); |
296 | void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, | 296 | void ZLIB_INTERNAL _tr_flush_block(deflate_state *s, charf *buf, |
297 | ulg stored_len, int last)); | 297 | ulg stored_len, int last); |
298 | void ZLIB_INTERNAL _tr_flush_bits OF((deflate_state *s)); | 298 | void ZLIB_INTERNAL _tr_flush_bits(deflate_state *s); |
299 | void ZLIB_INTERNAL _tr_align OF((deflate_state *s)); | 299 | void ZLIB_INTERNAL _tr_align(deflate_state *s); |
300 | void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, | 300 | void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf, |
301 | ulg stored_len, int last)); | 301 | ulg stored_len, int last); |
302 | 302 | ||
303 | #define d_code(dist) \ | 303 | #define d_code(dist) \ |
304 | ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) | 304 | ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) |