From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbo7q-0001PK-C7 for qemu-devel@nongnu.org; Tue, 15 Sep 2015 07:10:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbo7n-0002Wg-6I for qemu-devel@nongnu.org; Tue, 15 Sep 2015 07:10:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbo7n-0002WW-2B for qemu-devel@nongnu.org; Tue, 15 Sep 2015 07:10:11 -0400 Date: Tue, 15 Sep 2015 12:10:04 +0100 From: "Daniel P. Berrange" Message-ID: <20150915111003.GM23145@redhat.com> References: <1442253477-15422-1-git-send-email-armbru@redhat.com> <1442253477-15422-19-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1442253477-15422-19-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH v7 18/26] qapi-commands: De-duplicate output marshaling functions Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com On Mon, Sep 14, 2015 at 07:57:49PM +0200, Markus Armbruster wrote: > gen_marshal_output() uses its parameter name only for name of the > generated function. Name it after the type being marshaled instead of > its caller, and drop duplicates. > > Saves 7 copies of qmp_marshal_output_int() in qemu-ga, and one copy of > qmp_marshal_output_str() in qemu-system-*. > > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > --- > docs/qapi-code-gen.txt | 4 ++-- > scripts/qapi-commands.py | 17 ++++++++++------- > 2 files changed, 12 insertions(+), 9 deletions(-) Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|