From: Markus Armbruster Date: Fri, 3 Mar 2017 12:32:26 +0000 (+0100) Subject: qapi-introspect: Mangle --prefix argument properly for C X-Git-Tag: v2.9.0-rc2~77^2~21 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9b0c9a63492f9f8f4dc94b0ac5a28fc6a946389b;p=mirror_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 Message-Id: <1488544368-30622-7-git-send-email-armbru@redhat.com> [Commit message improved] Reviewed-by: Eric Blake --- diff --git a/scripts/qapi-introspect.py b/scripts/qapi-introspect.py index 541644e350..fb72c61d02 100644 --- a/scripts/qapi-introspect.py +++ b/scripts/qapi-introspect.py @@ -64,7 +64,7 @@ class QAPISchemaGenIntrospectVisitor(QAPISchemaVisitor): # 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[]; ''',