[fpc-pascal] H2pas tool vs others, C header translation
noreply at z505.com
noreply at z505.com
Sun Aug 27 08:37:51 CEST 2017
On 2017-08-26 02:50, Michael Van Canneyt wrote:
> I thought all this BOOL mess was just meant to be able to interface
> with C
> libs slightly easier.
But, why is the BOOL in fpc/delphi not compatible with C BOOL, in that
it has different semantics?
One value lines up correct... but not always the other.
Why borland chose the bool to not be 100 percent compatible, and only 50
percent compatible?
Bool in delphi:
true = -1
Bool in C:
true = ($FFFFFFFF) 1
Why not just make it exactly compatible, there must be some underlying
(possibly obnoxious) reason for this mess.
More information about the fpc-pascal
mailing list