Re: [Xpert]exact integral types

2002-12-11 Thread Warren Turkal
On Tuesday 10 December 2002 08:36 pm, Marc Aurele La France wrote: I attach the little bit I have on this matter (which includes your patch). Thanks, Warren -- Treasurer, GOLUM, Inc. http://www.golum.org ___ Xpert mailing list [EMAIL PROTECTED]

Re: [Xpert]exact integral types

2002-12-10 Thread Marc Aurele La France
On Tue, 10 Dec 2002, Warren Turkal wrote: A larger issue is that, on some 32-bit systems, this ends up typedef'ing CARD32 as 'unsigned int', and on others, as 'unsigned long'. For reasons I won't get into here, the X sources currently need CARD32 to be typedef'ed as 'unsigned long' for

Re: [Xpert]exact integral types

2002-12-10 Thread Warren Turkal
On Tuesday 10 December 2002 03:24 pm, Marc Aurele La France wrote: After going through that exercise, perhaps, you will have gained a greater appreciation for what portability really means. Thank you for the explanation. In these places that warnings are produced, should the code call for a

Re: [Xpert]exact integral types

2002-12-10 Thread Marc Aurele La France
On Tue, 10 Dec 2002, Warren Turkal wrote: On Tuesday 10 December 2002 03:24 pm, Marc Aurele La France wrote: After going through that exercise, perhaps, you will have gained a greater appreciation for what portability really means. Thank you for the explanation. In these places that

Re: [Xpert]exact integral types

2002-12-09 Thread Marc Aurele La France
On Sat, 19 Oct 2002, Warren Turkal wrote: Here is a patch that should make Xmd.h use C99 when available. --- /usr/include/X11/Xmd.h2002-10-16 15:14:38.0 -0500 +++ Xmd.h 2002-10-19 14:23:33.0 -0500 @@ -47,6 +47,7 @@

Re: [Xpert]exact integral types

2002-12-09 Thread Warren Turkal
On Monday 09 December 2002 09:55 am, Marc Aurele La France wrote: A larger issue is that, on some 32-bit systems, this ends up typedef'ing CARD32 as 'unsigned int', and on others, as 'unsigned long'. For reasons I won't get into here, the X sources currently need CARD32 to be typedef'ed as

Re: [Xpert]exact integral types

2002-10-19 Thread Warren Turkal
Here is a patch that should make Xmd.h use C99 when available. --- /usr/include/X11/Xmd.h 2002-10-16 15:14:38.0 -0500 +++ Xmd.h 2002-10-19 14:23:33.0 -0500 @@ -47,6 +47,7 @@ **/ #ifndef XMD_H #define

Re: [Xpert]exact integral types

2002-10-17 Thread Warren Turkal
C99 has integer types that have an exact width. For instance, uint32_t is an unsigned integer of 32 bit width. This would put the burden of making the right width integer types on the c library as opposed to the x include. I think that, if possible, getting rid of architecture magic in the

Re: [Xpert]exact integral types

2002-10-17 Thread Marc Aurele La France
On Thu, 17 Oct 2002, Warren Turkal wrote: Why does X not use the exact integral types in its typedefs? For instance, typedef uint32_t CARD32; instead of all the magic in Xmd.h? These are the ISO C 9X integer types aren't they ? I don't think we have got as far as

[Xpert]exact integral types

2002-10-16 Thread Warren Turkal
Why does X not use the exact integral types in its typedefs? For instance, typedef uint32_t CARD32; instead of all the magic in Xmd.h? Thanks, Warren -- Treasurer, GOLUM, Inc. http://www.golum.org ___ Xpert mailing list [EMAIL PROTECTED]

Re: [Xpert]exact integral types

2002-10-16 Thread Warren Turkal
In the Xmd.h file, would it be okay to change the preprocessor directives to #if define(symbol) and such? Warren On Wednesday 16 October 2002 03:37 am, Dr Andrew C Aitchison wrote: On Wed, 16 Oct 2002, Warren Turkal wrote: Why does X not use the exact integral types in its typedefs? For

Re: [Xpert]exact integral types

2002-10-16 Thread Marc Aurele La France
On Wed, 16 Oct 2002, Warren Turkal wrote: Why does X not use the exact integral types in its typedefs? For instance, typedef uint32_t CARD32; instead of all the magic in Xmd.h? These are the ISO C 9X integer types aren't they ? I don't think we have got as far as completely