mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 14:35:34 +00:00
f637efea10
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. Backports commit 570cd8d1194cf68f7c9948971e52e47f20855a77 from qemu |
||
---|---|---|
.. | ||
create_config | ||
make_device_config.sh | ||
ordereddict.py | ||
qapi-event.py | ||
qapi-types.py | ||
qapi-visit.py | ||
qapi.py |