aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-01 16:44:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-01 16:44:04 +0000
commitbb119d059a80c85fe844b9f9c770e0c77aeb49e6 (patch)
tree70651270deb869fad260753415fa1c5246df6427 /archival/gzip.c
parent97a8dd3857aea9730382e2975a2ee2000fd23ebb (diff)
downloadbusybox-w32-bb119d059a80c85fe844b9f9c770e0c77aeb49e6.tar.gz
busybox-w32-bb119d059a80c85fe844b9f9c770e0c77aeb49e6.tar.bz2
busybox-w32-bb119d059a80c85fe844b9f9c770e0c77aeb49e6.zip
gzip: add a bit of comment. The code itself
is too bloated to work on it...
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index bb58158f4..2fc9f7698 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -16,7 +16,12 @@
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// TODO: full support for -v for DESKTOP 19/* TODO: full support for -v for DESKTOP
20/usr/bin/gzip -v a bogus aa
21a: 85.1% -- replaced with a.gz
22gzip: bogus: No such file or directory
23aa: 85.1% -- replaced with aa.gz
24*/
20 25
21#define SMALL_MEM 26#define SMALL_MEM
22 27
@@ -125,8 +130,8 @@ typedef int file_t; /* Do not use stdio */
125#define ASCII 1 130#define ASCII 1
126 131
127#ifndef WSIZE 132#ifndef WSIZE
128# define WSIZE 0x8000 /* window size--must be a power of two, and */ 133# define WSIZE 0x8000 /* window size--must be a power of two, and */
129#endif /* at least 32K for zip's deflate method */ 134#endif /* at least 32K for zip's deflate method */
130 135
131#define MIN_MATCH 3 136#define MIN_MATCH 3
132#define MAX_MATCH 258 137#define MAX_MATCH 258
@@ -2402,7 +2407,6 @@ static int zip(int in, int out)
2402 2407
2403 /* Write the header to the gzip file. See algorithm.doc for the format */ 2408 /* Write the header to the gzip file. See algorithm.doc for the format */
2404 2409
2405
2406 method = DEFLATED; 2410 method = DEFLATED;
2407 put_header_byte(GZIP_MAGIC[0]); /* magic header */ 2411 put_header_byte(GZIP_MAGIC[0]); /* magic header */
2408 put_header_byte(GZIP_MAGIC[1]); 2412 put_header_byte(GZIP_MAGIC[1]);