Received: from eggs.gnu.org ([2001:4830:134:3::10]:33849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpbqW-0003E5-1O for qemu-devel@nongnu.org; Fri, 23 Oct 2015 08:53:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpbqQ-0003tR-Uc for qemu-devel@nongnu.org; Fri, 23 Oct 2015 08:53:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpbqQ-0003tM-Pe for qemu-devel@nongnu.org; Fri, 23 Oct 2015 08:53:18 -0400 From: Markus Armbruster References: <1445576998-2921-1-git-send-email-eblake@redhat.com> <1445576998-2921-5-git-send-email-eblake@redhat.com> Date: Fri, 23 Oct 2015 14:53:16 +0200 In-Reply-To: <1445576998-2921-5-git-send-email-eblake@redhat.com> (Eric Blake's message of "Thu, 22 Oct 2015 23:09:37 -0600") Message-ID: <87k2qdhhkz.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v10 04/25] qapi: Reserve '*List' type names for list types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Michael Roth Eric Blake writes: > Type names ending in 'List' can clash with qapi list types in > generated C. We don't currently use such names. It is easier to > outlaw them now than to worry about how to resolve such a clash > in the future. For precedence, see commit 4dc2e69, which did the > same for names ending in 'Kind' versus implicit enum types for > qapi unions. > > Note that this only forbids explicit creation of new (non-array) > types or commands ending in 'List'; the parser already rejects > attempts to use ['intList'] as the type for an object member > (although 'intList' happens to be the C spelling for the qapi > type ['int'], that does not make it a recognized name in qapi). > Whether we later turn on support for multi-dimensional arrays > (via [['int']], not ['intList']) is a design decision best left > for another day. I'd drop this paragraph, because I find it distracting. Its first sentence boils down to "we reject type names you didn't declare", but it takes some mental effort to figure that out. The second sentence talks about a design detail of a possible future extension. Neither is necessary to understand this commit. > Update the testsuite to match. > > Signed-off-by: Eric Blake Patch looks good.