summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorMarc-André Lureau2021-08-04 10:30:59 +0200
committerMarkus Armbruster2021-08-26 13:53:56 +0200
commit6cc2e4817ff5b33d6f67e0a5f27dbd1112d1ecd5 (patch)
treed4f859ddbaf3045f943209012215a388096c3a94 /scripts/qapi/source.py
parentqapi: add QAPISchemaIfCond.is_present() (diff)
downloadqemu-6cc2e4817ff5b33d6f67e0a5f27dbd1112d1ecd5.tar.gz
qemu-6cc2e4817ff5b33d6f67e0a5f27dbd1112d1ecd5.tar.xz
qemu-6cc2e4817ff5b33d6f67e0a5f27dbd1112d1ecd5.zip
qapi: introduce QAPISchemaIfCond.cgen()
Instead of building prepocessor conditions from a list of string, use the result generated from QAPISchemaIfCond.cgen() and hide the implementation details. Note: this patch introduces a minor regression, generating a redundant pair of parenthesis. This is mostly fixed in a later patch in this series ("qapi: replace if condition list with dict [..]") Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210804083105.97531-5-marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [Commit message tweaked] Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions