summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-visit.py
diff options
context:
space:
mode:
authorFederico Simoncelli <fsimonce@redhat.com>2012-03-20 13:54:35 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2012-03-26 13:21:46 -0500
commitc9da228b49792354af6bb6735bc48bc1c156bc0d (patch)
tree3fa5dfba4963b7217508c007e57a3e3611e1a323 /scripts/qapi-visit.py
parentcb1977d308f6e1d6bf398d42e6148187b82456c1 (diff)
downloadhqemu-c9da228b49792354af6bb6735bc48bc1c156bc0d.zip
hqemu-c9da228b49792354af6bb6735bc48bc1c156bc0d.tar.gz
qapi: add c_fun to escape function names
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'scripts/qapi-visit.py')
-rw-r--r--scripts/qapi-visit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py
index 54117d4..78c947c 100644
--- a/scripts/qapi-visit.py
+++ b/scripts/qapi-visit.py
@@ -129,9 +129,9 @@ void visit_type_%(name)s(Visitor *m, %(name)s ** obj, const char *name, Error **
break;
''',
abbrev = de_camel_case(name).upper(),
- enum = de_camel_case(key).upper(),
+ enum = c_fun(de_camel_case(key)).upper(),
c_type=members[key],
- c_name=c_var(key))
+ c_name=c_fun(key))
ret += mcgen('''
default:
OpenPOWER on IntegriCloud