summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-03-06 17:26:24 +0100
committerIvan Maidanski <ivmai@mail.ru>2012-03-06 17:40:35 +0100
commitd952e32f2864c157cfa2583355a17c5cf7796663 (patch)
tree9ca6c05f4a76a086e285700f58eb53433ff02f01 /include
parent1a4dd0e75fd177ddf7eadf8654057ed243fc0c2d (diff)
Fix gctest (for Win32) to avoid GC_print_stats internal variable usage
(Apply commit 9dc445d from 'master' branch) * include/private/gc_priv.h (GC_print_stats): Update the comment. * tests/test.c (GC_print_stats, run_one_test, check_heap_stats): Rename GC_print_stats to print_stats (since the former is used internally by GC and not exported). * tests/test.c (print_stats): Always define (either as a macro or a static int variable) regardless of GC_DLL and SMALL_CONFIG. * tests/test.c (INIT_PRINT_STATS): New macro (used to initialize print_stats if needed); GETENV is used if needed and available. * tests/test.c (GC_COND_INIT): Invoke INIT_PRINT_STATS.
Diffstat (limited to 'include')
-rw-r--r--include/private/gc_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index 65570dc..ef2650c 100644
--- a/include/private/gc_priv.h
+++ b/include/private/gc_priv.h
@@ -1805,7 +1805,7 @@ GC_EXTERN GC_bool GC_have_errors; /* We saw a smashed or leaked object. */
/* without acquiring the lock. */
#ifndef SMALL_CONFIG
- /* GC_print_stats should be visible outside the GC in some cases. */
+ /* GC_print_stats should be visible to extra/MacOS.c. */
extern int GC_print_stats; /* Nonzero generates basic GC log. */
/* VERBOSE generates add'l messages. */
#else