X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c54b74368b97bb0d0b42aea6857681d7ff9df910..a01e72b3aab192e7f8a4e2f26e9cde6ecc9a94ec:/src/xbt/xbt_main.c diff --git a/src/xbt/xbt_main.c b/src/xbt/xbt_main.c index 4d3c1d6604..1238139e06 100644 --- a/src/xbt/xbt_main.c +++ b/src/xbt/xbt_main.c @@ -105,3 +105,15 @@ xbt_exit(){ free(xbt_binary_name); } + +/* these two functions belong to xbt/sysdep.h, which have no corresponding .c file */ +/** @brief like free, but you can be sure that it is a function */ +XBT_PUBLIC(void) xbt_free_f(void* p) { + free(p); +} + +/** @brief should be given a pointer to pointer, and frees the second one */ +XBT_PUBLIC(void) xbt_free_ref(void *d){ + free(*(void**)d); +} +