inline xalloc_flex() into FLEXPTR_ALLOC_MEM
commit0ac52a38e8008fa5bb243e150031681420c639fa
authorRené Scharfe <l.s.r@web.de>
Sun, 16 Oct 2016 10:06:02 +0000 (16 12:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2016 21:42:56 +0000 (17 14:42 -0700)
treee0002e605c44b9316eed9fdbf8074db83700f72e
parente9451782cfbe9fc9105bf63228bca3e2265af8f8
inline xalloc_flex() into FLEXPTR_ALLOC_MEM

Allocate and copy directly in FLEXPTR_ALLOC_MEM and remove the now
unused helper function xalloc_flex().  The resulting code is shorter
and the offset arithmetic is a bit simpler.

Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h