On 4/11/22 17:07, Markus Armbruster wrote:
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 <jasow...@redhat.com>
Signed-off-by: Markus Armbruster <arm...@redhat.com>
---
hw/net/virtio-net.c | 3 +--
monitor/hmp-cmds.c | 1 -
net/announce.c | 8 +++----
net/hub.c | 2 +-
net/l2tpv3.c | 2 +-
net/net.c | 25 ++++++++++-----------
net/slirp.c | 4 ++--
net/socket.c | 18 +++++++--------
net/tap-win32.c | 2 +-
net/tap.c | 51 +++++++++++++++++++++---------------------
net/vhost-vdpa.c | 6 ++---
scripts/qapi/schema.py | 1 -
12 files changed, 59 insertions(+), 64 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>