From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSCXI-0006dZ-V6 for qemu-devel@nongnu.org; Sat, 18 Jul 2009 12:13:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSCXE-0006cK-HJ for qemu-devel@nongnu.org; Sat, 18 Jul 2009 12:13:20 -0400 Received: from [199.232.76.173] (port=36326 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSCXE-0006c8-Au for qemu-devel@nongnu.org; Sat, 18 Jul 2009 12:13:16 -0400 Received: from mail-qy0-f174.google.com ([209.85.221.174]:55556) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSCXE-0003Lt-1w for qemu-devel@nongnu.org; Sat, 18 Jul 2009 12:13:16 -0400 Received: by qyk4 with SMTP id 4so1187127qyk.4 for ; Sat, 18 Jul 2009 09:13:15 -0700 (PDT) Message-ID: <4A61F498.6060208@codemonkey.ws> Date: Sat, 18 Jul 2009 11:13:12 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties References: <1247841685-18495-1-git-send-email-aliguori@us.ibm.com> <4A60D981.5030008@us.ibm.com> <200907172358.43108.paul@codesourcery.com> <20090718124349.GA9677@shareable.org> In-Reply-To: <20090718124349.GA9677@shareable.org> 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: Jamie Lokier Cc: Blue Swirl , Anthony Liguori , Gerd Hoffman , Paul Brook , qemu-devel@nongnu.org Jamie Lokier wrote: > In (hopefully) ANSI-portable C code which performs a very similar > function, I got it down to OPTION_SIGNED("name", var), > OPTION_UNSIGNED("name", var), OPTION_BOOL("name", var), > OPTION_STRING("name", var), for the major non-compound types. > How do you detect the size of the integer? Regards, Anthony Liguori