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
more dupplicated code ritual sacrifice and cleanups
[simgrid.git]
/
src
/
xbt
/
xbt_strbuff.c
diff --git
a/src/xbt/xbt_strbuff.c
b/src/xbt/xbt_strbuff.c
index
a966f30
..
9aead1a
100644
(file)
--- a/
src/xbt/xbt_strbuff.c
+++ b/
src/xbt/xbt_strbuff.c
@@
-14,7
+14,7
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(strbuff, xbt, "String buffers");
/** @brief Remove any content from the buffer */
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(strbuff, xbt, "String buffers");
/** @brief Remove any content from the buffer */
-inline void xbt_strbuff_
empty
(xbt_strbuff_t b)
+inline void xbt_strbuff_
clear
(xbt_strbuff_t b)
{
b->used = 0;
b->data[0] = '\0';
{
b->used = 0;
b->data[0] = '\0';
@@
-26,7
+26,7
@@
xbt_strbuff_t xbt_strbuff_new(void)
xbt_strbuff_t res = xbt_malloc(sizeof(s_xbt_strbuff_t));
res->data = xbt_malloc(512);
res->size = 512;
xbt_strbuff_t res = xbt_malloc(sizeof(s_xbt_strbuff_t));
res->data = xbt_malloc(512);
res->size = 512;
- xbt_strbuff_
empty
(res);
+ xbt_strbuff_
clear
(res);
return res;
}
return res;
}