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



On Thu, 4 Mar 1999, David Given wrote:

> >after having seen various statements on this topic,
> >i think it's time to clarify some points.
> [snip size summary]
> 
> Is there a type for 64-bit integers? gint64/glonglong?

there's guint64 and gint64, but these types are not present on all
supported platforms (i can't say off hand which ones don't implement these
types, but every gcc-capable system and windows define G_HAVE_GINT64 and
therefore implement gint64 and guint64).


> 
> And what about floating point?

there are typedefs for gdouble and gfloat as well, they simply correlate to
the normal float and double types in C. we even used to have a gldouble, but
since that involved portability problems, this part is currently just disabled
in glib.h:

/* HAVE_LONG_DOUBLE doesn't work correctly on all platforms.
 * Since gldouble isn't used anywhere, just disable it for now */

#if 0
#ifdef HAVE_LONG_DOUBLE
typedef long double gldouble;
#else /* HAVE_LONG_DOUBLE */
typedef double gldouble;
#endif /* HAVE_LONG_DOUBLE */
#endif /* 0 */

(i guess "long double" is featured by gcc only).


> 
> -- 
> +- David Given ---------------McQ-+ Everything is controlled by a small evil
> 

---
ciaoTJ



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