svn commit: trunk/busybox/archival

vda at busybox.net vda at busybox.net
Sun Jan 7 19:39:54 UTC 2007


Author: vda
Date: 2007-01-07 11:39:54 -0800 (Sun, 07 Jan 2007)
New Revision: 17189

Log:
gzip cleanup part #7


Modified:
   trunk/busybox/archival/gzip.c


Changeset:
Modified: trunk/busybox/archival/gzip.c
===================================================================
--- trunk/busybox/archival/gzip.c	2007-01-07 19:39:34 UTC (rev 17188)
+++ trunk/busybox/archival/gzip.c	2007-01-07 19:39:54 UTC (rev 17189)
@@ -616,9 +616,11 @@
  *    (except for the last MIN_MATCH-1 bytes of the input file).
  */
 #define INSERT_STRING(s, match_head) \
-   (UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]), \
-    prev[(s) & WMASK] = match_head = head[ins_h], \
-    head[ins_h] = (s))
+{ \
+	UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]); \
+	prev[(s) & WMASK] = match_head = head[ins_h]; \
+	head[ins_h] = (s); \
+}
 
 /* ===========================================================================
  * Initialize the "longest match" routines for a new file
@@ -898,9 +900,7 @@
 		 * match is not better, output the previous match:
 		 */
 		if (prev_length >= MIN_MATCH && match_length <= prev_length) {
-
 			check_match(strstart - 1, prev_match, prev_length);
-
 			flush = ct_tally(strstart - 1 - prev_match, prev_length - MIN_MATCH);
 
 			/* Insert in hash table all strings up to the end of the match.




More information about the busybox-cvs mailing list