From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHgS8-0006ip-Cu for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:28:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHgS2-0006hA-W2 for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:28:47 -0500 Received: from [199.232.76.173] (port=41446 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHgS2-0006h1-4U for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:28:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36335) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHgS2-0007uC-BR for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:28:42 -0500 Message-ID: <4B1D2D2C.7040206@redhat.com> Date: Mon, 07 Dec 2009 18:28:28 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Permit zero-sized qemu_malloc() & friends References: <4B1D2462.3070000@codemonkey.ws> <200912071624.00559.paul@codesourcery.com> In-Reply-To: <200912071624.00559.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Kevin Wolf , Markus Armbruster , qemu-devel@nongnu.org On 12/07/2009 06:24 PM, Paul Brook wrote: > Note that conversion to object/type based allocation is not always > straightforward because inheritance means we don't have the final object type > when doing the allocation. > Instead of specifying the size, we can specify a constructor function (we usually do have an .init). It's still dissatisfying in that it has to duplicate the call to whatever it ends up being called, though. -- error compiling committee.c: too many arguments to function