diff options
author | Eric Blake <eblake@redhat.com> | 2016-03-03 09:16:44 -0700 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:49:12 -0600 |
commit | 45eca41509ebcc9b4c4cfdf256e41e352e1fc8f8 (patch) | |
tree | 59152e684817c4908c6cd50e25b28209e2635737 /scripts/qapi-types.py | |
parent | 73076917b2353b3189fb5d91d765bd57acb2b4c4 (diff) | |
download | hqemu-45eca41509ebcc9b4c4cfdf256e41e352e1fc8f8.zip hqemu-45eca41509ebcc9b4c4cfdf256e41e352e1fc8f8.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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index 8858d29..19d1fff 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(''' |