diff options
author | 2015-05-14 06:50:54 -0600 | |
---|---|---|
committer | 2015-05-14 18:21:03 +0200 | |
commit | d557344628e32771f07e5b6a2a818ee3d8e7a65f (patch) | |
tree | 498b539e72a7b9086b1070e30aa4fb12738a60cb /scripts/qapi-types.py | |
parent | qapi: Move camel_to_upper(), c_enum_const() to closely related code (diff) | |
download | qemu-d557344628e32771f07e5b6a2a818ee3d8e7a65f.tar.xz qemu-d557344628e32771f07e5b6a2a818ee3d8e7a65f.zip |
qapi: Tidy c_type() logic
c_type() is designed to be called on both string names and on
array designations, so 'name' is a bit misleading because it
operates on more than strings. Also, no caller ever passes
an empty string. Finally, + notation is a bit nicer to read
than '%s' % value for string concatenation.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions