[m-dev.] for review: Add missing MC++ definitions.

Tyson Dowd trd at cs.mu.OZ.AU
Wed Jan 17 16:39:20 AEDT 2001


On 17-Jan-2001, Tyson Richard DOWD <trd at cs.mu.OZ.AU> wrote:
> Hi,
> 
> This patch is against the release version, but I plan to commit it on
> both branches.
> 
> ===================================================================
> 
> Estimated hours taken: 0.5
> 
> library/private_builtin.m:
> 	Add missing foreign_code("MC++", ...) for new predicates defined in C.
> 	Change c_code to foreign_code("C", ...) to be consistent with
> 	the rest of the library.

One more bit to this change: 
	Remove old :- external style definition of free_heap 

Index: private_builtin.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/private_builtin.m,v
retrieving revision 1.62.2.2
diff -u -r1.62.2.2 private_builtin.m
--- private_builtin.m	2001/01/15 00:48:51	1.62.2.2
+++ private_builtin.m	2001/01/17 05:27:32
@@ -887,15 +969,6 @@
 		% the following is never executed
 		true
 	).
-
-:- pragma foreign_code("MC++", "
-
-static void free_heap_1_p_0(MR_Box X) 
-{ 
-        mercury::runtime::Errors::SORRY(""foreign code for this predicate"");
-}
-
-").
 
 %-----------------------------------------------------------------------------%
 %-----------------------------------------------------------------------------%

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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