And correct return type

SVN revision: 45967
This commit is contained in:
Sebastian Dransfeld 2010-02-07 19:24:28 +00:00
parent 69368ae6bd
commit 95d903dab7
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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;