[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH v7 29/31] qapi: Simplify semantics of
From: |
Eric Blake |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH v7 29/31] qapi: Simplify semantics of visit_next_list() |
Date: |
Thu, 10 Dec 2015 21:04:52 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 12/10/2015 10:32 AM, Eric Blake wrote:
> On 12/07/2015 08:55 PM, Eric Blake wrote:
>
>> We can greatly simplify things by hoisting the special case
>> into the start() routine, and flipping the order in the loop
>> to visit before advance:
>>
>> start(head)
>> element = *head
>> while (element) {
>> visit(element)
>> element = next(element)
>> }
>>
> Looking at this, it is inconsistent with start_struct (where name comes
> AFTER the object); that is, I think this should probably be:
>
> void (*start_list)(Visitor *v, GenericList **list, const char *name,
> Error **errp);
>
> although I'll still wait for review comments before respinning.
I've also bisected this patch as causing assertion failures in
qemu-iotests 041 and 139, so I'll have to sort that out on the respin.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature