summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-08-25 21:57:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-25 21:57:06 (GMT)
commit1302c9f514686e32065130ec9a80eb0db224e819 (patch)
treea9891d1a8906165ccabc6e005da5eb4fda1306d7 /git-compat-util.h
parentb590720f2cd3638930847f5abf646275caf8d334 (diff)
parentf4c3edc0b156362a92bf9de4f0ec794e90a757fc (diff)
downloadgit-1302c9f514686e32065130ec9a80eb0db224e819.zip
git-1302c9f514686e32065130ec9a80eb0db224e819.tar.gz
git-1302c9f514686e32065130ec9a80eb0db224e819.tar.bz2
Merge branch 'jk/long-error-messages'
The codepath to produce error messages had a hard-coded limit to the size of the message, primarily to avoid memory allocation while calling die(). * jk/long-error-messages: vreportf: avoid intermediate buffer vreportf: report to arbitrary filehandles
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 392da79..f649e81 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -389,7 +389,6 @@ struct strbuf;
/* General helper functions */
extern void vreportf(const char *prefix, const char *err, va_list params);
-extern void vwritef(int fd, const char *prefix, const char *err, va_list params);
extern NORETURN void usage(const char *err);
extern NORETURN void usagef(const char *err, ...) __attribute__((format (printf, 1, 2)));
extern NORETURN void die(const char *err, ...) __attribute__((format (printf, 1, 2)));
@@ -425,6 +424,7 @@ static inline int const_error(void)
extern void set_die_routine(NORETURN_PTR void (*routine)(const char *err, va_list params));
extern void set_error_routine(void (*routine)(const char *err, va_list params));
extern void set_die_is_recursing_routine(int (*routine)(void));
+extern void set_error_handle(FILE *);
extern int starts_with(const char *str, const char *prefix);