From: Martin Quinson Date: Wed, 1 Jun 2016 09:14:18 +0000 (+0200) Subject: rename xbt_strbuff_empty() to xbt_strbuff_clear() X-Git-Tag: v3_14~1069 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/168e93ae4556e38c67a48f9b1571f375bcc64f0f rename xbt_strbuff_empty() to xbt_strbuff_clear() --- diff --git a/include/xbt/strbuff.h b/include/xbt/strbuff.h index a165786a7a..585d719d09 100644 --- a/include/xbt/strbuff.h +++ b/include/xbt/strbuff.h @@ -36,7 +36,7 @@ struct xbt_strbuff { typedef struct xbt_strbuff s_xbt_strbuff_t; typedef struct xbt_strbuff* xbt_strbuff_t; -XBT_PUBLIC(void) xbt_strbuff_empty(xbt_strbuff_t b); +XBT_PUBLIC(void) xbt_strbuff_clear(xbt_strbuff_t b); XBT_PUBLIC(xbt_strbuff_t) xbt_strbuff_new(void); XBT_PUBLIC(xbt_strbuff_t) xbt_strbuff_new_from(const char *s); XBT_PUBLIC(void) xbt_strbuff_free(xbt_strbuff_t b); diff --git a/src/xbt/xbt_strbuff.c b/src/xbt/xbt_strbuff.c index a966f309bb..9aead1ac34 100644 --- 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 */ -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'; @@ -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_empty(res); + xbt_strbuff_clear(res); return res; }