summaryrefslogtreecommitdiff
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-03-03 09:16:44 -0700
committerMarkus Armbruster <armbru@redhat.com>2016-03-05 10:41:09 +0100
commitc81200b01422783cd29796ef4ccc275d05f9ce67 (patch)
tree014906121a25a8763799e0d894ea6f2758b2c13c /scripts/qapi-types.py
parent14f00c6c492488381a513c3816b15794446231a0 (diff)
downloadqemu-c81200b01422783cd29796ef4ccc275d05f9ce67.tar.gz
qapi: Rename 'fields' to 'members' in generated C code
C types and JSON objects don't have fields, but members. We shouldn't gratuitously invent terminology. This patch is a strict renaming of static genarated functions, plus the naming of the dummy filler member for empty structs, before the next patch exposes some of that naming to the rest of the code base. Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1457021813-10704-3-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
-rw-r--r--scripts/qapi-types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 8858d290ab..19d1fff877 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -92,7 +92,7 @@ struct %(c_name)s {
# struct is size 1).
if not (base and base.members) and not members and not variants:
ret += mcgen('''
- char qapi_dummy_field_for_empty_struct;
+ char qapi_dummy_for_empty_struct;
''')
ret += mcgen('''