[Qemu-devel] [PATCH 0/2] qapi: allow flat unions with empty branches

Anton Nefedov posted 2 patches 7 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1526029534-35771-1-git-send-email-anton.nefedov@virtuozzo.com
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test s390x passed
qapi/misc.json                 | 48 ++++--------------------------------------
cpus.c                         |  2 --
scripts/qapi/common.py         | 18 ++++++++++------
scripts/qapi/doc.py            |  2 +-
scripts/qapi/types.py          |  2 +-
scripts/qapi/visit.py          | 12 ++++++-----
tests/qapi-schema/test-qapi.py |  2 +-
7 files changed, 26 insertions(+), 60 deletions(-)
[Qemu-devel] [PATCH 0/2] qapi: allow flat unions with empty branches
Posted by Anton Nefedov 7 years, 5 months ago
hej,

inspired by this thread
http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg04802.html

Seems that nobody got around to this since (did anybody?),
so I thought I'd give a try.

There's a generator patch and usage example.

Anton Nefedov (2):
  qapi: allow flat unions with empty branches
  qapi: avoid empty CpuInfoOther type

 qapi/misc.json                 | 48 ++++--------------------------------------
 cpus.c                         |  2 --
 scripts/qapi/common.py         | 18 ++++++++++------
 scripts/qapi/doc.py            |  2 +-
 scripts/qapi/types.py          |  2 +-
 scripts/qapi/visit.py          | 12 ++++++-----
 tests/qapi-schema/test-qapi.py |  2 +-
 7 files changed, 26 insertions(+), 60 deletions(-)

-- 
2.7.4