[m-dev.] trivial diff: fix bug with gc.h
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Oct 19 07:28:55 AEST 1999
Estimated hours taken: 0.25
runtime/mercury_memory.h:
Fix a bug: the #include "gc.h" should be protected by
"#ifdef CONSERVATIVE_GC".
Workspace: /d-drive/home/hg/public/test_mercury/test_dirs/hg/mercury
cvs diff: [07:27:49] waiting for fjh's lock in /home/staff/zs/imp/mercury/runtime
cvs diff: [07:28:06] obtained lock in /home/staff/zs/imp/mercury/runtime
Index: runtime/mercury_memory.h
===================================================================
RCS file: /home/staff/zs/imp/mercury/runtime/mercury_memory.h,v
retrieving revision 1.10
diff -u -r1.10 mercury_memory.h
--- runtime/mercury_memory.h 1999/10/18 15:46:57 1.10
+++ runtime/mercury_memory.h 1999/10/18 21:23:50
@@ -24,8 +24,10 @@
#include "mercury_types.h" /* for Word */
#include "mercury_std.h" /* for bool */
-#include "gc.h" /* for GC_FREE */
-
+#include "mercury_conf.h" /* for CONSERVATIVE_GC, etc. */
+#ifdef CONSERVATIVE_GC
+ #include "gc.h" /* for GC_FREE */
+#endif
#ifdef MR_LOWLEVEL_DEBUG
extern MemoryZone *dumpstack_zone;
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list