compat: move strdup(3) replacement to its own file
authorRené Scharfe <l.s.r@web.de>
Sat, 3 Sep 2016 15:59:15 +0000 (17:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Sep 2016 17:41:45 +0000 (10:41 -0700)
commitca2baa3f7532dfe1816b623f39489ed10f3c9a49
tree4422885a6aa8511f04adedfbedc71c8599ad932e
parente0c1ceafc5bece92d35773a75fff59497e1d9bd5
compat: move strdup(3) replacement to its own file

Move our implementation of strdup(3) out of compat/nedmalloc/ and
allow it to be used independently from USE_NED_ALLOCATOR.  The
original nedmalloc doesn't come with strdup() and doesn't need it.
Only _users_ of nedmalloc need it, which was added when we imported
it to our compat/ hierarchy.

This reduces the difference of our copy of nedmalloc from the
original, making it easier to update, and allows for easier testing
and reusing of our version of strdup().

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/nedmalloc/nedmalloc.c
compat/strdup.c [new file with mode: 0644]
git-compat-util.h