From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXJHX-00040v-5W for qemu-devel@nongnu.org; Thu, 13 Dec 2018 00:11:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXJHT-0007Uj-Nt for qemu-devel@nongnu.org; Thu, 13 Dec 2018 00:11:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57006) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXJHP-0007LA-NA for qemu-devel@nongnu.org; Thu, 13 Dec 2018 00:11:25 -0500 From: Markus Armbruster References: <20181208111606.8505-1-marcandre.lureau@redhat.com> <87va3yfytv.fsf@dusky.pond.sub.org> Date: Thu, 13 Dec 2018 06:11:14 +0100 In-Reply-To: (=?utf-8?Q?=22Marc-Andr=C3=A9?= Lureau"'s message of "Wed, 12 Dec 2018 22:13:01 +0400") Message-ID: <8736r2dn9p.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH for-4.0 v7 00/27] Hi, List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: Markus Armbruster , QEMU Marc-Andr=C3=A9 Lureau writes: > Hi > > On Wed, Dec 12, 2018 at 9:18 PM Markus Armbruster wro= te: >> >> Marc-Andr=C3=A9 Lureau writes: >> >> > This is the second part of the "add #if pre-processor conditions to >> > generated code" series, adding schema member conditions (roughly >> > 16-38/49). >> > >> > Members can be exploded as dictionnary with 'type'/'if' keys: >> > >> > { 'struct': 'TestIfStruct', 'data': >> > { 'foo': 'int', >> > 'bar': { 'type': 'int', 'if': 'defined(TEST_IF_STRUCT_BAR)'} } } >> > >> > Enum values can be exploded as dictionnary with 'type'/'if' keys: >> > >> > { 'enum': 'TestIfEnum', 'data': >> > [ 'foo', >> > { 'name' : 'bar', 'if': 'defined(TEST_IF_ENUM_BAR)' } ] } >> >> PATCH 03,18,20,25 are only losely related to this second part. They are >> also ready. Queued on branch qapi-next in my public repository, with >> PATCH 18 and 20 squashed together. >> >> I took the liberty to implement the the idea on normalization I >> mentioned in review of PATCH 08. I also squashed a few patches that are >> essentially fixups into the patches they fix. I did not address any >> other review comments. Result is on branch qapi-if-2. Please have a >> look. >> > > Looks good to me. Is there something left to rework from this branch > or it is good to go? > thanks I adressed only the one review comment that was hard to explain, plus some patch squashing. The other review comments still need to be considered and worked in.