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 <armbru@redhat.com> Message-Id: <20210831123809.1107782-2-armbru@redhat.com> Reviewed-by:
Marc-André Lureau <marcandre.lureau@redhat.com> [Import statements tidied up with isort]
Showing
- scripts/qapi/gen.py 2 additions, 4 deletionsscripts/qapi/gen.py
- scripts/qapi/introspect.py 3 additions, 8 deletionsscripts/qapi/introspect.py
- scripts/qapi/schema.py 9 additions, 1 deletionscripts/qapi/schema.py
- scripts/qapi/types.py 11 additions, 17 deletionsscripts/qapi/types.py
- scripts/qapi/visit.py 6 additions, 8 deletionsscripts/qapi/visit.py
Loading
Please register or sign in to comment