summaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
authorRob Landley2006-05-29 07:42:02 +0000
committerRob Landley2006-05-29 07:42:02 +0000
commit1ec5b2905484b7904aabb01f56c70265fb538c82 (patch)
tree87292bfd7e99ce26b226518e244f4a96914397f9 /archival/gzip.c
parenta6e131dab39ee67522687a56b39ed815b9ae15ec (diff)
downloadbusybox-1ec5b2905484b7904aabb01f56c70265fb538c82.zip
busybox-1ec5b2905484b7904aabb01f56c70265fb538c82.tar.gz
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 c31706a..4f60c6b 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -16,11 +16,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-/* These defines are very important for BusyBox. Without these,
- * huge chunks of ram are pre-allocated making the BusyBox bss
- * size Freaking Huge(tm), which is a bad thing.*/
#define SMALL_MEM
-#define DYN_ALLOC
#include <stdlib.h>
#include <stdio.h>
@@ -87,17 +83,11 @@ typedef unsigned long ulg;
# endif
#endif
-#ifdef DYN_ALLOC
# define DECLARE(type, array, size) static type * array
# define ALLOC(type, array, size) { \
- array = (type*)xcalloc((size_t)(((size)+1L)/2), 2*sizeof(type)); \
+ array = (type*)xzalloc((size_t)(((size)+1L)/2) * 2*sizeof(type)); \
}
# define FREE(array) {free(array), array=NULL;}
-#else
-# define DECLARE(type, array, size) static type array[size]
-# define ALLOC(type, array, size)
-# define FREE(array)
-#endif
#define tab_suffix window
#define tab_prefix prev /* hash link (see deflate.c) */