jextract on Windows - possible regression
Duncan Gittins
duncan.gittins at gmail.com
Wed Dec 13 12:51:23 UTC 2023
Hi
I've just switched my local jextract from branch jdk22 to the panama branch
to see the effect of some of the recent code merges in emails of last 2
weeks. The jextract in panama did not generate my Java bindings for all
projects.
Advapi32.h is:
#include <shlobj_core.h>
Extract command with jdk22 / panama branch:
jextract.bat --source -ladvapi32 -t advapi --output genxxx --include-struct
_SERVICE_TABLE_ENTRYW Advapi32.h
In older generated code for _SERVICE_TABLE_ENTRYW I see this definition
using LPSERVICE_MAIN_FUNCTIONW:
public static LPSERVICE_MAIN_FUNCTIONW lpServiceProc(MemorySegment
segment, Arena scope) {
return
LPSERVICE_MAIN_FUNCTIONW.ofAddress(lpServiceProc$get(segment), scope);
}
In the new generated code for _SERVICE_TABLE_ENTRYW I see this definition
which has a cross over "W" to "A" for method LPSERVICE_MAIN_FUNCTIONA which
does not look right:
public static LPSERVICE_MAIN_FUNCTIONA lpServiceName(MemorySegment
segment, Arena scope) {
return
LPSERVICE_MAIN_FUNCTIONA.ofAddress(lpServiceName$get(segment), scope);
}
Ignore this message if this is expected.
Kind regards
Duncan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20231213/6516e02d/attachment.htm>
More information about the jextract-dev
mailing list