[m-rev.] trivial diff: extras/trailed_update/var.m: \n --> \\n

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Oct 28 00:42:29 AEDT 2002


Estimated hours taken: 0.1
Branches: main

Fix a portability problem that broke the trailed_update tests with lcc.

extras/trailed_update/var.m:
	Use "\\n" rather than "\n" for newlines in string literals
	that occur inside pragma c_code.

Workspace: /home/ceres/fjh/mercury
Index: extras/trailed_update/var.m
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/trailed_update/var.m,v
retrieving revision 1.19
diff -u -d -r1.19 var.m
--- extras/trailed_update/var.m	18 Feb 2002 07:01:01 -0000	1.19
+++ extras/trailed_update/var.m	27 Oct 2002 13:40:14 -0000
@@ -536,7 +536,7 @@
 
 	/* XXX should improve error message */
 	fflush(stdout);
-	fprintf(stderr, ""var.m: warning: goal floundered.\n"");
+	fprintf(stderr, ""var.m: warning: goal floundered.\\n"");
 
 	num_delayed_goals = 0; 
 	while (last && last != old_goal) {
@@ -545,7 +545,7 @@
 		}
 		last = last->prev;
 	}
-	fprintf(stderr, ""       %d outstanding delayed goal%s.\n"",
+	fprintf(stderr, ""       %d outstanding delayed goal%s.\\n"",
 		num_delayed_goals, (num_delayed_goals == 1 ? """" : ""s""));
 }
 ").

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