[m-rev.] trivial diff: fix clpr gcc warnings

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Mar 14 16:36:54 AEDT 2002


On 14-Mar-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> 
> clpr/Mmakefile:
> 	Define MR_NO_BACKWARDS_COMPAT to avoid warnings
> 	about `bool' being redefined.

The following is an alternative fix.  I will check this in, even though
you've fixed the problem for extras/clpr, in case the same problem
affects other existing code.

Estimated hours taken: 0.1
Branches: main

runtime/mercury_bootstrap.h:
	Improve backward compatibility: define `bool' as `char' (like it
	used to be) rather than `MR_bool'.

Workspace: /mnt/ceres/home/ceres/fjh/mercury
Index: runtime/mercury_bootstrap.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_bootstrap.h,v
retrieving revision 1.26
diff -u -d -r1.26 mercury_bootstrap.h
--- runtime/mercury_bootstrap.h	2002/02/20 10:28:17	1.26
+++ runtime/mercury_bootstrap.h	2002/03/14 05:33:35
@@ -44,7 +44,7 @@
 #endif
 
 #ifndef bool
-#define bool			MR_bool
+#define bool			char
 #endif
 
 #ifndef TRUE
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list