diff options
Diffstat (limited to 'inftrees.h')
-rw-r--r-- | inftrees.h | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -27,15 +27,19 @@ struct inflate_huft_s { | |||
27 | } more; | 27 | } more; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | #ifdef DEBUG | 30 | /* Maximum size of dynamic tree. The maximum found in a long but non- |
31 | extern uInt inflate_hufts; | 31 | exhaustive search was 1041 huft structures (875 for length/literals |
32 | #endif | 32 | and 166 for distances, the latter actually the result of an |
33 | exhaustive search). The actual maximum is not known, but the | ||
34 | value below is more than safe. */ | ||
35 | #define MANY 1440 | ||
33 | 36 | ||
34 | extern int inflate_trees_bits OF(( | 37 | extern int inflate_trees_bits OF(( |
35 | uIntf *, /* 19 code lengths */ | 38 | uIntf *, /* 19 code lengths */ |
36 | uIntf *, /* bits tree desired/actual depth */ | 39 | uIntf *, /* bits tree desired/actual depth */ |
37 | inflate_huft * FAR *, /* bits tree result */ | 40 | inflate_huft * FAR *, /* bits tree result */ |
38 | z_streamp )); /* for zalloc, zfree functions */ | 41 | inflate_huft *, /* space for trees */ |
42 | z_streamp)); /* for messages */ | ||
39 | 43 | ||
40 | extern int inflate_trees_dynamic OF(( | 44 | extern int inflate_trees_dynamic OF(( |
41 | uInt, /* number of literal/length codes */ | 45 | uInt, /* number of literal/length codes */ |
@@ -45,15 +49,12 @@ extern int inflate_trees_dynamic OF(( | |||
45 | uIntf *, /* distance desired/actual bit depth */ | 49 | uIntf *, /* distance desired/actual bit depth */ |
46 | inflate_huft * FAR *, /* literal/length tree result */ | 50 | inflate_huft * FAR *, /* literal/length tree result */ |
47 | inflate_huft * FAR *, /* distance tree result */ | 51 | inflate_huft * FAR *, /* distance tree result */ |
48 | z_streamp )); /* for zalloc, zfree functions */ | 52 | inflate_huft *, /* space for trees */ |
53 | z_streamp)); /* for messages */ | ||
49 | 54 | ||
50 | extern int inflate_trees_fixed OF(( | 55 | extern int inflate_trees_fixed OF(( |
51 | uIntf *, /* literal desired/actual bit depth */ | 56 | uIntf *, /* literal desired/actual bit depth */ |
52 | uIntf *, /* distance desired/actual bit depth */ | 57 | uIntf *, /* distance desired/actual bit depth */ |
53 | inflate_huft * FAR *, /* literal/length tree result */ | 58 | inflate_huft * FAR *, /* literal/length tree result */ |
54 | inflate_huft * FAR *)); /* distance tree result */ | 59 | inflate_huft * FAR *, /* distance tree result */ |
55 | 60 | z_streamp)); /* for memory allocation */ | |
56 | extern int inflate_trees_free OF(( | ||
57 | inflate_huft *, /* tables to free */ | ||
58 | z_streamp )); /* for zfree function */ | ||
59 | |||