Artifact 09999e692f41a6c49c050899f3afdff35156c507:
0000: 2f 2a 20 69 6e 66 63 6f 64 65 73 2e 68 20 2d 2d /* infcodes.h --
0010: 20 68 65 61 64 65 72 20 74 6f 20 75 73 65 20 69 header to use i
0020: 6e 66 63 6f 64 65 73 2e 63 0a 20 2a 20 43 6f 70 nfcodes.c. * Cop
0030: 79 72 69 67 68 74 20 28 43 29 20 31 39 39 35 2d yright (C) 1995-
0040: 31 39 39 38 20 4d 61 72 6b 20 41 64 6c 65 72 0a 1998 Mark Adler.
0050: 20 2a 20 46 6f 72 20 63 6f 6e 64 69 74 69 6f 6e * For condition
0060: 73 20 6f 66 20 64 69 73 74 72 69 62 75 74 69 6f s of distributio
0070: 6e 20 61 6e 64 20 75 73 65 2c 20 73 65 65 20 63 n and use, see c
0080: 6f 70 79 72 69 67 68 74 20 6e 6f 74 69 63 65 20 opyright notice
0090: 69 6e 20 7a 6c 69 62 2e 68 20 0a 20 2a 2f 0a 0a in zlib.h . */..
00a0: 2f 2a 20 57 41 52 4e 49 4e 47 3a 20 74 68 69 73 /* WARNING: this
00b0: 20 66 69 6c 65 20 73 68 6f 75 6c 64 20 2a 6e 6f file should *no
00c0: 74 2a 20 62 65 20 75 73 65 64 20 62 79 20 61 70 t* be used by ap
00d0: 70 6c 69 63 61 74 69 6f 6e 73 2e 20 49 74 20 69 plications. It i
00e0: 73 0a 20 20 20 70 61 72 74 20 6f 66 20 74 68 65 s. part of the
00f0: 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 implementation
0100: 6f 66 20 74 68 65 20 63 6f 6d 70 72 65 73 73 69 of the compressi
0110: 6f 6e 20 6c 69 62 72 61 72 79 20 61 6e 64 20 69 on library and i
0120: 73 0a 20 20 20 73 75 62 6a 65 63 74 20 74 6f 20 s. subject to
0130: 63 68 61 6e 67 65 2e 20 41 70 70 6c 69 63 61 74 change. Applicat
0140: 69 6f 6e 73 20 73 68 6f 75 6c 64 20 6f 6e 6c 79 ions should only
0150: 20 75 73 65 20 7a 6c 69 62 2e 68 2e 0a 20 2a 2f use zlib.h.. */
0160: 0a 0a 73 74 72 75 63 74 20 69 6e 66 6c 61 74 65 ..struct inflate
0170: 5f 63 6f 64 65 73 5f 73 74 61 74 65 3b 0a 74 79 _codes_state;.ty
0180: 70 65 64 65 66 20 73 74 72 75 63 74 20 69 6e 66 pedef struct inf
0190: 6c 61 74 65 5f 63 6f 64 65 73 5f 73 74 61 74 65 late_codes_state
01a0: 20 46 41 52 20 69 6e 66 6c 61 74 65 5f 63 6f 64 FAR inflate_cod
01b0: 65 73 5f 73 74 61 74 65 66 3b 0a 0a 65 78 74 65 es_statef;..exte
01c0: 72 6e 20 69 6e 66 6c 61 74 65 5f 63 6f 64 65 73 rn inflate_codes
01d0: 5f 73 74 61 74 65 66 20 2a 69 6e 66 6c 61 74 65 _statef *inflate
01e0: 5f 63 6f 64 65 73 5f 6e 65 77 20 4f 46 28 28 0a _codes_new OF((.
01f0: 20 20 20 20 75 49 6e 74 2c 20 75 49 6e 74 2c 0a uInt, uInt,.
0200: 20 20 20 20 69 6e 66 6c 61 74 65 5f 68 75 66 74 inflate_huft
0210: 20 2a 2c 20 69 6e 66 6c 61 74 65 5f 68 75 66 74 *, inflate_huft
0220: 20 2a 2c 0a 20 20 20 20 7a 5f 73 74 72 65 61 6d *,. z_stream
0230: 70 20 29 29 3b 0a 0a 65 78 74 65 72 6e 20 69 6e p ));..extern in
0240: 74 20 69 6e 66 6c 61 74 65 5f 63 6f 64 65 73 20 t inflate_codes
0250: 4f 46 28 28 0a 20 20 20 20 69 6e 66 6c 61 74 65 OF((. inflate
0260: 5f 62 6c 6f 63 6b 73 5f 73 74 61 74 65 66 20 2a _blocks_statef *
0270: 2c 0a 20 20 20 20 7a 5f 73 74 72 65 61 6d 70 20 ,. z_streamp
0280: 2c 0a 20 20 20 20 69 6e 74 29 29 3b 0a 0a 65 78 ,. int));..ex
0290: 74 65 72 6e 20 76 6f 69 64 20 69 6e 66 6c 61 74 tern void inflat
02a0: 65 5f 63 6f 64 65 73 5f 66 72 65 65 20 4f 46 28 e_codes_free OF(
02b0: 28 0a 20 20 20 20 69 6e 66 6c 61 74 65 5f 63 6f (. inflate_co
02c0: 64 65 73 5f 73 74 61 74 65 66 20 2a 2c 0a 20 20 des_statef *,.
02d0: 20 20 7a 5f 73 74 72 65 61 6d 70 20 29 29 3b 0a z_streamp ));.
02e0: 0a .