Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Only adds the XBT_PUBLIC macro decoration a the begining of the public API functions.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 6 Oct 2006 14:15:43 +0000 (14:15 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 6 Oct 2006 14:15:43 +0000 (14:15 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2873 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/log.h
include/xbt/mallocator.h
include/xbt/matrix.h
include/xbt/misc.h
include/xbt/module.h

index bbfb46e..d3c2d30 100644 (file)
@@ -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);
 
 
index 50ae0ff..be9f83a 100644 (file)
@@ -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()
index ce20717..d29a886 100644 (file)
@@ -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()
 
index 91693a6..6149e94 100644 (file)
@@ -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 */
    
index 3aa6fad..f7277f4 100644 (file)
@@ -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 */