WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] sizeof(long) different under windows x64 and linuxx64

To: John Levon <levon@xxxxxxxxxxxxxxxxx>, James Harper <james.harper@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] sizeof(long) different under windows x64 and linuxx64
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 23 Jan 2008 14:33:20 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Daniel Stodden <dns@xxxxxxxxxxxx>, Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Delivery-date: Wed, 23 Jan 2008 06:34:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080123142533.GJ7461@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchdzOZiJSTVvsnAEdyZHgAX8io7RQ==
Thread-topic: [Xen-devel] sizeof(long) different under windows x64 and linuxx64
User-agent: Microsoft-Entourage/11.3.6.070618
On 23/1/08 14:25, "John Levon" <levon@xxxxxxxxxxxxxxxxx> wrote:

>> Can I get some feedback from the people-who-make-decisions if a patch
>> changing all 'unsigned long's in the public .h files to uintptr_t's
>> would be accepted? If not, what type should I use?
> 
> Shouldn't it be changed appropriately? That is, uintptr_t for values
> that actually do, or can, hold a "pointer" value, and something else for
> other 'longs'?

We could just call it xen_long or xen_ulong. That would hide the underlying
uintptr_t, which is needed anyway for XEN_INTERFACE_VERSION backward
source-level compatibility.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel