summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
17ccf2e)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@688
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
:(NULL))
#define xbt_malloc(n) (malloc(n) ?: (xbt_die("memory allocation error"),NULL))
#define xbt_malloc0(n) (calloc( (n),1 ) ?: (xbt_die("memory allocation error"),NULL))
:(NULL))
#define xbt_malloc(n) (malloc(n) ?: (xbt_die("memory allocation error"),NULL))
#define xbt_malloc0(n) (calloc( (n),1 ) ?: (xbt_die("memory allocation error"),NULL))
-#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:xbt_die("memory allocation error"),NULL) \
+#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:(xbt_die("memory allocation error"),NULL)) \
: xbt_malloc(s)) \
: (p? (free(p),NULL) \
: NULL))
: xbt_malloc(s)) \
: (p? (free(p),NULL) \
: NULL))