From bf8ed7c701d350f04a3f30c9e4333120155b622c Mon Sep 17 00:00:00 2001 From: cherierm Date: Wed, 7 Feb 2007 16:40:46 +0000 Subject: [PATCH 1/1] change free be xbt_free_f git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3107 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/trace_mgr.c | 2 +- src/xbt/dict_private.h | 12 ++++++------ src/xbt/ex_interface.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/surf/trace_mgr.c b/src/surf/trace_mgr.c index aee5753261..f8745e9e47 100644 --- a/src/surf/trace_mgr.c +++ b/src/surf/trace_mgr.c @@ -23,7 +23,7 @@ tmgr_history_t tmgr_history_new(void) 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; } diff --git a/src/xbt/dict_private.h b/src/xbt/dict_private.h index c037eb7e88..7869357aeb 100644 --- a/src/xbt/dict_private.h +++ b/src/xbt/dict_private.h @@ -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; -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 ]################################################*/ -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); -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_ */ diff --git a/src/xbt/ex_interface.h b/src/xbt/ex_interface.h index ad82bd2a2a..e5cb172f26 100644 --- a/src/xbt/ex_interface.h +++ b/src/xbt/ex_interface.h @@ -11,7 +11,7 @@ #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_ */ -- 2.20.1