mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 15:48:20 +00:00
qapi: Support downstream simple unions
Enhance the testsuite to cover downstream simple unions, including when a union branch is a downstream name. Update the generator to mangle the union names in the appropriate places. Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
83a02706bb
commit
bb33729043
@ -193,7 +193,7 @@ const int %(name)s_qtypes[QTYPE_MAX] = {
|
||||
|
||||
def generate_union(expr, meta):
|
||||
|
||||
name = expr[meta]
|
||||
name = c_name(expr[meta])
|
||||
typeinfo = expr['data']
|
||||
|
||||
base = expr.get('base')
|
||||
|
Reference in New Issue
Block a user