qapi-types: Simplify gen_struct_field[s]
authorEric Blake <eblake@redhat.com>
Wed, 18 Nov 2015 08:52:38 +0000 (01:52 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 17 Dec 2015 07:21:26 +0000 (08:21 +0100)
commit7d9586f900a9043025866f84c096b1842b0bbbf6
tree24b265803903fc8db3f78244064ce557362e4d83
parent570cd8d1194cf68f7c9948971e52e47f20855a77
qapi-types: Simplify gen_struct_field[s]

Simplify gen_struct_fields() back to a single iteration over a
list of fields (like it was prior to commit f87ab7f9), by moving
the generated comments to gen_object().  Then, inline
gen_struct_field() into its only caller.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1447836791-369-4-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-types.py