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

Simon Taylor stayl at cs.mu.OZ.AU
Mon Apr 17 14:54:32 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.


Estimated hours taken: 0.1

extras/aditi/aditi.m:
extras/odbc/odbc.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.


Index: aditi/aditi.m
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/aditi/aditi.m,v
retrieving revision 1.6
diff -u -u -r1.6 aditi.m
--- aditi/aditi.m	2000/04/14 08:39:11	1.6
+++ aditi/aditi.m	2000/04/17 04:40:46
@@ -433,8 +433,8 @@
 	** We might allocate memory from may_call_mercury C code.
 	*/
 #ifndef CONSERVATIVE_GC
-#error The Aditi interface requires conservative garbage collection. \\
-                Use a compilation grade containing .gc.
+#error ""The Aditi interface requires conservative garbage collection. \\
+                Use a compilation grade containing .gc.""
 #endif /* ! CONSERVATIVE_GC */
 
 
Index: odbc/odbc.m
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/odbc/odbc.m,v
retrieving revision 1.10
diff -u -u -r1.10 odbc.m
--- odbc/odbc.m	2000/03/21 05:39:29	1.10
+++ odbc/odbc.m	2000/04/17 04:50:07
@@ -311,8 +311,8 @@
 	** after an exception a bit simpler.
 	*/	
 #ifndef CONSERVATIVE_GC
-#error The OBDC interface requires conservative garbage collection. \\
-		Use a compilation grade containing .gc.
+#error ""The OBDC interface requires conservative garbage collection. \\
+		Use a compilation grade containing .gc.""
 #endif /* ! CONSERVATIVE_GC */
 
 #ifdef MODBC_IODBC
--------------------------------------------------------------------------
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