Received: from eggs.gnu.org ([2001:4830:134:3::10]:59934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpd9f-0003n5-Tx for qemu-devel@nongnu.org; Fri, 23 Oct 2015 10:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpd9f-0008Nu-1w for qemu-devel@nongnu.org; Fri, 23 Oct 2015 10:17:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpd9e-0008Nq-TH for qemu-devel@nongnu.org; Fri, 23 Oct 2015 10:17:14 -0400 From: Markus Armbruster References: <1445576998-2921-1-git-send-email-eblake@redhat.com> <1445576998-2921-2-git-send-email-eblake@redhat.com> <87twphhih6.fsf@blackfin.pond.sub.org> <562A2A9F.60004@redhat.com> Date: Fri, 23 Oct 2015 16:17:12 +0200 In-Reply-To: <562A2A9F.60004@redhat.com> (Eric Blake's message of "Fri, 23 Oct 2015 06:39:59 -0600") Message-ID: <87bnbpekk7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v10 01/25] tests/qapi-schema: Test for reserved names, empty struct 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: > On 10/23/2015 06:33 AM, Markus Armbruster wrote: >> Eric Blake writes: [...] >>> +++ b/tests/qapi-schema/struct-name-list.json >>> @@ -0,0 +1,5 @@ >>> +# Potential C name collision >>> +# FIXME - This parses and compiles on its own, but prevents the user from >>> +# creating a type named 'Foo' and using ['Foo'] for an array. We should >>> +# reject the use of any non-array type names ending in 'List'. >>> +{ 'struct': 'FooList', 'data': { 's': 'str' } } >> >> "Non-array type name" makes no sense when talking about the QAPI schema, >> because arrays don't have names there. > > Suggestions? Maybe s/non-array//? The wording changes in 2/25 when the > test starts working. Dropping non-array works for me.