mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
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>
This commit is contained in:
parent
f513cbf750
commit
eda50a656f
3 changed files with 7 additions and 7 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue