Message ID | 877fi1ye5m.fsf@blackfin.pond.sub.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 02/18/2016 01:08 PM, Markus Armbruster wrote: > Eric Blake <eblake@redhat.com> writes: > >> I'm still working on my documentation patches for QAPI visitors >> (https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg03504.html), >> but am finding it easier to nuke bad code up front than to document >> that it is bad only to later nuke it. So this pulls bits and pieces >> of other patches that Markus I have previously posted, along with >> some new glue, to get rid of some of the worst of the cruft. >> > > Applied to qapi-next with minor tweaks. Diff between the final > appended. I'd appreciate a look-over. Looks correct to me.
--- a/scripts/qapi-visit.py +++ b/scripts/qapi-visit.py @@ -41,7 +41,7 @@ static void visit_type_%(c_type)s_fields(Visitor *v, %(c_type)s *obj, Error **er c_type=typ.c_name()) -def gen_visit_struct_fields(name, base, members, variants=None): +def gen_visit_struct_fields(name, base, members, variants): ret = '' if base: