On Thu, May 17, 2018 at 5:26 PM, Anthony Walter wrote:
> I am working with some a glib library that expects gboolean to be positive
> 1 for true, yet FPC emits -1 for true.
>
I'd think that pascal defines true as
true = not false;
In case of unsigned integers "-1" is not an option
thanks,
Dmi
Gerhard Scholz schrieb am Sa., 19. Mai 2018, 19:51:
> Afaik, the bool types (longbool, wordbool, bytebool) come from the C
> language and are mostly used to interface with C libraries (for example:
> windows). The definitions there are: 0 means FALSE, anything else means
> TRUE. Normally C routin
Afaik, the bool types (longbool, wordbool, bytebool) come from the C
language and are mostly used to interface with C libraries (for example:
windows). The definitions there are: 0 means FALSE, anything else means
TRUE. Normally C routines return a dword/word/byte filled with ones for TRUE
and