[gtk-list] Re: How to use a gpointer?



> If we're talking about the type that X calls `Time' (the type normally
> used in X event structures, which Gtk "wisely" assigns to guint32),
> then it's definitely 64-bit on 64-bit systems.
> 
>     #ifndef _XSERVER64
>     [...]
>     typedef unsigned long Time;
>     #else
>     [...]
>     typedef CARD32 Time;
>     #endif

Surely you aren't suggesting that X servers on 64-bit platforms use a
different wire protocol than those on 32-bit platforms?

Take a look a few lines above those you quote (at least on Solaris 7,
in /usr/openwin/include/X11/X.h). It says:

/*
 * _XSERVER64 must ONLY be defined when compiling X server sources on
 * systems where unsigned long is not 32 bits, must NOT be used in
 * client or library code.
 */

And if you look in the header Xproto.h, it says:

#define Time CARD32

So, the Time fields in the X protocol are definitely always 32 bit
values.

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]