|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: [RFC PATCH 03/35] Add Xen interface header files
Hollis Blanchard wrote: On Tue, 2006-05-09 at 16:15 +0100, Christoph Hellwig wrote:please get rid of all these stupid typedefs Is this strictly true though? The ABI for Power and x86 are not necessarily dependent on each other. One could just as easily define a typedef like: #if defined(__ppc__) typedef uint64_t guest_handle_t; #elif defined(__x86__) typedef unsigned long guest_handle_t; #endifI thought the use of GUEST_HANDLE was to maintain type safety. It certainly helps the issue you point out but it's not strictly necessary. IMHO, this trick makes the code pretty ugly. I'd rather see it disappear in favor of something more akin to the above. Regards, Anthony Liguori _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |