>From 5ed21000b29bda8ee6adbfdfea008ca9fba6cba8 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Tue, 18 Jun 2013 07:59:48 -0700 Subject: [PATCH 2/2] Use MAX() for array overlays. Prefer {prev,head,window} as base names. --- deflate.c | 10 ---------- gzip.c | 29 ++++++++++++++++++----------- gzip.h | 34 ++++++++++++++++++++++------------ trees.c | 3 --- unlzw.c | 1 + 5 files changed, 41 insertions(+), 36 deletions(-) diff --git a/deflate.c b/deflate.c index 31c81db..7fb6ed2 100644 --- a/deflate.c +++ b/deflate.c @@ -86,16 +86,6 @@ */ #include "deflate.h" -/* To save space (see unlzw.c), we overlay prev+head with tab_prefix and - * window with tab_suffix. Check that we can do this: - */ -#if (WSIZE<<1) > (1< LZW_BITS-1 - error: cannot overlay head with tab_prefix1 -#endif - #define HASH_SIZE (unsigned)(1<= b ? a : b) -/* the arguments must not have side effects */ - /* =========================================================================== * Allocate the match buffer, initialize the various tables and save the * location of the internal file attribute (ascii/binary) and method diff --git a/unlzw.c b/unlzw.c index 3390440..7bdf417 100644 --- a/unlzw.c +++ b/unlzw.c @@ -83,6 +83,7 @@ union bytes { memzero(tab_prefix1, 128); #endif #define de_stack ((char_type *)(&d_buf[DIST_BUFSIZE-1])) + /* DECLARE(uch, tab_suffix, (1<