diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:09:18 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:09:18 -0700 |
| commit | 23c69f10698301ae97709eb0bbfb371d66b99a08 (patch) | |
| tree | 1956b671b3df8d12c315a38f33b190677ccd659e /inftrees.h | |
| parent | 6b834a58bdef976383cff6e2a83f353e668a9cf1 (diff) | |
| download | zlib-23c69f10698301ae97709eb0bbfb371d66b99a08.tar.gz zlib-23c69f10698301ae97709eb0bbfb371d66b99a08.tar.bz2 zlib-23c69f10698301ae97709eb0bbfb371d66b99a08.zip | |
zlib 0.94v0.94
Diffstat (limited to '')
| -rw-r--r-- | inftrees.h | 38 |
1 files changed, 20 insertions, 18 deletions
| @@ -11,14 +11,15 @@ | |||
| 11 | /* Huffman code lookup table entry--this entry is four bytes for machines | 11 | /* Huffman code lookup table entry--this entry is four bytes for machines |
| 12 | that have 16-bit pointers (e.g. PC's in the small or medium model). */ | 12 | that have 16-bit pointers (e.g. PC's in the small or medium model). */ |
| 13 | 13 | ||
| 14 | typedef struct inflate_huft_s inflate_huft; | 14 | typedef struct inflate_huft_s FAR inflate_huft; |
| 15 | |||
| 15 | struct inflate_huft_s { | 16 | struct inflate_huft_s { |
| 16 | union { | 17 | union { |
| 17 | struct { | 18 | struct { |
| 18 | Byte Exop; /* number of extra bits or operation */ | 19 | Byte Exop; /* number of extra bits or operation */ |
| 19 | Byte Bits; /* number of bits in this code or subcode */ | 20 | Byte Bits; /* number of bits in this code or subcode */ |
| 20 | } what; | 21 | } what; |
| 21 | Byte *pad; /* pad structure to a power of 2 (4 bytes for */ | 22 | Bytef *pad; /* pad structure to a power of 2 (4 bytes for */ |
| 22 | } word; /* 16-bit, 8 bytes for 32-bit machines) */ | 23 | } word; /* 16-bit, 8 bytes for 32-bit machines) */ |
| 23 | union { | 24 | union { |
| 24 | uInt Base; /* literal, length base, or distance base */ | 25 | uInt Base; /* literal, length base, or distance base */ |
| @@ -30,28 +31,29 @@ struct inflate_huft_s { | |||
| 30 | extern uInt inflate_hufts; | 31 | extern uInt inflate_hufts; |
| 31 | #endif | 32 | #endif |
| 32 | 33 | ||
| 33 | extern int inflate_trees_bits __P(( | 34 | extern int inflate_trees_bits OF(( |
| 34 | uInt *, /* 19 code lengths */ | 35 | uIntf *, /* 19 code lengths */ |
| 35 | uInt *, /* bits tree desired/actual depth */ | 36 | uIntf *, /* bits tree desired/actual depth */ |
| 36 | inflate_huft **, /* bits tree result */ | 37 | inflate_huft * FAR *, /* bits tree result */ |
| 37 | z_stream *)); /* for zalloc, zfree functions */ | 38 | z_stream *)); /* for zalloc, zfree functions */ |
| 38 | 39 | ||
| 39 | extern int inflate_trees_dynamic __P(( | 40 | extern int inflate_trees_dynamic OF(( |
| 40 | uInt, /* number of literal/length codes */ | 41 | uInt, /* number of literal/length codes */ |
| 41 | uInt, /* number of distance codes */ | 42 | uInt, /* number of distance codes */ |
| 42 | uInt *, /* that many (total) code lengths */ | 43 | uIntf *, /* that many (total) code lengths */ |
| 43 | uInt *, /* literal desired/actual bit depth */ | 44 | uIntf *, /* literal desired/actual bit depth */ |
| 44 | uInt *, /* distance desired/actual bit depth */ | 45 | uIntf *, /* distance desired/actual bit depth */ |
| 45 | inflate_huft **, /* literal/length tree result */ | 46 | inflate_huft * FAR *, /* literal/length tree result */ |
| 46 | inflate_huft **, /* distance tree result */ | 47 | inflate_huft * FAR *, /* distance tree result */ |
| 47 | z_stream *)); /* for zalloc, zfree functions */ | 48 | z_stream *)); /* for zalloc, zfree functions */ |
| 48 | 49 | ||
| 49 | extern int inflate_trees_fixed __P(( | 50 | extern int inflate_trees_fixed OF(( |
| 50 | uInt *, /* literal desired/actual bit depth */ | 51 | uIntf *, /* literal desired/actual bit depth */ |
| 51 | uInt *, /* distance desired/actual bit depth */ | 52 | uIntf *, /* distance desired/actual bit depth */ |
| 52 | inflate_huft **, /* literal/length tree result */ | 53 | inflate_huft * FAR *, /* literal/length tree result */ |
| 53 | inflate_huft **)); /* distance tree result */ | 54 | inflate_huft * FAR *)); /* distance tree result */ |
| 54 | 55 | ||
| 55 | extern int inflate_trees_free __P(( | 56 | extern int inflate_trees_free OF(( |
| 56 | inflate_huft *, /* tables to free */ | 57 | inflate_huft *, /* tables to free */ |
| 57 | z_stream *)); /* for zfree function */ | 58 | z_stream *)); /* for zfree function */ |
| 59 | |||
