From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41419 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlRky-0005zO-Di for qemu-devel@nongnu.org; Tue, 17 Aug 2010 15:23:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlRkx-0000wM-1i for qemu-devel@nongnu.org; Tue, 17 Aug 2010 15:23:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1027) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlRkw-0000w0-NM for qemu-devel@nongnu.org; Tue, 17 Aug 2010 15:23:31 -0400 Message-ID: <4C6AE1AA.7000200@redhat.com> Date: Tue, 17 Aug 2010 21:23:22 +0200 From: Jes Sorensen MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/5] CODING_STYLE: add C type rules References: <4C6A43B5.40809@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Blue Swirl , qemu-devel On 08/17/10 20:55, malc wrote: > On Tue, 17 Aug 2010, Blue Swirl wrote: >>> The other thing that might be worth mentioning in the int/long section >>> is that long is complicated in broken development environments such as >>> Windows where it is only 32 bit :( > > There's absolutely nothing broken about LLP64 it's as valid as any other > ABI. (That's to Jes) Well it works if you program for it, but it still doesn't make it any good when you can't keep a pointer in a long to apply arithmetic to it. Anyway point with the documentation is to make it clear that we rely on being able to do long foo = (long)ptr; Cheers, Jes