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