diff options
| author | Markus Armbruster <armbru@redhat.com> | 2019-11-20 19:25:51 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2020-01-14 11:01:58 +0100 |
| commit | 3bef3aaec91815b75a78a4c12ca92ac3cec53faf (patch) | |
| tree | 2fbba98041b5c3649d7e71f63300bc94c377cb0a /scripts/qapi/types.py | |
| parent | 3e7fb5811baab213dcc7149c3aa69442d683c26c (diff) | |
| download | focaccia-qemu-3bef3aaec91815b75a78a4c12ca92ac3cec53faf.tar.gz focaccia-qemu-3bef3aaec91815b75a78a4c12ca92ac3cec53faf.zip | |
qapi: Simplify QAPISchemaModularCVisitor
Since the previous commit, QAPISchemaVisitor.visit_module() is called just once. Simplify QAPISchemaModularCVisitor accordingly. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20191120182551.23795-7-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi/types.py')
| -rw-r--r-- | scripts/qapi/types.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/qapi/types.py b/scripts/qapi/types.py index d8751daa04..99dcaf7074 100644 --- a/scripts/qapi/types.py +++ b/scripts/qapi/types.py @@ -243,8 +243,9 @@ class QAPISchemaGenTypeVisitor(QAPISchemaModularCVisitor): def __init__(self, prefix): QAPISchemaModularCVisitor.__init__( self, prefix, 'qapi-types', ' * Schema-defined QAPI types', - __doc__) - self._add_system_module(None, ' * Built-in QAPI types') + ' * Built-in QAPI types', __doc__) + + def _begin_system_module(self, name): self._genc.preamble_add(mcgen(''' #include "qemu/osdep.h" #include "qapi/dealloc-visitor.h" |