]> git.proxmox.com Git - mirror_qemu.git/commit - net/tap-win32.c
qapi net: Elide redundant has_FOO in generated C
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Nov 2022 16:07:00 +0000 (17:07 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 14 Dec 2022 19:04:47 +0000 (20:04 +0100)
commit7480874a69b17000cd10a2f97dbe51580ec44a96
tree5a2a339dd854d791b55625c1eeecc4b88e627192
parent9492718b7c00c0a16e2ce834752b8c200e3217d1
qapi net: 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/net.json.

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

Cc: Jason Wang <jasowang@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20221104160712.3005652-19-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Fixes for MacOS squashed in]
14 files changed:
hw/net/virtio-net.c
monitor/hmp-cmds.c
net/announce.c
net/hub.c
net/l2tpv3.c
net/net.c
net/slirp.c
net/socket.c
net/tap-win32.c
net/tap.c
net/vhost-vdpa.c
net/vmnet-host.c
net/vmnet-shared.c
scripts/qapi/schema.py