Integrated: 7903755: multi header support and special syntax for header file
Athijegannathan Sundararajan
sundar at openjdk.org
Thu Jun 20 03:17:21 UTC 2024
On Wed, 19 Jun 2024 10:01:08 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:
> jextract currently supports only one header file. If the user wants to extract more than one header file, s/he has to create a containing header that includes multiple headers and jextract the containing header.
>
> With the current change, jextract supports more than one header file in the command line.
> When multiple headers are specified in command line, --header-class-name option is mandatory and it is enforced.
>
> In addition to normal file names for header file names, a special syntax such as "<stdio.h>" is also supported. With this, user does not have to write long file name including directories such as /usr/include/stdio.h.
>
> jextract generates multiple headers by generating a temporary header file. If the command line argument is of the form "<stdio.h>" then jextract generates "#include <stdio.h>" in the auto-generated containing header. If the header specified in of the normal/existing form (say foo.h), then containing header will have #include "foo.h" line.
This pull request has now been integrated.
Changeset: ffb7c1c1
Author: Athijegannathan Sundararajan <sundar at openjdk.org>
URL: https://git.openjdk.org/jextract/commit/ffb7c1c1a9eef65f633a37c2cfcb40eac44611b6
Stats: 237 lines in 35 files changed: 153 ins; 31 del; 53 mod
7903755: multi header support and special syntax for header file
Co-authored-by: Jorn Vernee <jvernee at openjdk.org>
Reviewed-by: mcimadamore, jvernee
-------------
PR: https://git.openjdk.org/jextract/pull/249
More information about the jextract-dev
mailing list