]> git.ipfire.org Git - thirdparty/zlib-ng.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)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Wed, 1 Feb 2017 11:08:23 +0000 (12:08 +0100)
This avoid defining a macro that is never used when not debugging.

deflate.c

index c9a220bee8b98c21275954d371ec38915fefe4bf..9e8db2d86af67ec1efb8d0722f73d355f7bb0d70 100644 (file)
--- a/deflate.c
+++ b/deflate.c
@@ -139,9 +139,6 @@ static 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))
 
@@ -1018,6 +1015,9 @@ static void lm_init(deflate_state *s) {
 }
 
 #ifdef DEBUG
+#define EQUAL 0
+/* result of memcmp for equal strings */
+
 /* ===========================================================================
  * Check that the match at match_start is indeed a match.
  */