summaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2014-09-07 09:03:32 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-08 11:26:45 -0700
commitd07235a027e0c7ed2fee1aeb3bee8a858bf5ca58 (patch)
tree8805b3767a1d86908c448aef92e56036fdeee92b /strbuf.h
parentDocumentation: fix missing text for rev-parse --verify (diff)
downloadtgif-d07235a027e0c7ed2fee1aeb3bee8a858bf5ca58.tar.xz
strbuf: export strbuf_addchars()
Move strbuf_addchars() to strbuf.c, where it belongs, and make it available for other callers. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 73e80cea69..2c34753a68 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -121,6 +121,7 @@ static inline void strbuf_addbuf(struct strbuf *sb, const struct strbuf *sb2) {
strbuf_add(sb, sb2->buf, sb2->len);
}
extern void strbuf_adddup(struct strbuf *sb, size_t pos, size_t len);
+extern void strbuf_addchars(struct strbuf *sb, int c, size_t n);
typedef size_t (*expand_fn_t) (struct strbuf *sb, const char *placeholder, void *context);
extern void strbuf_expand(struct strbuf *sb, const char *format, expand_fn_t fn, void *context);