From bd29eb9bd1a3789586083258c52fbe06510c9e2b Mon Sep 17 00:00:00 2001 From: Sven Stork Date: Wed, 16 May 2007 15:43:44 +0000 Subject: [PATCH] - backout commit r14667, because internal functionality shouldn't be exported. NOTE: if visibility is enabled "make check" will fail This commit was SVN r14668. The following SVN revision numbers were found above: r14667 --> open-mpi/ompi@1f526a95e97aa2fd4e4469de149ed9d292c61816 --- ompi/datatype/datatype.h | 16 ++++------------ ompi/datatype/datatype_internal.h | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/ompi/datatype/datatype.h b/ompi/datatype/datatype.h index bf55960852..886332d21b 100644 --- a/ompi/datatype/datatype.h +++ b/ompi/datatype/datatype.h @@ -129,9 +129,9 @@ typedef struct ompi_datatype_t { OMPI_DECLSPEC OBJ_CLASS_DECLARATION( ompi_datatype_t ); int ompi_ddt_register_params(void); -OMPI_DECLSPEC int32_t ompi_ddt_init( void ); -OMPI_DECLSPEC int32_t ompi_ddt_finalize( void ); -OMPI_DECLSPEC ompi_datatype_t* ompi_ddt_create( int32_t expectedSize ); +int32_t ompi_ddt_init( void ); +int32_t ompi_ddt_finalize( void ); +ompi_datatype_t* ompi_ddt_create( int32_t expectedSize ); OMPI_DECLSPEC int32_t ompi_ddt_commit( ompi_datatype_t** ); OMPI_DECLSPEC int32_t ompi_ddt_destroy( ompi_datatype_t** ); static inline int32_t ompi_ddt_is_committed( const ompi_datatype_t* type ) @@ -145,7 +145,7 @@ static inline int32_t ompi_ddt_is_valid( const ompi_datatype_t* type ) static inline int32_t ompi_ddt_is_predefined( const ompi_datatype_t* type ) { return (type->flags & DT_FLAG_PREDEFINED); } -OMPI_DECLSPEC void ompi_ddt_dump( const ompi_datatype_t* pData ); +void ompi_ddt_dump( const ompi_datatype_t* pData ); /* data creation functions */ OMPI_DECLSPEC int32_t ompi_ddt_duplicate( const ompi_datatype_t* oldType, ompi_datatype_t** newType ); OMPI_DECLSPEC int32_t ompi_ddt_create_contiguous( int count, const ompi_datatype_t* oldType, ompi_datatype_t** newType ); @@ -238,14 +238,6 @@ OMPI_DECLSPEC ompi_datatype_t* ompi_ddt_create_from_packed_description( void** packed_buffer, struct ompi_proc_t* remote_processor ); - -#if OMPI_ENABLE_DEBUG -/* this symbols are just needed for the ompi internal tests */ -OMPI_DECLSPEC extern int ompi_unpack_debug; -OMPI_DECLSPEC extern int ompi_pack_debug; -OMPI_DECLSPEC extern int ompi_position_debug; -#endif - #if defined(c_plusplus) || defined(__cplusplus) } #endif diff --git a/ompi/datatype/datatype_internal.h b/ompi/datatype/datatype_internal.h index 37fce9cf60..06f3db44f3 100644 --- a/ompi/datatype/datatype_internal.h +++ b/ompi/datatype/datatype_internal.h @@ -227,7 +227,7 @@ typedef struct { long double i; } ompi_complex_long_double_t; -OMPI_DECLSPEC extern const ompi_datatype_t* ompi_ddt_basicDatatypes[DT_MAX_PREDEFINED]; +extern const ompi_datatype_t* ompi_ddt_basicDatatypes[DT_MAX_PREDEFINED]; #define BASIC_DDT_FROM_ELEM( ELEM ) (ompi_ddt_basicDatatypes[(ELEM).elem.common.type])