diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:14:39 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:14:39 -0700 |
commit | 423eb40306489f9c88f7dba32c2f69179166730b (patch) | |
tree | b5a83b0b1e52bbe0de973dcbc7ec008c1d7cf7d9 /deflate.h | |
parent | 8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2 (diff) | |
download | zlib-423eb40306489f9c88f7dba32c2f69179166730b.tar.gz zlib-423eb40306489f9c88f7dba32c2f69179166730b.tar.bz2 zlib-423eb40306489f9c88f7dba32c2f69179166730b.zip |
zlib 1.0.1v1.0.1
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 27 |
1 files changed, 13 insertions, 14 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* deflate.h -- internal compression state | 1 | /* deflate.h -- internal compression state |
2 | * Copyright (C) 1995 Jean-loup Gailly | 2 | * Copyright (C) 1995-1996 Jean-loup Gailly |
3 | * For conditions of distribution and use, see copyright notice in zlib.h | 3 | * For conditions of distribution and use, see copyright notice in zlib.h |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -8,7 +8,10 @@ | |||
8 | subject to change. Applications should only use zlib.h. | 8 | subject to change. Applications should only use zlib.h. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | /* $Id: deflate.h,v 1.5 1995/05/03 17:27:09 jloup Exp $ */ | 11 | /* $Id: deflate.h,v 1.9 1996/01/30 21:59:13 me Exp $ */ |
12 | |||
13 | #ifndef _DEFLATE_H | ||
14 | #define _DEFLATE_H | ||
12 | 15 | ||
13 | #include "zutil.h" | 16 | #include "zutil.h" |
14 | 17 | ||
@@ -16,11 +19,6 @@ | |||
16 | * Internal compression state. | 19 | * Internal compression state. |
17 | */ | 20 | */ |
18 | 21 | ||
19 | /* Data type */ | ||
20 | #define BINARY 0 | ||
21 | #define ASCII 1 | ||
22 | #define UNKNOWN 2 | ||
23 | |||
24 | #define LENGTH_CODES 29 | 22 | #define LENGTH_CODES 29 |
25 | /* number of length codes, not counting the special END_BLOCK code */ | 23 | /* number of length codes, not counting the special END_BLOCK code */ |
26 | 24 | ||
@@ -87,7 +85,6 @@ typedef struct internal_state { | |||
87 | Bytef *pending_buf; /* output still pending */ | 85 | Bytef *pending_buf; /* output still pending */ |
88 | Bytef *pending_out; /* next pending byte to output to the stream */ | 86 | Bytef *pending_out; /* next pending byte to output to the stream */ |
89 | int pending; /* nb of bytes in the pending buffer */ | 87 | int pending; /* nb of bytes in the pending buffer */ |
90 | uLong adler; /* adler32 of uncompressed data */ | ||
91 | int noheader; /* suppress zlib header and adler32 */ | 88 | int noheader; /* suppress zlib header and adler32 */ |
92 | Byte data_type; /* UNKNOWN, BINARY or ASCII */ | 89 | Byte data_type; /* UNKNOWN, BINARY or ASCII */ |
93 | Byte method; /* STORED (for zip only) or DEFLATED */ | 90 | Byte method; /* STORED (for zip only) or DEFLATED */ |
@@ -268,9 +265,11 @@ typedef struct internal_state { | |||
268 | */ | 265 | */ |
269 | 266 | ||
270 | /* in trees.c */ | 267 | /* in trees.c */ |
271 | void tr_init OF((deflate_state *s)); | 268 | void _tr_init OF((deflate_state *s)); |
272 | int tr_tally OF((deflate_state *s, int dist, int lc)); | 269 | int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); |
273 | ulg tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, int eof)); | 270 | ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, |
274 | void tr_align OF((deflate_state *s)); | 271 | int eof)); |
275 | void tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, | 272 | void _tr_align OF((deflate_state *s)); |
276 | int eof)); | 273 | void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, |
274 | int eof)); | ||
275 | #endif | ||