summaryrefslogtreecommitdiff
path: root/zlib/deflate.h
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-12 17:42:53 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-12 17:42:53 +0000
commitd919a5db39c56de77f7a4033af2a55b2afdbd886 (patch)
treeafad186af73219e6bb1a8cb8eac61485fb4eec97 /zlib/deflate.h
parentfbac20447b8669e70aead906056eabee7f080de7 (diff)
downloadgcc-d919a5db39c56de77f7a4033af2a55b2afdbd886.tar.gz
* Imported zlib 1.2.3; merged local changes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104184 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'zlib/deflate.h')
-rw-r--r--zlib/deflate.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/zlib/deflate.h b/zlib/deflate.h
index 49e58a98329..b056f027ef6 100644
--- a/zlib/deflate.h
+++ b/zlib/deflate.h
@@ -1,5 +1,5 @@
/* deflate.h -- internal compression state
- * Copyright (C) 1995-2002 Jean-loup Gailly
+ * Copyright (C) 1995-2004 Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -49,6 +49,10 @@
/* All codes must not exceed MAX_BITS bits */
#define INIT_STATE 42
+#define EXTRA_STATE 69
+#define NAME_STATE 73
+#define COMMENT_STATE 91
+#define HCRC_STATE 103
#define BUSY_STATE 113
#define FINISH_STATE 666
/* Stream status */
@@ -93,9 +97,10 @@ typedef struct internal_state {
Bytef *pending_buf; /* output still pending */
ulg pending_buf_size; /* size of pending_buf */
Bytef *pending_out; /* next pending byte to output to the stream */
- int pending; /* nb of bytes in the pending buffer */
+ uInt pending; /* nb of bytes in the pending buffer */
int wrap; /* bit 0 true for zlib, bit 1 true for gzip */
- Byte data_type; /* UNKNOWN, BINARY or ASCII */
+ gz_headerp gzhead; /* gzip header information to write */
+ uInt gzindex; /* where in extra, name, or comment */
Byte method; /* STORED (for zip only) or DEFLATED */
int last_flush; /* value of flush param for previous deflate call */