diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-22 19:31:35 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-22 19:31:35 +0000 |
commit | 4534af276360675b6058e3b255a0d63f7f8c0c96 (patch) | |
tree | dcab210ad7ddbd3ed7f5b3a511d6ef3217310539 | |
parent | 0775a07d87e0c6bd467a61f5457e99ba20ac99ac (diff) | |
download | busybox-w32-4534af276360675b6058e3b255a0d63f7f8c0c96.tar.gz busybox-w32-4534af276360675b6058e3b255a0d63f7f8c0c96.tar.bz2 busybox-w32-4534af276360675b6058e3b255a0d63f7f8c0c96.zip |
replace some global const ints with defines
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 8 | ||||
-rw-r--r-- | archival/libunarchive/unzip.c | 8 | ||||
-rw-r--r-- | libbb/unzip.c | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 76fb86285..0da60c3be 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
@@ -81,17 +81,17 @@ static unsigned long *crc_table; | |||
81 | static unsigned long crc; /* shift register contents */ | 81 | static unsigned long crc; /* shift register contents */ |
82 | 82 | ||
83 | /* Return codes from gzip */ | 83 | /* Return codes from gzip */ |
84 | static const int ERROR = 1; | 84 | #define ERROR 1 |
85 | 85 | ||
86 | /* | 86 | /* |
87 | * window size--must be a power of two, and | 87 | * window size--must be a power of two, and |
88 | * at least 32K for zip's deflate method | 88 | * at least 32K for zip's deflate method |
89 | */ | 89 | */ |
90 | static const int WSIZE = 0x8000; | 90 | #define WSIZE 0x8000 |
91 | 91 | ||
92 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ | 92 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ |
93 | static const int BMAX = 16; /* maximum bit length of any code (16 for explode) */ | 93 | #define BMAX 16 /* maximum bit length of any code (16 for explode) */ |
94 | static const int N_MAX = 288; /* maximum number of codes in any set */ | 94 | #define N_MAX 288 /* maximum number of codes in any set */ |
95 | 95 | ||
96 | static long bytes_out; /* number of output bytes */ | 96 | static long bytes_out; /* number of output bytes */ |
97 | static unsigned long outcnt; /* bytes in output buffer */ | 97 | static unsigned long outcnt; /* bytes in output buffer */ |
diff --git a/archival/libunarchive/unzip.c b/archival/libunarchive/unzip.c index 76fb86285..0da60c3be 100644 --- a/archival/libunarchive/unzip.c +++ b/archival/libunarchive/unzip.c | |||
@@ -81,17 +81,17 @@ static unsigned long *crc_table; | |||
81 | static unsigned long crc; /* shift register contents */ | 81 | static unsigned long crc; /* shift register contents */ |
82 | 82 | ||
83 | /* Return codes from gzip */ | 83 | /* Return codes from gzip */ |
84 | static const int ERROR = 1; | 84 | #define ERROR 1 |
85 | 85 | ||
86 | /* | 86 | /* |
87 | * window size--must be a power of two, and | 87 | * window size--must be a power of two, and |
88 | * at least 32K for zip's deflate method | 88 | * at least 32K for zip's deflate method |
89 | */ | 89 | */ |
90 | static const int WSIZE = 0x8000; | 90 | #define WSIZE 0x8000 |
91 | 91 | ||
92 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ | 92 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ |
93 | static const int BMAX = 16; /* maximum bit length of any code (16 for explode) */ | 93 | #define BMAX 16 /* maximum bit length of any code (16 for explode) */ |
94 | static const int N_MAX = 288; /* maximum number of codes in any set */ | 94 | #define N_MAX 288 /* maximum number of codes in any set */ |
95 | 95 | ||
96 | static long bytes_out; /* number of output bytes */ | 96 | static long bytes_out; /* number of output bytes */ |
97 | static unsigned long outcnt; /* bytes in output buffer */ | 97 | static unsigned long outcnt; /* bytes in output buffer */ |
diff --git a/libbb/unzip.c b/libbb/unzip.c index 76fb86285..0da60c3be 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c | |||
@@ -81,17 +81,17 @@ static unsigned long *crc_table; | |||
81 | static unsigned long crc; /* shift register contents */ | 81 | static unsigned long crc; /* shift register contents */ |
82 | 82 | ||
83 | /* Return codes from gzip */ | 83 | /* Return codes from gzip */ |
84 | static const int ERROR = 1; | 84 | #define ERROR 1 |
85 | 85 | ||
86 | /* | 86 | /* |
87 | * window size--must be a power of two, and | 87 | * window size--must be a power of two, and |
88 | * at least 32K for zip's deflate method | 88 | * at least 32K for zip's deflate method |
89 | */ | 89 | */ |
90 | static const int WSIZE = 0x8000; | 90 | #define WSIZE 0x8000 |
91 | 91 | ||
92 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ | 92 | /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */ |
93 | static const int BMAX = 16; /* maximum bit length of any code (16 for explode) */ | 93 | #define BMAX 16 /* maximum bit length of any code (16 for explode) */ |
94 | static const int N_MAX = 288; /* maximum number of codes in any set */ | 94 | #define N_MAX 288 /* maximum number of codes in any set */ |
95 | 95 | ||
96 | static long bytes_out; /* number of output bytes */ | 96 | static long bytes_out; /* number of output bytes */ |
97 | static unsigned long outcnt; /* bytes in output buffer */ | 97 | static unsigned long outcnt; /* bytes in output buffer */ |