trivial diff: conditionally define agc_debug module

Tyson Dowd trd at cs.mu.OZ.AU
Sun Oct 4 17:44:48 AEST 1998


Hi,

Here's a quick bugfix that I posted on mercury-bugs the other day.

===================================================================


Estimated hours taken: 1

mercury_agc_debug.c:
	Put #ifdef NATIVE_GC around the code, to stop it being
	compiled if not needed.


Index: mercury_agc_debug.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_agc_debug.c,v
retrieving revision 1.3
diff -u -r1.3 mercury_agc_debug.c
--- mercury_agc_debug.c	1998/09/21 13:17:42	1.3
+++ mercury_agc_debug.c	1998/10/04 07:42:25
@@ -13,6 +13,8 @@
 #include "mercury_deep_copy.h"
 #include "mercury_agc_debug.h"
 
+#ifdef NATIVE_GC
+
 /*
 ** Function prototypes.
 */
@@ -241,4 +243,6 @@
 		}
 	}
 }
+
+#endif /* NATIVE_GC */
 


-- 
Those who would give up essential liberty to purchase a little temporary
safety deserve neither liberty nor safety.     - Benjamin Franklin

Tyson Dowd   <tyson at tyse.net>   http://tyse.net



More information about the developers mailing list