Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change free be xbt_free_f
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Feb 2007 16:40:46 +0000 (16:40 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Feb 2007 16:40:46 +0000 (16:40 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3107 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/trace_mgr.c
src/xbt/dict_private.h
src/xbt/ex_interface.h

index aee5753..f8745e9 100644 (file)
@@ -23,7 +23,7 @@ tmgr_history_t tmgr_history_new(void)
 
   h = xbt_new0(s_tmgr_history_t, 1);
 
 
   h = xbt_new0(s_tmgr_history_t, 1);
 
-  h->heap = xbt_heap_new(8, free);     /* Why 8 ? Well, why not... */
+  h->heap = xbt_heap_new(8, xbt_free_f);       /* Why 8 ? Well, why not... */
 
   return h;
 }
 
   return h;
 }
index c037eb7..7869357 100644 (file)
@@ -37,17 +37,17 @@ typedef struct xbt_dict_ {
 typedef struct xbt_dict_cursor_ s_xbt_dict_cursor_t;
 
 extern xbt_mallocator_t dict_elm_mallocator;
 typedef struct xbt_dict_cursor_ s_xbt_dict_cursor_t;
 
 extern xbt_mallocator_t dict_elm_mallocator;
-XBT_PUBLIC(extern void*) dict_elm_mallocator_new_f(void);
-XBT_PUBLIC(extern void) dict_elm_mallocator_free_f(void* elem);
-XBT_PUBLIC(extern void) dict_elm_mallocator_reset_f(void* elem);
+extern void* dict_elm_mallocator_new_f(void);
+extern void dict_elm_mallocator_free_f(void* elem);
+extern void dict_elm_mallocator_reset_f(void* elem);
 
 /*####[ Function prototypes ]################################################*/
 
 /*####[ Function prototypes ]################################################*/
-XBT_PUBLIC(xbt_dictelm_t) xbt_dictelm_new(const char *key,
+xbt_dictelm_t xbt_dictelm_new(const char *key,
                              int key_len,
                              void *content,
                              void_f_pvoid_t free_f,
                              xbt_dictelm_t next);
                              int key_len,
                              void *content,
                              void_f_pvoid_t free_f,
                              xbt_dictelm_t next);
-XBT_PUBLIC(void) xbt_dictelm_free(xbt_dictelm_t element);
-XBT_PUBLIC(void) xbt_dict_add_element(xbt_dict_t dict, xbt_dictelm_t element);
+void xbt_dictelm_free(xbt_dictelm_t element);
+void xbt_dict_add_element(xbt_dict_t dict, xbt_dictelm_t element);
 
 #endif  /* _XBT_DICT_PRIVATE_H_ */
 
 #endif  /* _XBT_DICT_PRIVATE_H_ */
index ad82bd2..e5cb172 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef _XBT_EX_INTERFACE_H_
 #define _XBT_EX_INTERFACE_H_
 
 #ifndef _XBT_EX_INTERFACE_H_
 #define _XBT_EX_INTERFACE_H_
 
-XBT_PUBLIC(void) xbt_ex_setup_backtrace(xbt_ex_t *e);
+void xbt_ex_setup_backtrace(xbt_ex_t *e);
 
 #endif  /* _XBT_EX_INTERFACE_H_ */
 
 
 #endif  /* _XBT_EX_INTERFACE_H_ */