mirror of https://gitee.com/openkylin/qemu.git
qapi-introspect: Mangle --prefix argument properly for C
qapi-introspect.py --prefix hasn't been used so far, but fix it anyway. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1488544368-30622-7-git-send-email-armbru@redhat.com> [Commit message improved] Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
1527badb95
commit
9b0c9a6349
|
@ -64,7 +64,7 @@ def visit_end(self):
|
|||
# generate C
|
||||
# TODO can generate awfully long lines
|
||||
jsons.extend(self._jsons)
|
||||
name = prefix + 'qmp_schema_json'
|
||||
name = c_name(prefix, protect=False) + 'qmp_schema_json'
|
||||
self.decl = mcgen('''
|
||||
extern const char %(c_name)s[];
|
||||
''',
|
||||
|
|
Loading…
Reference in New Issue