Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a default
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Feb 2007 15:08:51 +0000 (15:08 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Feb 2007 15:08:51 +0000 (15:08 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3095 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/config.h
include/xbt/dict.h
include/xbt/dynar.h
include/xbt/ex.h
include/xbt/fifo.h
src/include/xbt/xbt_portability.h

index 8c0e9af..05e49eb 100644 (file)
@@ -152,7 +152,7 @@ XBT_PUBLIC(void) xbt_cfg_empty(xbt_cfg_t cfg, const char *name);
   /** \brief Callback types. They get the name of the modified entry, and the position of the changed value */
   typedef void (*xbt_cfg_cb_t)(const char*, int);
 
-  XBT_PUBLIC xbt_cfg_t xbt_cfg_new (void);
+  XBT_PUBLIC(xbt_cfg_t) xbt_cfg_new (void);
   XBT_PUBLIC(void) xbt_cfg_cpy(xbt_cfg_t tocopy, /* OUT */ xbt_cfg_t *whereto);
   XBT_PUBLIC(void) xbt_cfg_free(xbt_cfg_t *cfg);
   XBT_PUBLIC(void) xbt_cfg_dump(const char *name,const char*indent,xbt_cfg_t cfg);
@@ -174,7 +174,7 @@ XBT_PUBLIC(void) xbt_cfg_empty(xbt_cfg_t cfg, const char *name);
   XBT_PUBLIC(void) xbt_cfg_unregister(xbt_cfg_t cfg, const char *name);
   XBT_PUBLIC(void) xbt_cfg_register_str(xbt_cfg_t cfg, const char *entry);
   XBT_PUBLIC(void) xbt_cfg_check(xbt_cfg_t cfg);
-  XBT_PUBLIC e_xbt_cfgelm_type_t xbt_cfg_get_type(xbt_cfg_t cfg, const char *name);
+  XBT_PUBLIC(e_xbt_cfgelm_type_t) xbt_cfg_get_type(xbt_cfg_t cfg, const char *name);
 /*  @} */
 /** @defgroup XBT_cfg_get Getting the stored values
  *  @ingroup XBT_config
index 2d01301..6f9c076 100644 (file)
@@ -107,7 +107,7 @@ SG_BEGIN_DECL()
 
   /** @brief Cursor on dictionnaries (opaque type) */
   typedef struct xbt_dict_cursor_ *xbt_dict_cursor_t;
-  XBT_PUBLIC xbt_dict_cursor_t xbt_dict_cursor_new(const xbt_dict_t dict);
+  XBT_PUBLIC(xbt_dict_cursor_t) xbt_dict_cursor_new(const xbt_dict_t dict);
   XBT_PUBLIC(void)               xbt_dict_cursor_free(xbt_dict_cursor_t *cursor);
 
   XBT_PUBLIC(void) xbt_dict_cursor_rewind(xbt_dict_cursor_t cursor);
index 52ea05c..3a07da1 100644 (file)
@@ -62,13 +62,13 @@ SG_BEGIN_DECL()
    typedef struct xbt_dynar_s *xbt_dynar_t;
 
 
-  XBT_PUBLIC xbt_dynar_t   xbt_dynar_new(unsigned long elm_size, 
+  XBT_PUBLIC(xbt_dynar_t)   xbt_dynar_new(unsigned long elm_size, 
                             void_f_pvoid_t *free_func);
   XBT_PUBLIC(void)          xbt_dynar_free(xbt_dynar_t *dynar);
   XBT_PUBLIC(void)          xbt_dynar_free_voidp(void *dynar);
   XBT_PUBLIC(void)          xbt_dynar_free_container(xbt_dynar_t *dynar);
 
-  XBT_PUBLIC unsigned long xbt_dynar_length(const xbt_dynar_t dynar);
+  XBT_PUBLIC(unsigned long) xbt_dynar_length(const xbt_dynar_t dynar);
   XBT_PUBLIC(void)          xbt_dynar_reset(xbt_dynar_t dynar);
   XBT_PUBLIC(void)          xbt_dynar_shrink(xbt_dynar_t dynar, int empty_slots);
 
index 8683075..4586d76 100644 (file)
@@ -230,7 +230,7 @@ typedef struct { __ex_mctx_struct } __ex_mctx_t;
  */
 
 /* we need this symbol here, even if it breaks a bit the module separation */
-XBT_PUBLIC long int gras_os_getpid(void);
+XBT_PUBLIC(long) int gras_os_getpid(void);
 
 /** @brief different kind of errors */
 typedef enum {
@@ -245,7 +245,7 @@ typedef enum {
   thread_error    /**< error while [un]locking */
 } xbt_errcat_t;
 
-XBT_PUBLIC const char * xbt_ex_catname(xbt_errcat_t cat);
+XBT_PUBLIC(const char *) xbt_ex_catname(xbt_errcat_t cat);
 
 /** @brief Structure describing an exception */
 typedef struct {
index 15d9c95..dacb28a 100644 (file)
@@ -55,7 +55,7 @@ XBT_PUBLIC(int) xbt_fifo_is_in(xbt_fifo_t, void *);
  *  @{
  */
 
-XBT_PUBLIC xbt_fifo_item_t xbt_fifo_new_item(void);
+XBT_PUBLIC(xbt_fifo_item_t) xbt_fifo_new_item(void);
 XBT_PUBLIC(void) xbt_fifo_set_item_content(xbt_fifo_item_t, void *);
 XBT_PUBLIC(void*) xbt_fifo_get_item_content(xbt_fifo_item_t);
 XBT_PUBLIC(void) xbt_fifo_free_item(xbt_fifo_item_t);
index 19d72bb..d04d673 100644 (file)
@@ -20,7 +20,7 @@
 XBT_PUBLIC(double) xbt_os_time(void);
 
 typedef struct s_xbt_os_timer *xbt_os_timer_t;
-XBT_PUBLIC xbt_os_timer_t xbt_os_timer_new(void);
+XBT_PUBLIC(xbt_os_timer_t) xbt_os_timer_new(void);
 XBT_PUBLIC(void) xbt_os_timer_free(xbt_os_timer_t timer);
 XBT_PUBLIC(void) xbt_os_timer_start(xbt_os_timer_t timer);
 XBT_PUBLIC(void) xbt_os_timer_stop(xbt_os_timer_t timer);