qemu/scripts
Eric Blake 570cd8d119 qapi-types: Consolidate gen_struct() and gen_union()
These two methods are now close enough that we can finally merge
them, relying on the fact that simple unions now provide a
reasonable local_members.  Change gen_struct() to gen_object()
that handles all forms of QAPISchemaObjectType, and rename and
shrink gen_union() to gen_variants() to handle the portion of
gen_object() needed when variants are present.

gen_struct_fields() now has a single caller, so it no longer
needs an optional parameter; however, I did not choose to inline
it into the caller.

No difference to generated code.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1447836791-369-3-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-12-17 08:21:26 +01:00
..
2015-03-10 10:49:25 +01:00
2015-10-29 17:59:27 +00:00
2015-09-04 13:18:04 +02:00
2015-10-12 18:44:54 +02:00
2015-10-12 18:46:50 +02:00
2015-10-29 17:59:27 +00:00
2015-02-16 15:07:18 +00:00