prototypeless function representation
Stephen Buergler
sixcorners at gmail.com
Mon Jul 15 07:08:08 UTC 2024
Hello!
I think most of the time there is something like
extern void RcloneInitialize();
is put into a header file it's meant to declare a function with no
parameters.
jextract outputs variadic versions of the binding though because that's not
what that means. It means that the function declaration has no prototype
and has an unknown number of parameters.
extern void RcloneInitialize(void);
This defines a function with no parameters and is what is usually intended
and with this version the jextract bindings now reflect that there are no
parameters to pass in.
Would it make sense to change jextract to be able to treat these as
functions that take no parameters?
Alternatively, would it make sense to provide bindings for both versions of
the function?
If a `public static void RcloneInitialize()` and the variadic version
existed I think that would make sense.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20240715/5a8f7ef0/attachment.htm>
More information about the jextract-dev
mailing list