mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 18:45:27 +00:00
qapi-types: Bury code dead since commit 6b5abc7
Backports commit e1d4210c3a50059a3889cedc44a8aa193fa63d7d from qemu
This commit is contained in:
parent
9a3972b6b2
commit
21b2c489af
|
@ -75,7 +75,6 @@ def generate_struct_fields(members):
|
|||
def generate_struct(expr):
|
||||
|
||||
structname = expr.get('struct', "")
|
||||
fieldname = expr.get('field', "")
|
||||
members = expr['data']
|
||||
base = expr.get('base')
|
||||
|
||||
|
@ -98,12 +97,9 @@ struct %(name)s
|
|||
char qapi_dummy_field_for_empty_struct;
|
||||
''')
|
||||
|
||||
if len(fieldname):
|
||||
fieldname = " " + fieldname
|
||||
ret += mcgen('''
|
||||
}%(field)s;
|
||||
''',
|
||||
field=fieldname)
|
||||
};
|
||||
''')
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Reference in a new issue