This website requires JavaScript.
Explore
Help
Register
Sign In
mirrors
/
qemu
Watch
0
Star
0
Fork
0
You've already forked qemu
mirror of
https://github.com/qemu/qemu.git
synced
2024-12-15 15:33:29 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
9da4a314a0
qemu
/
tests
/
qapi-schema
/
alternate-empty.json
3 lines
65 B
JSON
Raw
Normal View
History
Unescape
Escape
qapi: Permit alternates with just one branch A union or alternate without branches makes no sense and doesn't work: it can't be instantiated. A union or alternate with just one branch works, but is degenerate. We accept the former, but reject the latter. Weird. docs/devel/qapi-code-gen.txt doesn't mention the difference. It claims an alternate definition is "is similar to a simple union type". Permit degenerate alternates to make them consistent with unions. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190913201349.24332-10-armbru@redhat.com>
2019-09-14 04:13:42 +08:00
#
a
l
t
e
r
n
a
t
e
s
c
a
n
n
o
t
b
e
e
m
p
t
y
{
'
a
l
t
e
r
n
a
t
e
'
:
'
A
l
t
'
,
'
d
a
t
a
'
:
{
}
}
Reference in New Issue
Copy Permalink