[m-rev.] diff: fix ISO C error in deep_profiler/timeout.m

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Dec 3 18:32:11 AEDT 2002


Estimated hours taken: 0.25
Branches: main, release

deep_profiler/timeout.m:
	Fix an ANSI/ISO C conformance problem that broke the build with lcc:
	use "\\n" rather than "\n" in pragma c_code fragments.

Workspace: /home/mars/fjh/ws1/mercury
Index: deep_profiler/timeout.m
===================================================================
RCS file: /home/mercury1/repository/mercury/deep_profiler/timeout.m,v
retrieving revision 1.7.2.1
diff -u -d -r1.7.2.1 timeout.m
--- deep_profiler/timeout.m	25 Nov 2002 00:22:27 -0000	1.7.2.1
+++ deep_profiler/timeout.m	3 Dec 2002 07:29:42 -0000
@@ -166,9 +166,9 @@
 	int	i;
 
 	if (MP_print_cleanup_files) {
-		fprintf(stderr, ""\n%s cleanup files:\n"", msg);
+		fprintf(stderr, ""\\n%s cleanup files:\\n"", msg);
 		for (i = 0; i < MP_cleanup_file_next; i++) {
-			fprintf(stderr, ""%i %s\n"", i, MP_cleanup_files[i]);
+			fprintf(stderr, ""%i %s\\n"", i, MP_cleanup_files[i]);
 		}
 	}
 }
@@ -264,7 +264,7 @@
 #ifdef	MP_DEBUG_MDPROF_SIGNAL
 	fp = fopen(""/tmp/mdprof_signal"", ""w"");
 	if (fp != NULL) {
-		fprintf(fp, ""%s\n"", signal_name);
+		fprintf(fp, ""%s\\n"", signal_name);
 		(void) fclose(fp);
 	}
 #endif
-- 
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