summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-08-16 10:08:02 +0700
committerJunio C Hamano <gitster@pobox.com>2014-08-18 10:15:08 -0700
commitf8bb1d94311b7438e7e9831b51ffb047b7ae65d7 (patch)
tree70634f7bafe3b391d92fc8200fe336b5d273db0e /git-compat-util.h
parent41ca19b6a6ca5ad6fea246bd400717c16b80b32c (diff)
downloadgit-f8bb1d94311b7438e7e9831b51ffb047b7ae65d7.tar.gz
wrapper.c: introduce gentle xmallocz that does not die()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index f587749b7c..8785fd30d9 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -593,6 +593,7 @@ extern try_to_free_t set_try_to_free_routine(try_to_free_t);
extern char *xstrdup(const char *str);
extern void *xmalloc(size_t size);
extern void *xmallocz(size_t size);
+extern void *xmallocz_gently(size_t size);
extern void *xmemdupz(const void *data, size_t len);
extern char *xstrndup(const char *str, size_t len);
extern void *xrealloc(void *ptr, size_t size);