GUI wrapper for jextract
Nir Lisker
nlisker at gmail.com
Sun Oct 2 21:31:41 UTC 2022
Hi,
After a short talk with Maurizio off-list, I started making a GUI wrapper
for jextract. I have several question/comments that came up during
development:
1. In order to help the user give the correct inputs, is there more info
somewhere on what each command accepts exactly? For example, what does '-I
<path>' look for exactly in the path? What does '-D <macro>' look for?
2. What are the default values for options that aren't specified and have
to have a default, like the output path, package name, and header class
name?
3. I think that having a capital I and a lowercase l options is confusing
in many fonts. Is there a reason not to use lowercase or uppercase on
everything?
4. I execute jextract using a java.lang.Process object and read its output
and error streams. I noticed that the process writes the output of
'--version' and '--help' to the error stream, while it makes more sense to
write them to the output stream. I'm on Windows in case it's OS dependent.
5. When analyzing the symbols of a header using the dump option, I need to
read the file that jextract creates from disk and then delete it. Is there
a way to read the jextract output directly? Either through the output
stream, or writing to a file in memory? Dealing with disk I/O is
cumbersome, comes with permission restrictions, and might be slow if done
for many files in a batch.
6. What file formats, except for .h, can jextract expect as a target? .c?
.hh?
Thanks,
Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20221003/4b96dee7/attachment.htm>
More information about the jextract-dev
mailing list