[PATCH 14/19] ui-summary.c: use struct strbuf instead of fixed-size buffers

Jason A. Donenfeld Jason at zx2c4.com
Sun Apr 7 14:41:51 CEST 2013


On Sun, Apr 7, 2013 at 2:36 PM, John Keeping <john at keeping.me.uk> wrote:
>     free


Any opinions on using gcc's __attribute__((cleanup))? It could make
things a bit cleaner, but it's something of an awful gcc hack.

#define strbuf_auto struct strbuf __attribute__((cleanup(strbuf_release))




More information about the CGit mailing list