[fpc-pascal] header translation question: I need an int sized boolean

Marco van de Voort marcov at stack.nl
Sun Apr 22 18:49:49 CEST 2012

In our previous episode, Bernd said:
> Am 22. April 2012 17:39 schrieb Marco van de Voort <marcov at stack.nl>:
> > gboolean,
> > like Pascal booleans, are only true =1.
> Just out of curiosity, how can they enforce this for the C compiler
> with only some definitions in a header file?

I don't know, I don't use GTK with C. It could be that they simply don't,
and leave it up to the programmer to proper compare with gfalse and gtrue.

I only know that in some cases the longbool situation went
wrong, and while that was fixable by doing   somebool=gtrue, it had other

I was halfway fixing with gtrue when (IIRC) Florian committed the
boolean<xx> stuff.

More information about the fpc-pascal mailing list