diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2016-10-14 13:18:58 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2016-10-14 13:18:58 -0700 |
commit | da64f1730c480ca97c755009c27e20e7bfd56c16 (patch) | |
tree | 38d8dfe22f7c7c23d9ba583f0cd6dbbb79bd881c | |
parent | ebbc57393d81c25c019851f6d9d7776baed0f4d7 (diff) | |
download | zlib-da64f1730c480ca97c755009c27e20e7bfd56c16.tar.gz zlib-da64f1730c480ca97c755009c27e20e7bfd56c16.tar.bz2 zlib-da64f1730c480ca97c755009c27e20e7bfd56c16.zip |
Move macro definition in deflate.c to where it is used.
This avoid defining a macro that is never used when not debugging.
-rw-r--r-- | deflate.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -148,9 +148,6 @@ local const config configuration_table[10] = { | |||
148 | * meaning. | 148 | * meaning. |
149 | */ | 149 | */ |
150 | 150 | ||
151 | #define EQUAL 0 | ||
152 | /* result of memcmp for equal strings */ | ||
153 | |||
154 | /* rank Z_BLOCK between Z_NO_FLUSH and Z_PARTIAL_FLUSH */ | 151 | /* rank Z_BLOCK between Z_NO_FLUSH and Z_PARTIAL_FLUSH */ |
155 | #define RANK(f) (((f) * 2) - ((f) > 4 ? 9 : 0)) | 152 | #define RANK(f) (((f) * 2) - ((f) > 4 ? 9 : 0)) |
156 | 153 | ||
@@ -1345,6 +1342,10 @@ local uInt longest_match(s, cur_match) | |||
1345 | #endif /* FASTEST */ | 1342 | #endif /* FASTEST */ |
1346 | 1343 | ||
1347 | #ifdef ZLIB_DEBUG | 1344 | #ifdef ZLIB_DEBUG |
1345 | |||
1346 | #define EQUAL 0 | ||
1347 | /* result of memcmp for equal strings */ | ||
1348 | |||
1348 | /* =========================================================================== | 1349 | /* =========================================================================== |
1349 | * Check that the match at match_start is indeed a match. | 1350 | * Check that the match at match_start is indeed a match. |
1350 | */ | 1351 | */ |