Re: [PATCH 3/3] log-tree: use FLEX_ARRAY in name_decoration

2014-08-26 Thread Eric Sunshine
On Tue, Aug 26, 2014 at 6:24 AM, Jeff King wrote: > 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 alloc

[PATCH 3/3] log-tree: use FLEX_ARRAY in name_decoration

2014-08-26 Thread Jeff King
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