[m-dev.] trivial diff: use double quotes in #error

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Apr 17 14:29:58 AEST 2000


Estimated hours taken: 0.25

runtime/mercury_types.h:
compiler/bytecode_data.m:
	Use `#error "message"' rather than just `#error message'.
	The rationale for this is (a) consistency with what we do elsewhere in
	the Mercury implementation and (b) one of the C compilers that we were
	using at one point in the Mercury project did not conform to the
	ANSI/ISO C standard in this respect and reported an error if the
	message in a `#error' declaration was not in quotes, even if it was
	#ifdef'd out.

Workspace: /home/pgrad/fjh/ws/hg
Index: compiler/bytecode_data.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/bytecode_data.m,v
retrieving revision 1.5
diff -u -d -r1.5 bytecode_data.m
--- compiler/bytecode_data.m	1999/07/13 03:22:28	1.5
+++ compiler/bytecode_data.m	2000/03/13 14:34:30
@@ -269,7 +269,7 @@
 			B1 = raw_mem_p[6];
 			B0 = raw_mem_p[7];
 		#else
-			#error	Weird-endian architecture
+			#error	""Weird-endian architecture""
 		#endif
 	}
 	
Index: runtime/mercury_types.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_types.h,v
retrieving revision 1.20
diff -u -d -r1.20 mercury_types.h
--- runtime/mercury_types.h	2000/02/08 16:01:16	1.20
+++ runtime/mercury_types.h	2000/03/13 04:58:00
@@ -76,7 +76,7 @@
 #elif	MR_LONG_DOUBLE_IS_64_BIT
 	typedef	long double		Float64;
 #else
-	#error	For Mercury bytecode, we require 64-bit IEEE-754 floating point
+	#error	"For Mercury bytecode, we require 64-bit IEEE-754 floating point"
 #endif
 
 /*

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