Re: fun project!
- From: Tim Janik <timj gtk org>
- To: gtk-devel-list redhat com
- Subject: Re: fun project!
- Date: Sat, 10 Jun 2000 11:52:27 +0200 (CEST)
On Fri, 12 May 2000, Nils Barth wrote:
> Also, why is gboolean a gint? and not, say, a guchar?
uhm, i don#t feel like diging up the relevant flamewars for you ;)
to make it short:
Thu May 14 04:14:12 1998 Tim Janik <timj@gtk.org>
* glib.h: typedef gint gboolean;
this is needed to provide portability with big-endian platforms (e.g.
try sizeof(bool) for c++ on big-endians - it's 4).
this is also needed to maintain some_union.d_gint==some_union.d_gboolean.
plus, gint to gboolean casts and vice versa need to be possible without
loss.
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]