unicorn/qemu/scripts
Eric Blake ec89e19b30
qapi: Consistent generated code: prefer common indentation
We had some pointless differences in the generated code for visit,
command marshalling, and events; unifying them makes it easier for
future patches to consolidate to common helper functions.
This is one patch of a series to clean up these differences.

This patch adjusts gen_visit_union() to use the same indentation
as other functions, namely, by jumping early to the error label
if the object was not set rather than placing the rest of the
body inside an if for when it is set.

No change in semantics to the generated code.

Backports commit e36c714e6aad7c9266132350833e2f263f6d8874 from qemu
2018-02-19 18:26:14 -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 qapi: Consistent generated code: prefer common labels 2018-02-19 18:23:15 -05:00
qapi-types.py qapi: Consistent generated code: prefer visitor 'v' 2018-02-19 18:21:53 -05:00
qapi-visit.py qapi: Consistent generated code: prefer common indentation 2018-02-19 18:26:14 -05:00
qapi.py qapi: Reuse code for flat union base validation 2018-02-19 18:14:53 -05:00