You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/07/11 11:25:36 UTC
[03/14] lucy-clownfish git commit: Make some internal symbols visible
Make some internal symbols visible
Otherwise the separate test binary can't see them.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/83c90450
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/83c90450
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/83c90450
Branch: refs/heads/master
Commit: 83c9045079e5e5e21b487feaaeb5a506108b24b3
Parents: 8ba4e61
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Fri Jul 8 13:57:18 2016 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Fri Jul 8 14:25:36 2016 +0200
----------------------------------------------------------------------
runtime/core/Clownfish/LockFreeRegistry.h | 10 ++++++----
runtime/core/Clownfish/PtrHash.h | 10 ++++++----
runtime/core/Clownfish/Util/Atomic.h | 4 ++--
3 files changed, 14 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/83c90450/runtime/core/Clownfish/LockFreeRegistry.h
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/LockFreeRegistry.h b/runtime/core/Clownfish/LockFreeRegistry.h
index 065c8bf..ac2f74d 100644
--- a/runtime/core/Clownfish/LockFreeRegistry.h
+++ b/runtime/core/Clownfish/LockFreeRegistry.h
@@ -19,6 +19,8 @@
#include <stddef.h>
+#include "cfish_parcel.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -31,17 +33,17 @@ struct cfish_String;
typedef struct cfish_LockFreeRegistry cfish_LockFreeRegistry;
-cfish_LockFreeRegistry*
+CFISH_VISIBLE cfish_LockFreeRegistry*
cfish_LFReg_new(size_t capacity);
-void
+CFISH_VISIBLE void
cfish_LFReg_destroy(cfish_LockFreeRegistry *self);
-bool
+CFISH_VISIBLE bool
cfish_LFReg_register(cfish_LockFreeRegistry *self, struct cfish_String *key,
struct cfish_Obj *value);
-struct cfish_Obj*
+CFISH_VISIBLE struct cfish_Obj*
cfish_LFReg_fetch(cfish_LockFreeRegistry *self, struct cfish_String *key);
#ifdef CFISH_USE_SHORT_NAMES
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/83c90450/runtime/core/Clownfish/PtrHash.h
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/PtrHash.h b/runtime/core/Clownfish/PtrHash.h
index 4a88bc4..03d5f95 100644
--- a/runtime/core/Clownfish/PtrHash.h
+++ b/runtime/core/Clownfish/PtrHash.h
@@ -19,22 +19,24 @@
#include <stddef.h>
+#include "cfish_parcel.h"
+
#ifdef __cplusplus
extern "C" {
#endif
typedef struct cfish_PtrHash cfish_PtrHash;
-cfish_PtrHash*
+CFISH_VISIBLE cfish_PtrHash*
cfish_PtrHash_new(size_t min_cap);
-void
+CFISH_VISIBLE void
CFISH_PtrHash_Destroy(cfish_PtrHash *self);
-void
+CFISH_VISIBLE void
CFISH_PtrHash_Store(cfish_PtrHash *self, void *key, void *value);
-void*
+CFISH_VISIBLE void*
CFISH_PtrHash_Fetch(cfish_PtrHash *self, void *key);
#ifdef CFISH_USE_SHORT_NAMES
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/83c90450/runtime/core/Clownfish/Util/Atomic.h
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Util/Atomic.h b/runtime/core/Clownfish/Util/Atomic.h
index 8b2f8e6..88d8de9 100644
--- a/runtime/core/Clownfish/Util/Atomic.h
+++ b/runtime/core/Clownfish/Util/Atomic.h
@@ -57,7 +57,7 @@ cfish_Atomic_cas_ptr(void *volatile *target, void *old_value, void *new_value) {
/********************************** Windows *******************************/
#elif defined(CHY_HAS_WINDOWS_H)
-bool
+CFISH_VISIBLE bool
cfish_Atomic_wrapped_cas_ptr(void *volatile *target, void *old_value,
void *new_value);
@@ -87,7 +87,7 @@ cfish_Atomic_cas_ptr(void *volatile *target, void *old_value, void *new_value) {
#elif defined(CHY_HAS_PTHREAD_H)
#include <pthread.h>
-extern pthread_mutex_t cfish_Atomic_mutex;
+extern CFISH_VISIBLE pthread_mutex_t cfish_Atomic_mutex;
static CFISH_INLINE bool
cfish_Atomic_cas_ptr(void *volatile *target, void *old_value, void *new_value) {