diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-15 14:23:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-15 14:23:04 -0700 |
commit | d0ef5a7e427d18657b8d53223adc1d7132d6ab79 (patch) | |
tree | 16049ebe67fa4ae7b03470ae7effd8ed97d5165c /strbuf.h | |
parent | bde7f7389f56bf570c41c8e3f6b58c367b30472a (diff) | |
parent | 26db0f2e3afc043e184a5e0ce5eb7c53aeb1f644 (diff) | |
download | git-d0ef5a7e427d18657b8d53223adc1d7132d6ab79.tar.gz |
Merge branch 'jk/strbuf-vaddf'
* jk/strbuf-vaddf:
compat: fall back on __va_copy if available
strbuf: add strbuf_vaddf
compat: provide a fallback va_copy definition
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -120,6 +120,8 @@ extern void strbuf_addbuf_percentquote(struct strbuf *dst, const struct strbuf * __attribute__((format (printf,2,3))) extern void strbuf_addf(struct strbuf *sb, const char *fmt, ...); +__attribute__((format (printf,2,0))) +extern void strbuf_vaddf(struct strbuf *sb, const char *fmt, va_list ap); extern size_t strbuf_fread(struct strbuf *, size_t, FILE *); /* XXX: if read fails, any partial read is undone */ |