From 1f526a95e97aa2fd4e4469de149ed9d292c61816 Mon Sep 17 00:00:00 2001 From: Sven Stork Date: Wed, 16 May 2007 15:14:31 +0000 Subject: [PATCH] - we need to export this internal symbols because the tests in test/memory need them. This commit was SVN r14667. --- ompi/datatype/datatype.h | 16 ++++++++++++---- ompi/datatype/datatype_internal.h | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ompi/datatype/datatype.h b/ompi/datatype/datatype.h index 886332d21b..bf55960852 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); -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_init( void ); +OMPI_DECLSPEC int32_t ompi_ddt_finalize( void ); +OMPI_DECLSPEC 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); } -void ompi_ddt_dump( const ompi_datatype_t* pData ); +OMPI_DECLSPEC 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,6 +238,14 @@ 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 06f3db44f3..37fce9cf60 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; -extern const ompi_datatype_t* ompi_ddt_basicDatatypes[DT_MAX_PREDEFINED]; +OMPI_DECLSPEC extern const ompi_datatype_t* ompi_ddt_basicDatatypes[DT_MAX_PREDEFINED]; #define BASIC_DDT_FROM_ELEM( ELEM ) (ompi_ddt_basicDatatypes[(ELEM).elem.common.type])