On Sat, Dec 20, 2003 at 07:14:36PM +0100, Matthieu Herrb wrote:
>I wrote (in a message from Saturday 20)
> > Warren Turkal wrote (in a message from Saturday 20)
> > > The uint32_t in xc/programs/xdm/genauth.c doesn't compile on my computer. It
> > > appears that stdint.h needs to be included somewhere (most likely Xos.h),
> > > but it is not. It appears that uint32_t was changed from u_int32_t in some
> > > SCO fixes. I have included output from trying to compile below.
> > >
> >
> > I think you're right here. Since we can't assume that every platform
> > on which XFree86 is built has C99 types and that there's no previous
> > art of using uint32_t instead of the older u_int32_t in the XFree86
> > tree, the SCO diff should be reverted and changed to something that
> > will define u_int32_t on SCO if needed.
>
>On a 2nd thought, I guess using CARD32 here is fine. I have somewhere
>the idea that CARD32 and such types were reserved to describe the
>on-the-wire X protocol, but there are alreadt many (ab)uses of it in
>some drivers.
We use them in lots of places that require known size data types. If
the C99 types had been globally available say 10 years earlier, this
likely wouldn't have been the case. As it is now, we either need to
find a mechanism for providing the C99 types on platforms that don't
have them, or continue using the CARD{8,16,32} and INT{8,16,32} types,
and also provide CARD64 and INT64 on more platforms than we currently
do.
Definitely something to follow up soon after the 4.4.0 release.
David
--
David Dawes
developer/release engineer The XFree86 Project
www.XFree86.org/~dawes
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel