]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Share gen_err_check()
authorEric Blake <eblake@redhat.com>
Tue, 29 Sep 2015 22:21:13 +0000 (16:21 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 12 Oct 2015 16:46:50 +0000 (18:46 +0200)
commit1f35334489a43800df4d20cd91362a87cee39a29
tree8cb5cea8f18e493525e5a8908e109b705b6b1d6e
parent05372f708a8cb3556e4d67458de79417dadf241f
qapi: Share gen_err_check()

qapi-commands has a nice helper gen_err_check(), but did not
use it everywhere. In fact, using it in more places makes it
easier to reduce the lines of code used for generating error
checks.  This in turn will make it easier for later patches
to consolidate another common pattern among the generators.

The generated code has fewer blank lines in qapi-event.c functions,
but has no semantic difference.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1443565276-4535-16-git-send-email-eblake@redhat.com>
[Drop another blank line for symmetry]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-commands.py
scripts/qapi-event.py
scripts/qapi-visit.py
scripts/qapi.py