[fpc-pascal] header translation question: I need an int sized boolean
Marco van de Voort
marcov at stack.nl
Sun Apr 22 17:39:29 CEST 2012
In our previous episode, Bernd said:
> I have this from the GLIB heads:
>
> typedef int gint;
> typedef gint gboolean;
>
> Now I need a few packed records with such gboolean types in them. On
> my i386 I am now just using
That's afaik a wrong translation. longbool are true <>0, while gboolean,
like Pascal booleans, are only true =1.
FPC 2.6.0+ introduced boolean8/16/32/64 types for this.
More information about the fpc-pascal
mailing list