mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 09:55:33 +00:00
67596f7485
The generated C enumeration types explicitly set the enumeration constants to 0, 1, 2, ... That's exactly what you get when you don't supply values. Drop the explicit values. No change now, but it will avoid gaps in the values when we later add support for 'if' conditions. Avoiding such gaps will save us the trouble of changing the ENUM_lookup[] tables to work without a sentinel. We'll have to take care to ensure the headers required by the 'if' conditions get always included before the generated QAPI code. Fortunately, our convention to include "qemu/osdep.h" first in any .c ensures that's the case for our CONFIG_FOO macros Backports commit 9c2f56e9f9d5a1f9ddac77dda35f997738e85d11 from qemu |
||
---|---|---|
.. | ||
qapi | ||
create_config | ||
decodetree.py | ||
make_device_config.sh | ||
ordereddict.py | ||
qapi-gen.py |