A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load simgrid_config ASAP so that _GNU_SOURCE really get defined before stdio is loaded
[simgrid.git]
/
src
/
xbt
/
mallocator.c
diff --git
a/src/xbt/mallocator.c
b/src/xbt/mallocator.c
index
1111a34
..
f1972a0
100644
(file)
--- a/
src/xbt/mallocator.c
+++ b/
src/xbt/mallocator.c
@@
-40,8
+40,8
@@
xbt_mallocator_t xbt_mallocator_new(int size,
xbt_mallocator_t m;
xbt_mallocator_t m;
- xbt_assert
0
(size > 0, "size must be positive");
- xbt_assert
0
(new_f != NULL && free_f != NULL
+ xbt_assert(size > 0, "size must be positive");
+ xbt_assert(new_f != NULL && free_f != NULL
&& reset_f != NULL, "invalid parameter");
/* Let's force 0 size mallocator! (Dirty hack, blame Martin :) ) */
&& reset_f != NULL, "invalid parameter");
/* Let's force 0 size mallocator! (Dirty hack, blame Martin :) ) */
@@
-80,7
+80,7
@@
void xbt_mallocator_free(xbt_mallocator_t m)
{
int i;
{
int i;
- xbt_assert
0
(m != NULL, "Invalid parameter");
+ xbt_assert(m != NULL, "Invalid parameter");
XBT_VERB("Frees mallocator %p (size:%d/%d)", m, m->current_size,
m->max_size);
XBT_VERB("Frees mallocator %p (size:%d/%d)", m, m->current_size,
m->max_size);