qapi chardev: 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/char.json. Said commit explains the transformation in more detail. The invariant violations mentioned there do not occur here. Cc: Marc-André Lureau <marcandre.lureau@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:Markus Armbruster <armbru@redhat.com> Reviewed-by:
Daniel P. Berrangé <berrange@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20221104160712.3005652-12-armbru@redhat.com>
Showing
- chardev/char-file.c 2 additions, 2 deletionschardev/char-file.c
- chardev/char-socket.c 4 additions, 6 deletionschardev/char-socket.c
- chardev/char-udp.c 0 additions, 1 deletionchardev/char-udp.c
- chardev/char.c 1 addition, 5 deletionschardev/char.c
- scripts/qapi/schema.py 0 additions, 1 deletionscripts/qapi/schema.py
- tests/unit/test-char.c 0 additions, 1 deletiontests/unit/test-char.c
Loading
Please register or sign in to comment