unicorn/qemu/scripts
Eric Blake 8a6303f9cd
qapi: Segregate anonymous unions into alternates in generator
Special-casing 'discriminator == {}' for handling anonymous unions
is getting awkward; since this particular type is not always a
dictionary on the wire, it is easier to treat it as a completely
different class of type, "alternate", so that if a type is listed
in the union_types array, we know it is not an anonymous union.

This patch just further segregates union handling, to make sure that
anonymous unions are not stored in union_types, and splitting up
check_union() into separate functions. A future patch will change
the qapi grammar, and having the segregation already in place will
make it easier to deal with the distinct meta-type.

Backports commit 811d04fd0cff1229480d3f5b2e349f646ab6e3c1 from qemu
2018-02-19 13:44:17 -05:00
..
create_config more cleanup qemu/configure 2017-01-19 14:11:54 +08:00
make_device_config.sh fix file perms 2015-08-28 21:05:38 -07:00
ordereddict.py import 2015-08-21 15:04:50 +08:00
qapi-event.py import 2015-08-21 15:04:50 +08:00
qapi-types.py qapi: Segregate anonymous unions into alternates in generator 2018-02-19 13:44:17 -05:00
qapi-visit.py qapi: Segregate anonymous unions into alternates in generator 2018-02-19 13:44:17 -05:00
qapi.py qapi: Segregate anonymous unions into alternates in generator 2018-02-19 13:44:17 -05:00