diff options
Diffstat (limited to 'inftrees.c')
-rw-r--r-- | inftrees.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -6,7 +6,7 @@ | |||
6 | #include "zutil.h" | 6 | #include "zutil.h" |
7 | #include "inftrees.h" | 7 | #include "inftrees.h" |
8 | 8 | ||
9 | char inflate_copyright[] = " inflate 1.0.2 Copyright 1995-1996 Mark Adler "; | 9 | char inflate_copyright[] = " inflate 1.0.4 Copyright 1995-1996 Mark Adler "; |
10 | /* | 10 | /* |
11 | If you use the zlib library in a product, an acknowledgment is welcome | 11 | If you use the zlib library in a product, an acknowledgment is welcome |
12 | in the documentation of your product. If for some reason you cannot | 12 | in the documentation of your product. If for some reason you cannot |
@@ -30,7 +30,7 @@ local int huft_build OF(( | |||
30 | uIntf *, /* list of extra bits for non-simple codes */ | 30 | uIntf *, /* list of extra bits for non-simple codes */ |
31 | inflate_huft * FAR*,/* result: starting table */ | 31 | inflate_huft * FAR*,/* result: starting table */ |
32 | uIntf *, /* maximum lookup bits (returns actual) */ | 32 | uIntf *, /* maximum lookup bits (returns actual) */ |
33 | z_stream *)); /* for zalloc function */ | 33 | z_streamp )); /* for zalloc function */ |
34 | 34 | ||
35 | local voidpf falloc OF(( | 35 | local voidpf falloc OF(( |
36 | voidpf, /* opaque pointer (not used) */ | 36 | voidpf, /* opaque pointer (not used) */ |
@@ -103,7 +103,7 @@ uIntf *d; /* list of base values for non-simple codes */ | |||
103 | uIntf *e; /* list of extra bits for non-simple codes */ | 103 | uIntf *e; /* list of extra bits for non-simple codes */ |
104 | inflate_huft * FAR *t; /* result: starting table */ | 104 | inflate_huft * FAR *t; /* result: starting table */ |
105 | uIntf *m; /* maximum lookup bits, returns actual */ | 105 | uIntf *m; /* maximum lookup bits, returns actual */ |
106 | z_stream *zs; /* for zalloc function */ | 106 | z_streamp zs; /* for zalloc function */ |
107 | /* Given a list of code lengths and a maximum table size, make a set of | 107 | /* Given a list of code lengths and a maximum table size, make a set of |
108 | tables to decode that set of codes. Return Z_OK on success, Z_BUF_ERROR | 108 | tables to decode that set of codes. Return Z_OK on success, Z_BUF_ERROR |
109 | if the given code set is incomplete (the tables are still built in this | 109 | if the given code set is incomplete (the tables are still built in this |
@@ -302,7 +302,7 @@ int inflate_trees_bits(c, bb, tb, z) | |||
302 | uIntf *c; /* 19 code lengths */ | 302 | uIntf *c; /* 19 code lengths */ |
303 | uIntf *bb; /* bits tree desired/actual depth */ | 303 | uIntf *bb; /* bits tree desired/actual depth */ |
304 | inflate_huft * FAR *tb; /* bits tree result */ | 304 | inflate_huft * FAR *tb; /* bits tree result */ |
305 | z_stream *z; /* for zfree function */ | 305 | z_streamp z; /* for zfree function */ |
306 | { | 306 | { |
307 | int r; | 307 | int r; |
308 | 308 | ||
@@ -327,7 +327,7 @@ uIntf *bl; /* literal desired/actual bit depth */ | |||
327 | uIntf *bd; /* distance desired/actual bit depth */ | 327 | uIntf *bd; /* distance desired/actual bit depth */ |
328 | inflate_huft * FAR *tl; /* literal/length tree result */ | 328 | inflate_huft * FAR *tl; /* literal/length tree result */ |
329 | inflate_huft * FAR *td; /* distance tree result */ | 329 | inflate_huft * FAR *td; /* distance tree result */ |
330 | z_stream *z; /* for zfree function */ | 330 | z_streamp z; /* for zfree function */ |
331 | { | 331 | { |
332 | int r; | 332 | int r; |
333 | 333 | ||
@@ -442,7 +442,7 @@ inflate_huft * FAR *td; /* distance tree result */ | |||
442 | 442 | ||
443 | int inflate_trees_free(t, z) | 443 | int inflate_trees_free(t, z) |
444 | inflate_huft *t; /* table to free */ | 444 | inflate_huft *t; /* table to free */ |
445 | z_stream *z; /* for zfree function */ | 445 | z_streamp z; /* for zfree function */ |
446 | /* Free the malloc'ed tables built by huft_build(), which makes a linked | 446 | /* Free the malloc'ed tables built by huft_build(), which makes a linked |
447 | list of the tables it made, with the links in a dummy first entry of | 447 | list of the tables it made, with the links in a dummy first entry of |
448 | each table. */ | 448 | each table. */ |