mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06: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:
parent
83a02706bb
commit
bb33729043
4 changed files with 10 additions and 7 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue