[m-dev.] trivial diff: fix new bug in mercury_tabling.h

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Apr 21 02:01:10 AEST 1999


Estimated hours taken: 0.25

runtime/mercury_tabling.h:
	Fix a bug in Zoltan's recent change: the definition of
	MR_SUBGOAL() should be outside of the `#ifdef MR_USE_MINIMAL_MODEL'.
	Without this change, library/private_builtin.m failed to compile.

Index: runtime/mercury_tabling.h
===================================================================
RCS file: /home/staff/zs/imp/mercury/runtime/mercury_tabling.h,v
retrieving revision 1.12
diff -u -r1.12 mercury_tabling.h
--- mercury_tabling.h	1999/04/20 11:48:16	1.12
+++ mercury_tabling.h	1999/04/20 15:57:57
@@ -657,6 +657,8 @@
 						/* call to the generator */
 };
 
+#endif	/* MR_USE_MINIMAL_MODEL */
+
 	/* 
 	** Cast a Word to a MR_Subgoal*: saves on typing and improves 
 	** readability. 
@@ -664,7 +666,5 @@
 #define MR_SUBGOAL(T)  (*(MR_Subgoal **) T)
 
 /*---------------------------------------------------------------------------*/
-
-#endif	/* MR_USE_MINIMAL_MODEL */
 
 #endif	/* not MERCURY_TABLING_H */

-- 
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