]> git.lizzy.rs Git - zlib.git/commitdiff
Move macro definition in deflate.c to where it is used.
authorMark Adler <madler@alumni.caltech.edu>
Fri, 14 Oct 2016 20:18:58 +0000 (13:18 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Fri, 14 Oct 2016 20:18:58 +0000 (13:18 -0700)
This avoid defining a macro that is never used when not debugging.

deflate.c

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