[m-dev.] diff: add ME_ prefix in semaphore.m

Peter Ross peter.ross at miscrit.be
Fri Sep 15 01:03:11 AEDT 2000


Hi,


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


Estimated hours taken: 0.1

semaphore.m:
    Add a ME_ prefix to a finalize_semaphore.


Index: semaphore.m
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/concurrency/semaphore.m,v
retrieving revision 1.4
diff -u -r1.4 semaphore.m
--- semaphore.m	2000/09/13 13:58:06	1.4
+++ semaphore.m	2000/09/14 14:01:35
@@ -95,7 +95,7 @@
 	** when the semaphore is garbage collected.
 	*/
 #ifdef CONSERVATIVE_GC
-	GC_REGISTER_FINALIZER(sem, finalize_semaphore, NULL, NULL, NULL);
+	GC_REGISTER_FINALIZER(sem, ME_finalize_semaphore, NULL, NULL, NULL);
 #endif
 
 	Semaphore = (MR_Word) sem;
@@ -104,7 +104,7 @@
 
 :- pragma c_code("
 #ifdef CONSERVATIVE_GC
-  void finalize_semaphore(GC_PTR obj, GC_PTR cd)
+  void ME_finalize_semaphore(GC_PTR obj, GC_PTR cd)
   {
 	ME_Semaphore    *sem;
 

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