diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:24 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:24 -0700 |
commit | 9811b53dd9e8f67015c7199fff12b5bfc6965330 (patch) | |
tree | bfa72ee22967fb56833203dfcd31c473c86b1bf1 /deflate.h | |
parent | 79fbcdc939b5d515218187a0d5f2526fb632075a (diff) | |
download | zlib-9811b53dd9e8f67015c7199fff12b5bfc6965330.tar.gz zlib-9811b53dd9e8f67015c7199fff12b5bfc6965330.tar.bz2 zlib-9811b53dd9e8f67015c7199fff12b5bfc6965330.zip |
zlib 1.2.2.1v1.2.2.1
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* deflate.h -- internal compression state | 1 | /* deflate.h -- internal compression state |
2 | * Copyright (C) 1995-2002 Jean-loup Gailly | 2 | * Copyright (C) 1995-2004 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 | ||
@@ -49,6 +49,10 @@ | |||
49 | /* All codes must not exceed MAX_BITS bits */ | 49 | /* All codes must not exceed MAX_BITS bits */ |
50 | 50 | ||
51 | #define INIT_STATE 42 | 51 | #define INIT_STATE 42 |
52 | #define EXTRA_STATE 69 | ||
53 | #define NAME_STATE 73 | ||
54 | #define COMMENT_STATE 91 | ||
55 | #define HCRC_STATE 103 | ||
52 | #define BUSY_STATE 113 | 56 | #define BUSY_STATE 113 |
53 | #define FINISH_STATE 666 | 57 | #define FINISH_STATE 666 |
54 | /* Stream status */ | 58 | /* Stream status */ |
@@ -95,6 +99,8 @@ typedef struct internal_state { | |||
95 | Bytef *pending_out; /* next pending byte to output to the stream */ | 99 | Bytef *pending_out; /* next pending byte to output to the stream */ |
96 | int pending; /* nb of bytes in the pending buffer */ | 100 | int pending; /* nb of bytes in the pending buffer */ |
97 | int wrap; /* bit 0 true for zlib, bit 1 true for gzip */ | 101 | int wrap; /* bit 0 true for zlib, bit 1 true for gzip */ |
102 | gz_headerp gzhead; /* gzip header information to write */ | ||
103 | int gzindex; /* where in extra, name, or comment */ | ||
98 | Byte method; /* STORED (for zip only) or DEFLATED */ | 104 | Byte method; /* STORED (for zip only) or DEFLATED */ |
99 | int last_flush; /* value of flush param for previous deflate call */ | 105 | int last_flush; /* value of flush param for previous deflate call */ |
100 | 106 | ||