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




On 5 Mar 1999, Hrvoje Niksic wrote:

> Tim Janik <timj@gtk.org> writes:
> 
> > gint     is merely an alias for the system's int and guarranteed
> >          to be >= 4 bytes in size, signed.
> 
> This is a contradiction in terms.  The system's int is not guaranteed
> to be >= 4 bytes in size.

To settle this once and for all, wouldn't it be a good idea to simply
replace "typedef int gint" with "typedef gint32 gint" in glib.h? Such a
gint would be large enough to hold 4 bytes and small enough to fit in any
reasonable pointer. And it wouldn't break any existing code, since (I
presume) existing code is already written with the assumption that gints
are 32 bit.

Ulric



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