summaryrefslogtreecommitdiff
path: root/patch-delta.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-08-26 06:24:20 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-08-27 07:44:27 -0700
commit2e3dfb216991974b60fdb1933eb3331e03383e61 (patch)
treea5b7fc4e71e77832dcbb8c5d5a55de9222ac7972 /patch-delta.c
parentlog-tree: make name_decoration hash static (diff)
downloadtgif-2e3dfb216991974b60fdb1933eb3331e03383e61.tar.xz
log-tree: use FLEX_ARRAY in name_decoration
We are already using the flex-array technique; let's annotate it with our usual FLEX_ARRAY macro. Besides being more readable, this is slightly more efficient on compilers that understand flex-arrays. Note that we need to bump the allocation in add_name_decoration, which did not explicitly add one byte for the NUL terminator of the string we are putting into the flex-array (it did not need to before, because the struct itself was over-allocated by one byte). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'patch-delta.c')
0 files changed, 0 insertions, 0 deletions