summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-visit.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-09-19 16:31:06 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2012-09-26 10:45:02 -0300
commiteda50a656f52a5172fa8a95f7b217565b90d413e (patch)
tree2a057d7c6a8525f04c9b86984ca18c407010f1e1 /scripts/qapi-visit.py
parentf513cbf7503d8db3778df436beaf25f3d8260317 (diff)
downloadhqemu-eda50a656f52a5172fa8a95f7b217565b90d413e.zip
hqemu-eda50a656f52a5172fa8a95f7b217565b90d413e.tar.gz
qapi: do not protect enum values from namespace pollution
Enum values are always preceded by the uppercase name of the enum, so they do not conflict with reserved words. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts/qapi-visit.py')
-rw-r--r--scripts/qapi-visit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py
index e2093e8..a360de7 100644
--- a/scripts/qapi-visit.py
+++ b/scripts/qapi-visit.py
@@ -173,7 +173,7 @@ void visit_type_%(name)s(Visitor *m, %(name)s ** obj, const char *name, Error **
break;
''',
abbrev = de_camel_case(name).upper(),
- enum = c_fun(de_camel_case(key)).upper(),
+ enum = c_fun(de_camel_case(key),False).upper(),
c_type=members[key],
c_name=c_fun(key))
OpenPOWER on IntegriCloud