Move macro definition in deflate.c to where it is used.

This avoid defining a macro that is never used when not debugging.
This commit is contained in:
Mark Adler 2016-10-14 13:18:58 -07:00
parent ebbc57393d
commit da64f1730c

View File

@ -148,9 +148,6 @@ local const config configuration_table[10] = {
* meaning. * meaning.
*/ */
#define EQUAL 0
/* result of memcmp for equal strings */
/* rank Z_BLOCK between Z_NO_FLUSH and Z_PARTIAL_FLUSH */ /* rank Z_BLOCK between Z_NO_FLUSH and Z_PARTIAL_FLUSH */
#define RANK(f) (((f) * 2) - ((f) > 4 ? 9 : 0)) #define RANK(f) (((f) * 2) - ((f) > 4 ? 9 : 0))
@ -1345,6 +1342,10 @@ local uInt longest_match(s, cur_match)
#endif /* FASTEST */ #endif /* FASTEST */
#ifdef ZLIB_DEBUG #ifdef ZLIB_DEBUG
#define EQUAL 0
/* result of memcmp for equal strings */
/* =========================================================================== /* ===========================================================================
* Check that the match at match_start is indeed a match. * Check that the match at match_start is indeed a match.
*/ */