aboutsummaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-04-14 01:42:03 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-04-15 21:17:31 -0700
commite9d5486e6635141f589e110fd789648aa08e9544 (patch)
treea78b9ccd92b05af7cd5776b688d9c3eb3a81a40a /deflate.h
parent5799c14c8526bf1aaa130c021982f831d155b46d (diff)
downloadzlib-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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/deflate.h b/deflate.h
index 1a06cd5..8696791 100644
--- a/deflate.h
+++ b/deflate.h
@@ -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 */
294void ZLIB_INTERNAL _tr_init OF((deflate_state *s)); 294void ZLIB_INTERNAL _tr_init(deflate_state *s);
295int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); 295int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc);
296void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, 296void ZLIB_INTERNAL _tr_flush_block(deflate_state *s, charf *buf,
297 ulg stored_len, int last)); 297 ulg stored_len, int last);
298void ZLIB_INTERNAL _tr_flush_bits OF((deflate_state *s)); 298void ZLIB_INTERNAL _tr_flush_bits(deflate_state *s);
299void ZLIB_INTERNAL _tr_align OF((deflate_state *s)); 299void ZLIB_INTERNAL _tr_align(deflate_state *s);
300void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, 300void 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)])