unicorn/qemu/scripts
Markus Armbruster baab1986a3
qapi: Fix C identifiers generated for names containing '.'
c_fun() maps '.' to '_', c_var() doesn't. Nothing prevents '.' in
QAPI names that get passed to c_var().

Which QAPI names get passed to c_fun(), to c_var(), or to both is not
obvious. Names of command parameters and struct type members get
passed to c_var().

c_var() strips a leading '*', but this cannot happen. c_fun()
doesn't.

Fix c_var() to work exactly like c_fun().

Perhaps they should be replaced by a single mapping function.

Backports commit 47299262de424af0cb69965d082e5e70b2314183 from qemu
2018-02-19 14:41:06 -05:00
..
create_config more cleanup qemu/configure 2017-01-19 14:11:54 +08:00
make_device_config.sh fix file perms 2015-08-28 21:05:38 -07:00
ordereddict.py import 2015-08-21 15:04:50 +08:00
qapi-event.py qapi: Drop support for inline nested types 2018-02-19 14:30:36 -05:00
qapi-types.py qapi: Drop support for inline nested types 2018-02-19 14:30:36 -05:00
qapi-visit.py qapi: Drop dead visitor code related to nested structs 2018-02-19 14:35:55 -05:00
qapi.py qapi: Fix C identifiers generated for names containing '.' 2018-02-19 14:41:06 -05:00