trivial diff: mercury_prof.c documentation fix

Fergus Henderson fjh at cs.mu.oz.au
Mon Dec 8 08:41:50 AEDT 1997


runtime/mercury_prof.c:
	Fix a cut-and-paste mistake in the documentation.
	Use `#ifndef' rather than `#if !defined(...)', for consistency.

Index: mercury_prof.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_prof.c,v
retrieving revision 1.4
diff -u -u -r1.4 mercury_prof.c
--- mercury_prof.c	1997/12/05 15:56:42	1.4
+++ mercury_prof.c	1997/12/07 21:28:06
@@ -567,11 +567,9 @@
 #ifdef PROFILE_MEMORY
 
 /*
-**	prof_output_addr_table:
-**		Writes the value of MR_CLOCK_TICKS_PER_SECOND and
-**		MR_CLOCK_TICKS_PER_PROF_SIG at the start of the file
-**		`Prof.Counts'.  Then outputs the addresses saved
-**		whenever PROF_SIG is received (also to `Prof.Counts').
+**	prof_output_mem_tables:
+**		Writes the by-procedure memory profiling counts to the files
+**		`Prof.MemoryWords' and `Prof.MemoryCells'.
 */
 
 static void
@@ -653,7 +651,7 @@
 	prof_output_addr_table();
 #endif
 
-#if defined(PROFILE_CALLS)
+#ifdef PROFILE_CALLS
 	if (decl_fptr) {
 		checked_fclose(decl_fptr, "Prof.Decl");
 	}

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



More information about the developers mailing list