Re: [Qemu-block] [Qemu-devel] [PATCH v4 04/28] qapi: Add parameter to visit_end_*

2016-06-07 Thread Eric Blake
On 06/01/2016 09:36 AM, Markus Armbruster wrote: > Eric Blake writes: > >> Rather than making the dealloc visitor track of stack of pointers >> remembered during visit_start_* in order to free them during >> visit_end_*, it's a lot easier to just make all callers pass the >> same pointer to visit

Re: [Qemu-block] [Qemu-devel] [PATCH v4 04/28] qapi: Add parameter to visit_end_*

2016-06-01 Thread Markus Armbruster
Eric Blake writes: > Rather than making the dealloc visitor track of stack of pointers > remembered during visit_start_* in order to free them during > visit_end_*, it's a lot easier to just make all callers pass the > same pointer to visit_end_*. The generated code has access to the > same poin