On Tue, Feb 18, 2014 at 8:40 AM, Nguyễn Thái Ngọc Duy <pclo...@gmail.com> wrote:
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclo...@gmail.com>
> ---
> index 73e80ce..aec9fdb 100644
> --- a/strbuf.h
> +++ b/strbuf.h
> @@ -116,6 +116,10 @@ extern void strbuf_add(struct strbuf *, const void *, 
> size_t);
>  static inline void strbuf_addstr(struct strbuf *sb, const char *s) {
>         strbuf_add(sb, s, strlen(s));
>  }
> +static inline void strbuf_addstr_at(struct strbuf *sb, size_t len, const 
> char *s) {
> +       strbuf_setlen(sb, len);
> +       strbuf_add(sb, s, strlen(s));
> +}

Update Documentation/technical/api-strbuf.txt?

>  static inline void strbuf_addbuf(struct strbuf *sb, const struct strbuf 
> *sb2) {
>         strbuf_grow(sb, sb2->len);
>         strbuf_add(sb, sb2->buf, sb2->len);
> --
> 1.8.5.2.240.g8478abd
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to