Remove MIN_WORDS macro from gc_priv.h
authorIvan Maidanski <ivmai@mail.ru>
Fri, 31 Aug 2018 19:38:52 +0000 (22:38 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Aug 2018 19:38:52 +0000 (22:38 +0300)
(code refactoring)

* include/private/gc_priv.h (MIN_WORDS): Move macro to test.c; remove
FIXME.
* tests/test.c: Update comment for include gc_priv.h.

include/private/gc_priv.h
tests/test.c

index 571643b..4f2d308 100644 (file)
@@ -916,9 +916,6 @@ EXTERN_C_BEGIN
 # endif
 # define ADD_SLOP(lb) /* lb should have no side-effect */ \
                 SIZET_SAT_ADD(lb, EXTRA_BYTES)
-# ifndef MIN_WORDS
-#  define MIN_WORDS 2   /* FIXME: obsolete */
-# endif
 
 /*
  * Hash table representation of sets of pages.
index 1023b84..8ec8c13 100644 (file)
@@ -61,7 +61,7 @@
 # include "gc_typed.h"
 #endif
 
-#include "private/gc_priv.h"    /* For output, locking, MIN_WORDS,      */
+#include "private/gc_priv.h"    /* For output, locking,                 */
                                 /* some statistics and gcconfig.h.      */
 
 #if defined(MSWIN32) || defined(MSWINCE)
@@ -1303,6 +1303,10 @@ void * GC_CALLBACK inc_int_counter(void *pcounter)
  return NULL;
 }
 
+#ifndef MIN_WORDS
+# define MIN_WORDS 2
+#endif
+
 void run_one_test(void)
 {
 #   ifndef DBG_HDRS_ALL