From: Ivan Maidanski Date: Thu, 15 Nov 2012 04:40:42 +0000 (+0400) Subject: Adjust GC_dont_expand/gc/precollect and GC_print_stats type to match gc.h X-Git-Tag: gc7_4_0~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f2d01777b95dc5ad61941e38caa2fdca057103c;p=gc Adjust GC_dont_expand/gc/precollect and GC_print_stats type to match gc.h * 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. --- diff --git a/alloc.c b/alloc.c index c0440e11..a497e670 100644 --- 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 533dbfe5..5e3bad9a 100644 --- 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