]> Git Repo - qemu.git/commit
qapi: Simplify QAPISchemaIfCond's interface for generating C
authorMarkus Armbruster <[email protected]>
Tue, 31 Aug 2021 12:37:58 +0000 (14:37 +0200)
committerMarkus Armbruster <[email protected]>
Fri, 3 Sep 2021 15:06:40 +0000 (17:06 +0200)
commit1889e57a7140c4f89c8fd9a217f8c3845eb48b5b
tree86307aa6c4f5b872aeaaf0ce760566c579c1c43c
parent3e038d7d7a2616e12a07b08df6a9c9239ff7f228
qapi: Simplify QAPISchemaIfCond's interface for generating C

QAPISchemaIfCond.cgen() is only ever used like

    gen_if(ifcond.cgen())

and

    gen_endif(ifcond.cgen())

Simplify to

    ifcond.gen_if()

and

    ifcond.gen_endif()

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <20210831123809.1107782[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
[Import statements tidied up with isort]
scripts/qapi/gen.py
scripts/qapi/introspect.py
scripts/qapi/schema.py
scripts/qapi/types.py
scripts/qapi/visit.py
This page took 0.027068 seconds and 4 git commands to generate.