RFR: 7903923: Derive C_* layouts directly from the Linker [v3]
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Jan 13 12:26:49 UTC 2025
On Mon, 13 Jan 2025 12:21:37 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> What's the story with primitive typedef? Do they work? I believe they will go back to stuff like JAVA_INT and such, instead of picking the layout constant we have already emitted. E.g.
>
> `typedef int myInt`
I think to address this, the method ClassSourceBuilder::primitiveLayoutString might come in useful, as we use that method to generate references to primitive layouts e.g. inside struct layout declarations.
-------------
PR Comment: https://git.openjdk.org/jextract/pull/269#issuecomment-2586967055
More information about the jextract-dev
mailing list