Received: from eggs.gnu.org ([2001:4830:134:3::10]:39782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpKyp-000169-GS for qemu-devel@nongnu.org; Mon, 04 May 2015 14:20:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpKym-0007ot-1n for qemu-devel@nongnu.org; Mon, 04 May 2015 14:20:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpKyl-0007of-Mg for qemu-devel@nongnu.org; Mon, 04 May 2015 14:20:31 -0400 From: Markus Armbruster References: <1430751937-17523-1-git-send-email-eblake@redhat.com> Date: Mon, 04 May 2015 20:19:46 +0200 In-Reply-To: <1430751937-17523-1-git-send-email-eblake@redhat.com> (Eric Blake's message of "Mon, 4 May 2015 09:04:57 -0600") Message-ID: <87wq0o19z1.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v8 00/40] drop qapi nested structs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, berto@igalia.com, qemu-devel@nongnu.org Eric Blake writes: > We want to eventually allow qapi defaults, by making: > 'data':{'*flag':'bool'} > as shorthand for something like: > 'data':{'flag':{'type':'bool', 'optional':true}} > so that the default can be specified: > 'data':{'flag':{'type':'bool', 'optional':true, 'default':true}} > > This series does not quite get us there, but it DOES do a number > of other things. It gets rid of the three uses of nested inline > structs, changes anonymous unions to use a specific 'alternate' > metatype rather than abusing 'union', changes the ambiguous 'type' > to the obvious 'struct', and fixes lots of other parser bugs found > while designing the testsuite. The testsuite changes make the > bulk of this series, with a repeating pattern of writing tests > that expose weaknesses in the old parser, then beefing up the > generator to catch the problem during the initial parse rather > than choking with an obscure python message or even causing a C > compilation failure. Looks done to me. I'll take it through my tree, as discussed in review of v6. I can fix up the nits I picked in PATCH 40. [...]