[m-rev.] diff: adding missing local to foreign decl pragma

Julien Fischer jfischer at opturion.com
Fri Sep 19 09:49:24 AEST 2014


Add missing local to foreign_decl pragma.

library/thread.m:
 	The C functions ML_{incr,decr}_thread_barrier_count are declared
 	with static linkage; their containing foreign_decl pragam should
 	be marked as local.

diff --git a/library/thread.m b/library/thread.m
index c221864..a98f92b 100644
--- a/library/thread.m
+++ b/library/thread.m
@@ -611,7 +611,7 @@ call_back_to_mercury(Goal, ThreadId, !IO) :-

  %-----------------------------------------------------------------------------%

-:- pragma foreign_decl("C",
+:- pragma foreign_decl("C", local,
  "
  #if defined(MR_THREAD_SAFE) || !defined(MR_HIGHLEVEL_CODE)
    static void ML_incr_thread_barrier_count(void);




More information about the reviews mailing list