diff options
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -15,6 +15,14 @@ | |||
15 | 15 | ||
16 | #include "zutil.h" | 16 | #include "zutil.h" |
17 | 17 | ||
18 | /* define NO_GZIP when compiling if you want to disable gzip header and | ||
19 | trailer creation by deflate(). NO_GZIP would be used to avoid linking in | ||
20 | the crc code when it is not needed. For shared libraries, gzip encoding | ||
21 | should be left enabled. */ | ||
22 | #ifndef NO_GZIP | ||
23 | # define GZIP | ||
24 | #endif | ||
25 | |||
18 | /* =========================================================================== | 26 | /* =========================================================================== |
19 | * Internal compression state. | 27 | * Internal compression state. |
20 | */ | 28 | */ |
@@ -86,7 +94,7 @@ typedef struct internal_state { | |||
86 | ulg pending_buf_size; /* size of pending_buf */ | 94 | ulg pending_buf_size; /* size of pending_buf */ |
87 | Bytef *pending_out; /* next pending byte to output to the stream */ | 95 | Bytef *pending_out; /* next pending byte to output to the stream */ |
88 | int pending; /* nb of bytes in the pending buffer */ | 96 | int pending; /* nb of bytes in the pending buffer */ |
89 | int noheader; /* suppress zlib header and adler32 */ | 97 | int wrap; /* bit 0 true for zlib, bit 1 true for gzip */ |
90 | Byte data_type; /* UNKNOWN, BINARY or ASCII */ | 98 | Byte data_type; /* UNKNOWN, BINARY or ASCII */ |
91 | Byte method; /* STORED (for zip only) or DEFLATED */ | 99 | Byte method; /* STORED (for zip only) or DEFLATED */ |
92 | int last_flush; /* value of flush param for previous deflate call */ | 100 | int last_flush; /* value of flush param for previous deflate call */ |