summaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2020-08-29 10:50:50 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-08-31 13:22:54 +0200
commite9a8fa9af31cb3d6871e80a1c8b11478fef8d034 (patch)
tree697aee14b5e54fce20bdcc80405946f228a1e94f /deflate.h
parentb55a8cad3893e06d5b542b1d45c5309821f66203 (diff)
Reorder s->block_open and s->reproducible.
Diffstat (limited to 'deflate.h')
-rw-r--r--deflate.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/deflate.h b/deflate.h
index 6324d61..633ce25 100644
--- a/deflate.h
+++ b/deflate.h
@@ -115,6 +115,12 @@ typedef struct internal_state {
PREFIX(gz_headerp) gzhead; /* gzip header information to write */
int status; /* as the name implies */
int last_flush; /* value of flush param for previous deflate call */
+ int reproducible; /* Whether reproducible compression results are required. */
+
+ int block_open;
+ /* Whether or not a block is currently open for the QUICK deflation scheme.
+ * This is set to 1 if there is an active block, or 0 if the block was just closed.
+ */
/* used by deflate.c: */
@@ -197,6 +203,7 @@ typedef struct internal_state {
#ifdef X86_PCLMULQDQ_CRC
unsigned crc0[4 * 5];
#endif
+
/* used by trees.c: */
/* Didn't use ct_data typedef below to suppress compiler warning */
struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */
@@ -264,15 +271,6 @@ typedef struct internal_state {
* are always zero.
*/
- int block_open;
- /* Whether or not a block is currently open for the QUICK deflation scheme.
- * This is set to 1 if there is an active block, or 0 if the block was just
- * closed.
- */
- int reproducible;
- /* Whether reproducible compression results are required.
- */
-
} deflate_state;
typedef enum {