summaryrefslogtreecommitdiff
path: root/inftrees.h
diff options
context:
space:
mode:
Diffstat (limited to 'inftrees.h')
-rw-r--r--inftrees.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/inftrees.h b/inftrees.h
index 03b85c5..9eaaa66 100644
--- a/inftrees.h
+++ b/inftrees.h
@@ -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
14typedef struct inflate_huft_s inflate_huft; 14typedef struct inflate_huft_s FAR inflate_huft;
15
15struct inflate_huft_s { 16struct 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
33extern int inflate_trees_bits __P(( 34extern 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
39extern int inflate_trees_dynamic __P(( 40extern 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
49extern int inflate_trees_fixed __P(( 50extern 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
55extern int inflate_trees_free __P(( 56extern 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