C99 types in Xmd.h?

Jesse Barnes jbarnes at virtuousgeek.org
Tue Feb 5 18:37:49 PST 2008


On Tuesday, February 05, 2008 6:21 pm Joerg Sonnenberger wrote:
> On Tue, Feb 05, 2008 at 05:18:59PM -0800, Jesse Barnes wrote:
> > Anyone object to using C99 types (uint32_t etc.) in Xmd.h?  It would make
> > portably printing bitfields and such a bit easier...  Alternately we
> > could just kill CARD32 and many of the other types in there completely.
>
> Please keep CARD and friends, but use the C99 types to specify them.

For backward compat I assume?

> I'm not sure if pkgsrc is running on any platforms that doesn't provide
> the C99 types, but it would be easy to patch that in if there is.
> Note that inclusion of inttypes.h and stdint.h has to be done carefully,
> not all platforms have them. A good fallback is sys/types.h or really
> complaining if the types don't exist.

Really?  Which platforms are missing such basic stuff?

> I could provide patches for the configure part of the game.

Yeah, that would be great.

Thanks,
Jesse



More information about the xorg mailing list