Re: How to use a gpointer?




Hrvoje Niksic <hniksic@srce.hr> writes:

> john@giorgio.hart.bbk.ac.uk writes:
> 
> > dave@srce.hr wrote:
> > >I've noticed that some functions have `guint32 time'
> > >argument. I didn't check the sources, but I suppose that the OS and X
> > >libraries handle this one as a time_t type.
> > >Will this break a 64 bit GTK application?
> > 
> > It's the time field from an X event, so it's 32 bits.
> 
> Really?  Even in 64-bit environments?  That would be strange indeed.
> 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.

What we are talking about is times passed in the X protocol.
Since the X protocol only has 32 bits for this field, they
will will only be 32 bit, ever.

Regards,
                                        Owen



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