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

Sven Barth pascaldragon at googlemail.com
Sat Aug 26 09:11:02 CEST 2017


Am 26.08.2017 07:25 schrieb <noreply at z505.com>:
>
> What about the BOOL issue..
>
> We know that Boolean in fpc/delphi is not compatible with a C bool
>
> But it gets worse than that: even fpc/delphi's bool is not always
compatible (but is sometimes).
>
> For example:
> http://blog.delphi-jedi.net/2008/09/25/bool-boolean-and-integer/
>
> When one must use Integers to do boolean related programming tasks, it
makes me want to quit programming ;)
>

In FPC you can use the types Boolean16, Boolean32 and Boolean64 to get a
type that behaves like Boolean, but has a different size.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170826/520fef98/attachment.html>


More information about the fpc-pascal mailing list