RFR: 7903360: jextract does not handle function pointer return type properly
Athijegannathan Sundararajan
sundar at openjdk.org
Tue Oct 18 10:05:15 UTC 2022
On Tue, 18 Oct 2022 09:08:21 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> * generating functional interface for pointer to function return types
>> * taking care of javadoc comment by using nameAndType function uniformly
>
> src/main/java/org/openjdk/jextract/impl/NameMangler.java line 133:
>
>> 131: }
>> 132:
>> 133: String getReturnFiName(Declaration.Function func) {
>
> Why can't `getFiName` be reused here?
No, this is not a functional interface for the Function itself. It is comparable to getFiName(Declaration.Function func, int paramNum, Declaration.Variable param) - a particular parameter is of a function pointer type. Here return type is a function pointer type.
-------------
PR: https://git.openjdk.org/jextract/pull/90
More information about the jextract-dev
mailing list