Adjust GC_dont_expand/gc/precollect and GC_print_stats type to match gc.h
authorIvan Maidanski <ivmai@mail.ru>
Thu, 15 Nov 2012 04:40:42 +0000 (08:40 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 15 Nov 2012 13:41:01 +0000 (17:41 +0400)
* alloc.c (GC_dont_expand): Change type from GC_bool to int (as
declared in gc.h).
* misc.c (GC_dont_gc, GC_dont_precollect, GC_print_stats): Likewise.
* misc.c (GC_dont_gc, GC_dont_precollect): Initialize to FALSE instead
of 0.

alloc.c
misc.c

diff --git a/alloc.c b/alloc.c
index c0440e1..a497e67 100644 (file)
--- a/alloc.c
+++ b/alloc.c
@@ -111,9 +111,9 @@ GC_API unsigned GC_CALL GC_get_version(void)
 /* some more variables */
 
 #ifdef GC_DONT_EXPAND
-  GC_bool GC_dont_expand = TRUE;
+  int GC_dont_expand = TRUE;
 #else
-  GC_bool GC_dont_expand = FALSE;
+  int GC_dont_expand = FALSE;
 #endif
 
 #ifndef GC_FREE_SPACE_DIVISOR
diff --git a/misc.c b/misc.c
index 533dbfe..5e3bad9 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -84,14 +84,14 @@ ptr_t GC_stackbottom = 0;
   ptr_t GC_register_stackbottom = 0;
 #endif
 
-GC_bool GC_dont_gc = 0;
+int GC_dont_gc = FALSE;
 
-GC_bool GC_dont_precollect = 0;
+int GC_dont_precollect = FALSE;
 
 GC_bool GC_quiet = 0; /* used also in pcr_interface.c */
 
 #ifndef SMALL_CONFIG
-  GC_bool GC_print_stats = 0;
+  int GC_print_stats = 0;
 #endif
 
 #ifdef GC_PRINT_BACK_HEIGHT