From: cherierm Date: Fri, 6 Oct 2006 14:15:43 +0000 (+0000) Subject: Only adds the XBT_PUBLIC macro decoration a the begining of the public API functions. X-Git-Tag: v3.3~2486 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0909f6ea8e2ed9702bd8a2c31163bc3474be79ef Only adds the XBT_PUBLIC macro decoration a the begining of the public API functions. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2873 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/log.h b/include/xbt/log.h index bbfb46ef04..d3c2d30b65 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -194,7 +194,7 @@ typedef enum { /* Functions you may call */ -extern void xbt_log_control_set(const char* cs); +XBT_PUBLIC extern void xbt_log_control_set(const char* cs); /* Forward declarations */ typedef struct xbt_log_appender_s s_xbt_log_appender_t,*xbt_log_appender_t; @@ -238,7 +238,7 @@ struct xbt_log_event_s { * * Programatically alters a category's threshold priority (don't use). */ -extern void xbt_log_threshold_set(xbt_log_category_t cat, +XBT_PUBLIC extern void xbt_log_threshold_set(xbt_log_category_t cat, e_xbt_log_priority_t thresholdPriority); /** @@ -248,7 +248,7 @@ extern void xbt_log_threshold_set(xbt_log_category_t cat, * * Programatically alter a category's parent (don't use). */ -extern void xbt_log_parent_set(xbt_log_category_t cat, +XBT_PUBLIC extern void xbt_log_parent_set(xbt_log_category_t cat, xbt_log_category_t parent); /** @@ -258,15 +258,15 @@ extern void xbt_log_parent_set(xbt_log_category_t cat, * * Programatically sets the category's appender (don't use). */ -extern void xbt_log_appender_set(xbt_log_category_t cat, +XBT_PUBLIC extern void xbt_log_appender_set(xbt_log_category_t cat, xbt_log_appender_t app); /* Functions that you shouldn't call. */ -extern void _xbt_log_event_log(xbt_log_event_t ev, +XBT_PUBLIC extern void _xbt_log_event_log(xbt_log_event_t ev, const char *fmt, ...) _XBT_GNUC_PRINTF(2,3); -extern int _xbt_log_cat_init(e_xbt_log_priority_t priority, +XBT_PUBLIC extern int _xbt_log_cat_init(e_xbt_log_priority_t priority, xbt_log_category_t category); diff --git a/include/xbt/mallocator.h b/include/xbt/mallocator.h index 50ae0ff11b..be9f83af27 100644 --- a/include/xbt/mallocator.h +++ b/include/xbt/mallocator.h @@ -37,8 +37,8 @@ SG_BEGIN_DECL() /** \brief Mallocator data type (opaque structure) */ typedef struct s_xbt_mallocator *xbt_mallocator_t; -xbt_mallocator_t xbt_mallocator_new(int size, pvoid_f_void_t new_f, void_f_pvoid_t free_f, void_f_pvoid_t reset_f); -void xbt_mallocator_free(xbt_mallocator_t mallocator); +XBT_PUBLIC xbt_mallocator_t xbt_mallocator_new(int size, pvoid_f_void_t new_f, void_f_pvoid_t free_f, void_f_pvoid_t reset_f); +XBT_PUBLIC void xbt_mallocator_free(xbt_mallocator_t mallocator); /** @} */ /* object handling */ @@ -47,8 +47,8 @@ void xbt_mallocator_free(xbt_mallocator_t mallocator); * * @{ */ -void *xbt_mallocator_get(xbt_mallocator_t mallocator); -void xbt_mallocator_release(xbt_mallocator_t mallocator, void *object); +XBT_PUBLIC void *xbt_mallocator_get(xbt_mallocator_t mallocator); +XBT_PUBLIC void xbt_mallocator_release(xbt_mallocator_t mallocator, void *object); /** @} */ SG_END_DECL() diff --git a/include/xbt/matrix.h b/include/xbt/matrix.h index ce207170b9..d29a886c9d 100644 --- a/include/xbt/matrix.h +++ b/include/xbt/matrix.h @@ -33,34 +33,34 @@ typedef struct { * @hideinitializer */ #define xbt_matrix_get_as(mat,l,c,type) *(type*)xbt_matrix_get_ptr(mat,l,c) -xbt_matrix_t xbt_matrix_new(int lines, int rows, +XBT_PUBLIC xbt_matrix_t xbt_matrix_new(int lines, int rows, const unsigned long elmsize, void_f_pvoid_t * const free_f); -xbt_matrix_t xbt_matrix_new_sub(xbt_matrix_t from, +XBT_PUBLIC xbt_matrix_t xbt_matrix_new_sub(xbt_matrix_t from, int lsize, int rsize, int lpos, int rpos, pvoid_f_pvoid_t *const cpy_f); -void xbt_matrix_free(xbt_matrix_t matrix); -void xbt_matrix_free_voidp(void *d); +XBT_PUBLIC void xbt_matrix_free(xbt_matrix_t matrix); +XBT_PUBLIC void xbt_matrix_free_voidp(void *d); -void xbt_matrix_copy_values(xbt_matrix_t dest, xbt_matrix_t src, +XBT_PUBLIC void xbt_matrix_copy_values(xbt_matrix_t dest, xbt_matrix_t src, int lsize, int rsize, int lpos_dst,int rpos_dst, int lpos_src,int rpos_src, pvoid_f_pvoid_t *const cpy_f); -void xbt_matrix_dump(xbt_matrix_t matrix, const char *name, int coords, +XBT_PUBLIC void xbt_matrix_dump(xbt_matrix_t matrix, const char *name, int coords, void_f_pvoid_t display_fun); -void xbt_matrix_dump_display_double(void*d); +XBT_PUBLIC void xbt_matrix_dump_display_double(void*d); -xbt_matrix_t xbt_matrix_double_new_zeros(int lines, int rows); -xbt_matrix_t xbt_matrix_double_new_id(int lines, int rows); -xbt_matrix_t xbt_matrix_double_new_rand(int lines, int rows); -xbt_matrix_t xbt_matrix_double_new_seq(int lines, int rows); -xbt_matrix_t xbt_matrix_double_new_mult(xbt_matrix_t A,xbt_matrix_t B); -void xbt_matrix_double_addmult(xbt_matrix_t A,xbt_matrix_t B, +XBT_PUBLIC xbt_matrix_t xbt_matrix_double_new_zeros(int lines, int rows); +XBT_PUBLIC xbt_matrix_t xbt_matrix_double_new_id(int lines, int rows); +XBT_PUBLIC xbt_matrix_t xbt_matrix_double_new_rand(int lines, int rows); +XBT_PUBLIC xbt_matrix_t xbt_matrix_double_new_seq(int lines, int rows); +XBT_PUBLIC xbt_matrix_t xbt_matrix_double_new_mult(xbt_matrix_t A,xbt_matrix_t B); +XBT_PUBLIC void xbt_matrix_double_addmult(xbt_matrix_t A,xbt_matrix_t B, /*OUT*/ xbt_matrix_t C); SG_END_DECL() diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 91693a6665..6149e94fb4 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -89,7 +89,7 @@ SG_BEGIN_DECL() -const char *xbt_procname(void); +XBT_PUBLIC const char *xbt_procname(void); #define XBT_BACKTRACE_SIZE 10 /* FIXME: better place? Do document */ diff --git a/include/xbt/module.h b/include/xbt/module.h index 3aa6fadbe8..f7277f4121 100644 --- a/include/xbt/module.h +++ b/include/xbt/module.h @@ -12,6 +12,6 @@ extern char *xbt_binary_name; -void xbt_init(int *argc,char **argv); -void xbt_exit(void); +XBT_PUBLIC void xbt_init(int *argc,char **argv); +XBT_PUBLIC void xbt_exit(void); #endif /* _XBT_MODULE_H */