]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/qapi-types.py
qapi-types: Drop unnedeed ._fwdefn
authorEric Blake <eblake@redhat.com>
Wed, 2 Dec 2015 05:20:49 +0000 (22:20 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 17 Dec 2015 07:21:28 +0000 (08:21 +0100)
commit0b2e84ba774651656771ed697dee8825759dffa9
treeee56eb1b6a6a9f5b73af64ed044e68968bfb995c
parent0426d53c6530606bf7641b83f2b755fe61c280ee
qapi-types: Drop unnedeed ._fwdefn

Previously, the generated code in qapi-types.c initialized all
enum lookup tables first, prior to any other definitions.  But
there are no topological sorting requirements that mandate this
layout, so we can drop the QAPISchemaGenTypeVisitor._fwdefn
field and just generate all definitions in visitation order.

The generated code shows some churn due to reordering, but it
is still fairly straightforward to follow (all the deletions
occur in one hunk, and all the deleted lines are re-inserted
in the same order later in the same files, just spread across
multiple insertion points).

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1449033659-25497-6-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-types.py