diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-19 16:31:06 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-09-26 10:45:02 -0300 |
commit | eda50a656f52a5172fa8a95f7b217565b90d413e (patch) | |
tree | 2a057d7c6a8525f04c9b86984ca18c407010f1e1 /scripts/qapi-visit.py | |
parent | f513cbf7503d8db3778df436beaf25f3d8260317 (diff) | |
download | hqemu-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.py | 2 |
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)) |