qapi migration: 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/migration.json. Said commit explains the transformation in more detail. The invariant violations mentioned there do not occur here. Cc: Juan Quintela <quintela@redhat.com> Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by:Markus Armbruster <armbru@redhat.com> Reviewed-by:
Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by:
Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20221104160712.3005652-17-armbru@redhat.com>
Showing
- migration/block-dirty-bitmap.c 2 additions, 2 deletionsmigration/block-dirty-bitmap.c
- migration/colo.c 0 additions, 1 deletionmigration/colo.c
- migration/migration.c 8 additions, 19 deletionsmigration/migration.c
- monitor/hmp-cmds.c 11 additions, 15 deletionsmonitor/hmp-cmds.c
- monitor/misc.c 1 addition, 1 deletionmonitor/misc.c
- scripts/qapi/schema.py 0 additions, 1 deletionscripts/qapi/schema.py
Loading
Please register or sign in to comment