aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-29 07:42:02 +0000
committerRob Landley <rob@landley.net>2006-05-29 07:42:02 +0000
commit1ec5b2905484b7904aabb01f56c70265fb538c82 (patch)
tree87292bfd7e99ce26b226518e244f4a96914397f9 /archival/gzip.c
parenta6e131dab39ee67522687a56b39ed815b9ae15ec (diff)
downloadbusybox-w32-1ec5b2905484b7904aabb01f56c70265fb538c82.tar.gz
busybox-w32-1ec5b2905484b7904aabb01f56c70265fb538c82.tar.bz2
busybox-w32-1ec5b2905484b7904aabb01f56c70265fb538c82.zip
More size shrinkage.
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index c31706af3..4f60c6b24 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -16,11 +16,7 @@
16 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 16 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
17 */ 17 */
18 18
19/* These defines are very important for BusyBox. Without these,
20 * huge chunks of ram are pre-allocated making the BusyBox bss
21 * size Freaking Huge(tm), which is a bad thing.*/
22#define SMALL_MEM 19#define SMALL_MEM
23#define DYN_ALLOC
24 20
25#include <stdlib.h> 21#include <stdlib.h>
26#include <stdio.h> 22#include <stdio.h>
@@ -87,17 +83,11 @@ typedef unsigned long ulg;
87# endif 83# endif
88#endif 84#endif
89 85
90#ifdef DYN_ALLOC
91# define DECLARE(type, array, size) static type * array 86# define DECLARE(type, array, size) static type * array
92# define ALLOC(type, array, size) { \ 87# define ALLOC(type, array, size) { \
93 array = (type*)xcalloc((size_t)(((size)+1L)/2), 2*sizeof(type)); \ 88 array = (type*)xzalloc((size_t)(((size)+1L)/2) * 2*sizeof(type)); \
94 } 89 }
95# define FREE(array) {free(array), array=NULL;} 90# define FREE(array) {free(array), array=NULL;}
96#else
97# define DECLARE(type, array, size) static type array[size]
98# define ALLOC(type, array, size)
99# define FREE(array)
100#endif
101 91
102#define tab_suffix window 92#define tab_suffix window
103#define tab_prefix prev /* hash link (see deflate.c) */ 93#define tab_prefix prev /* hash link (see deflate.c) */