RFR: Add guide section about platform-dependent nature of jextract [v3]
Jorn Vernee
jvernee at openjdk.org
Thu Apr 18 13:03:35 UTC 2024
On Wed, 17 Apr 2024 21:04:52 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add example of portable library practice
>
> doc/GUIDE.md line 102:
>
>> 100:
>> 101: However, it is also possible for a C library to be written in such a way that it is not
>> 102: platform dependent: a so-called _portable_ library. Sharing the bindings generated for a
>
> Perhaps here we might say what moves portable libraries might do - such as use `long long` instead of `long`, or using sized numeric types e.g. `int32`.
Added this:
> These libraries, for instance, use data types that have the same format on all supported platforms (such as `long long` instead of `long`, or an explicitly-sized integer type such as `int64_t`).
-------------
PR Review Comment: https://git.openjdk.org/jextract/pull/237#discussion_r1570691904
More information about the jextract-dev
mailing list