* deflate.c: Export nice_match to assembler.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Jun 2011 17:22:40 +0000 (10:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Jun 2011 17:22:54 +0000 (10:22 -0700)
(static_unless_ASMV): New macro.
(nice_match): Use it.

deflate.c

index b1fafde6904c596c301f428d9e24bbd046842272..6a75e738a25e123e3475a0721b599eec0e17278d 100644 (file)
--- a/deflate.c
+++ b/deflate.c
@@ -226,10 +226,17 @@ typedef struct config {
    ush max_chain;
 } config;
 
+#ifdef ASMV
+# define static_unless_ASMV
+#else
+# define static_unless_ASMV static
+#endif
+
 #ifdef  FULL_SEARCH
 # define nice_match MAX_MATCH
 #else
-  static int nice_match; /* Stop searching when current match exceeds this */
+  /* Stop searching when current match exceeds this */
+  static_unless_ASMV int nice_match;
 #endif
 
 local config configuration_table[10] = {