Re: [Qemu-devel] [PATCH v4 05/10] qapi: Utilize implicit struct visits

2016-03-09 Thread Eric Blake
On 03/08/2016 09:11 AM, Eric Blake wrote: >>> >>> -ret += gen_visit_members(arg_type.members, skiperr=dealloc) >> >> Unless I'm mistaken, this is the only use of skiperr. Follow up with a >> patch to drop the parameter and simplify? > > Oh, nice. I noticed some cleanups in patch 6/10, but m

Re: [Qemu-devel] [PATCH v4 05/10] qapi: Utilize implicit struct visits

2016-03-08 Thread Markus Armbruster
Eric Blake writes: > On 03/08/2016 11:09 AM, Markus Armbruster wrote: > >> This patch actually fixes a similar issue in the qmp_marshal_FOO() >> functions. > > Indeed, and I didn't even realize it. I'll add that to the commit message :) > >> >> To keep ignoring it in the qapi_event_send_BAR() fu

Re: [Qemu-devel] [PATCH v4 05/10] qapi: Utilize implicit struct visits

2016-03-08 Thread Eric Blake
On 03/08/2016 11:09 AM, Markus Armbruster wrote: > This patch actually fixes a similar issue in the qmp_marshal_FOO() > functions. Indeed, and I didn't even realize it. I'll add that to the commit message :) > > To keep ignoring it in the qapi_event_send_BAR() functions is okay. > It's fairly e

Re: [Qemu-devel] [PATCH v4 05/10] qapi: Utilize implicit struct visits

2016-03-08 Thread Markus Armbruster
Eric Blake writes: > On 03/08/2016 08:10 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Rather than generate inline per-member visits, take advantage >>> of the 'visit_type_FOO_members()' function for both event and >>> command marshalling. This is possible now that implicit >>> str

Re: [Qemu-devel] [PATCH v4 05/10] qapi: Utilize implicit struct visits

2016-03-08 Thread Eric Blake
On 03/08/2016 08:10 AM, Markus Armbruster wrote: > Eric Blake writes: > >> Rather than generate inline per-member visits, take advantage >> of the 'visit_type_FOO_members()' function for both event and >> command marshalling. This is possible now that implicit >> structs can be visited like any

Re: [Qemu-devel] [PATCH v4 05/10] qapi: Utilize implicit struct visits

2016-03-08 Thread Markus Armbruster
Eric Blake writes: > Rather than generate inline per-member visits, take advantage > of the 'visit_type_FOO_members()' function for both event and > command marshalling. This is possible now that implicit > structs can be visited like any other. > > Generated code shrinks accordingly; events ini

[Qemu-devel] [PATCH v4 05/10] qapi: Utilize implicit struct visits

2016-03-05 Thread Eric Blake
Rather than generate inline per-member visits, take advantage of the 'visit_type_FOO_members()' function for both event and command marshalling. This is possible now that implicit structs can be visited like any other. Generated code shrinks accordingly; events initialize a struct based on parame