Re: [Qemu-devel] [PATCH RFC 01/21] qapi: Streamline boilerplate comment generation

2018-02-05 Thread Marc-Andre Lureau
On Fri, Feb 2, 2018 at 2:03 PM, Markus Armbruster wrote: > Every generator has separate boilerplate for .h and .c, and their > differences are boring. All of them repeat the license note. > > Reduce the repetition as follows. Move common text like the license > note to common open_output(), next

Re: [Qemu-devel] [PATCH RFC 01/21] qapi: Streamline boilerplate comment generation

2018-02-03 Thread Markus Armbruster
Eric Blake writes: > On 02/02/2018 07:03 AM, Markus Armbruster wrote: >> Every generator has separate boilerplate for .h and .c, and their >> differences are boring. All of them repeat the license note. >> >> Reduce the repetition as follows. Move common text like the license >> note to common

[Qemu-devel] [PATCH RFC 01/21] qapi: Streamline boilerplate comment generation

2018-02-02 Thread Markus Armbruster
Every generator has separate boilerplate for .h and .c, and their differences are boring. All of them repeat the license note. Reduce the repetition as follows. Move common text like the license note to common open_output(), next to the existintg common text there. For each generator, replace th

Re: [Qemu-devel] [PATCH RFC 01/21] qapi: Streamline boilerplate comment generation

2018-02-02 Thread Eric Blake
On 02/02/2018 07:03 AM, Markus Armbruster wrote: > Every generator has separate boilerplate for .h and .c, and their > differences are boring. All of them repeat the license note. > > Reduce the repetition as follows. Move common text like the license > note to common open_output(), next to the