eina: eina_strbuf_append_length(sb, s, 0) is possible
authorbilliob <billiob>
Tue, 4 Oct 2011 20:47:15 +0000 (20:47 +0000)
committerbilliob <billiob@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 20:47:15 +0000 (20:47 +0000)
also fix typo in doc, remove a trailing space and myself to authors

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@63811 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

AUTHORS
src/include/eina_strbuf.h
src/lib/eina_strbuf_common.c

diff --git a/AUTHORS b/AUTHORS
index 170169b..354de52 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -18,3 +18,4 @@ Tom Hacohen <tom@stosb.com>
 Sebastian Dransfeld <sd@tango.flipp.net>
 Myungjae Lee <mjae.lee@samsung.com>
 Youness Alaoui <kakaroto@kakaroto.homelinux.net>
+billiob (Boris Faure) <billiob@gmail.com>
index d4f6b34..0915023 100644 (file)
@@ -183,7 +183,7 @@ EAPI Eina_Bool eina_strbuf_append_n(Eina_Strbuf *buf, const char *str, size_t ma
  * This function appends @p str to @p buf. @p str must be of size at
  * most @p length. It is slightly faster than eina_strbuf_append() as
  * it does not compute the size of @p str. It is useful when dealing
- * with strings of known size, such as eina_strngshare. If @p buf
+ * with strings of known size, such as eina_stringshare. If @p buf
  * can't append it, #EINA_FALSE is returned, otherwise #EINA_TRUE is
  * returned.
  *
@@ -191,7 +191,7 @@ EAPI Eina_Bool eina_strbuf_append_n(Eina_Strbuf *buf, const char *str, size_t ma
  * @see eina_strbuf_append()
  * @see eina_strbuf_append_n()
  */
-EAPI Eina_Bool eina_strbuf_append_length(Eina_Strbuf *buf, const char *str, size_t length) EINA_ARG_NONNULL(1, 2);
+EAPI Eina_Bool eina_strbuf_append_length(Eina_Strbuf *buf, const char *str, size_t length) EINA_ARG_NONNULL(1);
 
 /**
  * @brief Append a character to a string buffer, reallocating as
index abdd57c..46067cd 100644 (file)
@@ -447,7 +447,7 @@ eina_strbuf_common_append_length(size_t csize,
 
    if (EINA_UNLIKELY(!_eina_strbuf_common_grow(csize, buf, buf->len + length)))
       return EINA_FALSE;
-   memcpy(((unsigned char *)(buf->buf)) + (buf->len * csize), str, 
+   memcpy(((unsigned char *)(buf->buf)) + (buf->len * csize), str,
           length * csize);
    buf->len += length;
    memset(((unsigned char *)(buf->buf)) + (buf->len * csize), 0, csize);