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>
Showing
- monitor/hmp-cmds.c 4 additions, 8 deletionsmonitor/hmp-cmds.c
- scripts/qapi/schema.py 0 additions, 1 deletionscripts/qapi/schema.py
- ui/console.c 2 additions, 2 deletionsui/console.c
- ui/input.c 2 additions, 2 deletionsui/input.c
- ui/spice-core.c 0 additions, 5 deletionsui/spice-core.c
- ui/vnc.c 0 additions, 10 deletionsui/vnc.c
Loading
Please register or sign in to comment