mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13: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
|
@ -100,7 +100,7 @@ typedef enum %(name)s
|
|||
%(abbrev)s_%(value)s = %(i)d,
|
||||
''',
|
||||
abbrev=de_camel_case(name).upper(),
|
||||
value=c_var(value).upper(),
|
||||
value=c_fun(value).upper(),
|
||||
i=i)
|
||||
i += 1
|
||||
|
||||
|
@ -126,7 +126,7 @@ struct %(name)s
|
|||
%(c_type)s %(c_name)s;
|
||||
''',
|
||||
c_type=c_type(typeinfo[key]),
|
||||
c_name=c_var(key))
|
||||
c_name=c_fun(key))
|
||||
|
||||
ret += mcgen('''
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue