[fpc-pascal] H2pas tool vs others, C header translation

Dmitry Boyarintsev skalogryz.lists at gmail.com
Sun Aug 27 13:22:51 CEST 2017


On Sun, Aug 27, 2017 at 2:37 AM, <noreply at z505.com> wrote:

>
> 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.


They are compatible, if you declare like this:
true = (not false);

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170827/c6902910/attachment.html>


More information about the fpc-pascal mailing list