diff --git a/legacy/eina/src/include/eina_strbuf.h b/legacy/eina/src/include/eina_strbuf.h index a22851479b..9534b8e7d6 100644 --- a/legacy/eina/src/include/eina_strbuf.h +++ b/legacy/eina/src/include/eina_strbuf.h @@ -21,7 +21,7 @@ EAPI void eina_strbuf_remove(Eina_Strbuf *buf, unsigned int start, unsigned int EAPI const char *eina_strbuf_string_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1); EAPI char *eina_strbuf_string_remove(Eina_Strbuf *buf) EINA_ARG_NONNULL(1); EAPI size_t eina_strbuf_length_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1); -EAPI int eina_strbuf_replace(Eina_Strbuf *buf, const char *str, +EAPI Eina_Bool eina_strbuf_replace(Eina_Strbuf *buf, const char *str, const char *with, unsigned int n) EINA_ARG_NONNULL(1, 2, 3); #define eina_strbuf_replace_first(buf, str, with) \ eina_strbuf_replace(buf, str, with, 1) diff --git a/legacy/eina/src/lib/eina_strbuf.c b/legacy/eina/src/lib/eina_strbuf.c index f2d7a66938..1125b9b568 100644 --- a/legacy/eina/src/lib/eina_strbuf.c +++ b/legacy/eina/src/lib/eina_strbuf.c @@ -41,7 +41,7 @@ struct _Eina_Strbuf }; static void _eina_strbuf_init(Eina_Strbuf *buf); -static int _eina_strbuf_resize(Eina_Strbuf *buf, size_t size); +static Eina_Bool _eina_strbuf_resize(Eina_Strbuf *buf, size_t size); #define _eina_strbuf_grow(buf, _size) \ (_size > buf->size) ? _eina_strbuf_resize(buf, _size) : EINA_TRUE @@ -286,7 +286,7 @@ eina_strbuf_length_get(Eina_Strbuf *buf) * * @return true on success */ -EAPI int +EAPI Eina_Bool eina_strbuf_replace(Eina_Strbuf *buf, const char *str, const char *with, unsigned int n) { @@ -439,7 +439,7 @@ _eina_strbuf_init(Eina_Strbuf *buf) * * @return true on success */ -static int +static Eina_Bool _eina_strbuf_resize(Eina_Strbuf *buf, size_t size) { char *buffer;