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
No vm when ptask on
[simgrid.git]
/
src
/
xbt
/
lib.c
diff --git
a/src/xbt/lib.c
b/src/xbt/lib.c
index
3dfdca5
..
572c303
100644
(file)
--- a/
src/xbt/lib.c
+++ b/
src/xbt/lib.c
@@
-1,6
+1,6
@@
/* lib - a generic library, variation over dictionary */
/* lib - a generic library, variation over dictionary */
-/* Copyright (c) 2011. The SimGrid Team.
+/* Copyright (c) 2011
, 2013
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-83,7
+83,6
@@
void xbt_lib_unset(xbt_lib_t lib, const char *key, int level, int invoke_callbac
if (!obj) {
XBT_WARN("no key %s at level %d", key, level);
if (!obj) {
XBT_WARN("no key %s at level %d", key, level);
- return;
} else {
XBT_DEBUG("Remove %p of key %s at level %d", obj, key, level);
if (invoke_callback)
} else {
XBT_DEBUG("Remove %p of key %s at level %d", obj, key, level);
if (invoke_callback)
@@
-91,7
+90,7
@@
void xbt_lib_unset(xbt_lib_t lib, const char *key, int level, int invoke_callbac
elts[level] = NULL;
}
elts[level] = NULL;
}
- /* check if there
are
elements of this key */
+ /* check if there
still remains any
elements of this key */
int i;
for (i = 0; i < lib->levels; i++) {
if (elts[i] != NULL)
int i;
for (i = 0; i < lib->levels; i++) {
if (elts[i] != NULL)