Dmitry Boyarintsev schrieb am So., 20. Mai
2018, 04:38:
> 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 f
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
quot;Sven Barth"
Sent: Friday, May 18, 2018 7:22 AM
Subject: Re: [fpc-pascal] LongBool True = -1
Am 17.05.2018 um 23:26 schrieb Anthony Walter:
I am working with some a glib library that expects gboolean to be
positive 1 for true, yet FPC emits -1 for true. Is there a compiler flag
to fo
Am 17.05.2018 um 23:26 schrieb Anthony Walter:
I am working with some a glib library that expects gboolean to be
positive 1 for true, yet FPC emits -1 for true. Is there a compiler
flag to force boolean types to emit 1 instead of -1? If so, would
there possibly be any side effects with other pa
I am working with some a glib library that expects gboolean to be positive
1 for true, yet FPC emits -1 for true. Is there a compiler flag to force
boolean types to emit 1 instead of -1? If so, would there possibly be any
side effects with other pascal code?