[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] qapi: Simplify enum generation
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 0/2] qapi: Simplify enum generation |
Date: |
Fri, 24 Feb 2023 16:54:49 +0100 |
QAPI generating enum count as part of the enum forces handling
impossible switch cases. Modify qapi/types.py to generate the
enum count as a definition.
Do not try to cover the unreachable 'default' case.
Clean files covering unreachable foo__MAX case.
Philippe Mathieu-Daudé (2):
qapi: Do not generate default switch case in
gen_visit_object_members()
qapi: Generate enum count as definition in gen_enum_lookup()
audio/audio.c | 6 ------
audio/audio_template.h | 3 ---
migration/migration.c | 2 --
replay/replay-input.c | 12 ------------
scripts/qapi/types.py | 11 +++++++----
scripts/qapi/visit.py | 2 --
softmmu/tpm-hmp-cmds.c | 2 --
ui/input-linux.c | 4 ----
ui/input.c | 6 ------
9 files changed, 7 insertions(+), 41 deletions(-)
--
2.38.1
- [PATCH 0/2] qapi: Simplify enum generation,
Philippe Mathieu-Daudé <=