Received: from eggs.gnu.org ([2001:4830:134:3::10]:38824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnnOH-0007BH-0H for qemu-devel@nongnu.org; Thu, 30 Apr 2015 08:16:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnnOC-0003tv-1K for qemu-devel@nongnu.org; Thu, 30 Apr 2015 08:16:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnnOB-0003te-Ry for qemu-devel@nongnu.org; Thu, 30 Apr 2015 08:16:23 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id BD9D98EFE5 for ; Thu, 30 Apr 2015 12:16:22 +0000 (UTC) From: Markus Armbruster References: <1430343306-6152-1-git-send-email-eblake@redhat.com> <1430343306-6152-3-git-send-email-eblake@redhat.com> Date: Thu, 30 Apr 2015 14:16:20 +0200 In-Reply-To: <1430343306-6152-3-git-send-email-eblake@redhat.com> (Eric Blake's message of "Wed, 29 Apr 2015 15:35:05 -0600") Message-ID: <87oam5stez.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 2/3] qobject: Add a special null QObject List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com Eric Blake writes: > From: Markus Armbruster > > I'm going to fix the JSON parser to recognize null. The obvious > representation of JSON null as (QObject *)NULL doesn't work, because > the parser already uses it as an error value. Perhaps we should > change it to free NULL for null, but that's more than I can do right > now. Create a special null QObject instead. Keeping my S-o-B here would clarify commit message authorship. > The existing QDict, QList, and QString all represent something that > is a pointer in C and could therefore be associated with NULL. But > right now, all three of these sub-types are always non-null once > created, so the new null sentinel object is intentionally unrelated > to them. > > Signed-off-by: Markus Armbruster > Signed-off-by: Eric Blake You fixed my pasto and updated a copyright note. Thanks.