[m-dev.] [reuse] minor change

Nancy Mazur Nancy.Mazur at cs.kuleuven.ac.be
Fri Mar 9 05:36:39 AEDT 2001


Hi,


===================================================================


Estimated hours taken: 0.1


Minor change: also output the reuse-conditions to the hlds-dump. 

hlds_out.m:
	Not only print out whether a procedure has reuse or not, 
	but also print out all the possible reuse-conditions the
	procedure requires to be satisfied. For non-exported 
	predicates this is the only way to see their reuse-
	conditions. 


Index: hlds_out.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/hlds_out.m,v
retrieving revision 1.243.2.15
diff -u -r1.243.2.15 hlds_out.m
--- hlds_out.m	2001/03/07 17:20:29	1.243.2.15
+++ hlds_out.m	2001/03/08 18:33:55
@@ -3027,9 +3027,10 @@
 			{ Memo = yes(_MemoReuse) }
 		->
 			hlds_out__write_indent(Indent), 
-			io__write_string("% Reuse version: \n"), 
+			io__write_string("% Reuse version = "), 
 			sr_data__memo_reuse_print_dump(Memo, Proc, 
-				PredInfo)
+				PredInfo), 
+			io__write_string("\n")
 		;
 			[]
 		)

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