[foreign-jextract] Integrated: 8252899: jextract can't handle multiple extern declarations that have the same name, but a different type name
    Jorn Vernee 
    jvernee at openjdk.java.net
       
    Tue Sep  8 12:36:15 UTC 2020
    
    
  
On Tue, 8 Sep 2020 12:28:09 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Hi,
> 
> This PR let's jextract handle cases like the one described in the bug:
> 
>     typedef int MyInt;
> 
>     extern const int x;
>     extern const MyInt x;
> 
> Where the same global variable is re-declared, but slightly differently.
> 
> The current code is de-duping globals using the declaration. Changing this to de-duping by name allows use to also
> handle these cases.
> Thanks,
> Jorn
This pull request has now been integrated.
Changeset: 6f39187e
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/6f39187e
Stats:     85 lines in 3 files changed: 0 ins; 83 del; 2 mod
8252899: jextract can't handle multiple extern declarations that have the same name, but a different type name
Reviewed-by: sundar
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/313
    
    
More information about the panama-dev
mailing list