[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:43:14 CEST 2013


On Sun, Apr 7, 2013 at 2:41 PM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> 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))

-fexceptions... nevermind.




More information about the CGit mailing list