qapi ui: Elide redundant has_FOO in generated C
commit3f41a3adb4aaaeea45c761edca9269dbd53ec5d9
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Nov 2022 16:07:09 +0000 (4 17:07 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 14 Dec 2022 19:05:07 +0000 (14 20:05 +0100)
treef566789072c6c4bd3b096eb535a4ca6c4cde4680
parent238e9202a25bbac9dfc3cfc2c87a3c095cb2268c
qapi ui: Elide redundant has_FOO in generated C

The has_FOO for pointer-valued FOO are redundant, except for arrays.
They are also a nuisance to work with.  Recent commit "qapi: Start to
elide redundant has_FOO in generated C" provided the means to elide
them step by step.  This is the step for qapi/ui.json.

Said commit explains the transformation in more detail.  The invariant
violations mentioned there do not occur here.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20221104160712.3005652-28-armbru@redhat.com>
monitor/hmp-cmds.c
scripts/qapi/schema.py
ui/console.c
ui/input.c
ui/spice-core.c
ui/vnc.c