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
Another doc improvement
[simgrid.git]
/
src
/
xbt
/
dynar.c
diff --git
a/src/xbt/dynar.c
b/src/xbt/dynar.c
index
5cfc493
..
4e89515
100644
(file)
--- a/
src/xbt/dynar.c
+++ b/
src/xbt/dynar.c
@@
-40,13
+40,13
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_dyn,xbt,"Dynamic arrays");
xbt_assert1(dynar->used, \
"dynar %p contains nothing",(void*)dynar)
xbt_assert1(dynar->used, \
"dynar %p contains nothing",(void*)dynar)
-static
_
XBT_INLINE
+static XBT_INLINE
void _xbt_clear_mem(void * const ptr,
const unsigned long length) {
memset(ptr, 0, length);
}
void _xbt_clear_mem(void * const ptr,
const unsigned long length) {
memset(ptr, 0, length);
}
-static
_
XBT_INLINE
+static XBT_INLINE
void
_xbt_dynar_expand(xbt_dynar_t const dynar,
const int nb) {
void
_xbt_dynar_expand(xbt_dynar_t const dynar,
const int nb) {
@@
-80,7
+80,7
@@
_xbt_dynar_expand(xbt_dynar_t const dynar,
}
}
}
}
-static
_
XBT_INLINE
+static XBT_INLINE
void *
_xbt_dynar_elm(const xbt_dynar_t dynar,
const unsigned long idx) {
void *
_xbt_dynar_elm(const xbt_dynar_t dynar,
const unsigned long idx) {
@@
-90,7
+90,7
@@
_xbt_dynar_elm(const xbt_dynar_t dynar,
return data + idx*elmsize;
}
return data + idx*elmsize;
}
-static
_
XBT_INLINE
+static XBT_INLINE
void
_xbt_dynar_get_elm(void * const dst,
const xbt_dynar_t dynar,
void
_xbt_dynar_get_elm(void * const dst,
const xbt_dynar_t dynar,
@@
-100,7
+100,7
@@
_xbt_dynar_get_elm(void * const dst,
memcpy(dst, elm, dynar->elmsize);
}
memcpy(dst, elm, dynar->elmsize);
}
-static
_
XBT_INLINE
+static XBT_INLINE
void
_xbt_dynar_put_elm(const xbt_dynar_t dynar,
const unsigned long idx,
void
_xbt_dynar_put_elm(const xbt_dynar_t dynar,
const unsigned long idx,
@@
-381,6
+381,10
@@
xbt_dynar_insert_at(xbt_dynar_t const dynar,
*
* Get the Nth element of a dynar, removing it from the dynar and moving
* all subsequent values to one position left in the dynar.
*
* Get the Nth element of a dynar, removing it from the dynar and moving
* all subsequent values to one position left in the dynar.
+ *
+ * If the object argument of this function is a non-null pointer, the removed
+ * element is copied to this address. If not, the element is freed using the
+ * free_f function passed at dynar creation.
*/
void
xbt_dynar_remove_at(xbt_dynar_t const dynar,
*/
void
xbt_dynar_remove_at(xbt_dynar_t const dynar,