/* 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;
*
* 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);
/**
*
* 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);
/**
*
* 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);
/** \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 */
*
* @{
*/
-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()
* @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()