hzzc1987 / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

long long is not correctly mapped #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch JNAeratorStudio 
2. Click JNAerate! in the menu

What is the expected output? What do you see instead?
It should map "public com.sun.jna.NativeLong longLongValue;" to "public 
long longLongValue;", but instead it maps it to "public 
com.sun.jna.NativeLong longLongValue;"

What version of the product are you using? On what operating system?
JNAeratorStudio 0.4 (build 244). On windows XP

Please provide any additional information below.
long long is always 64 bit, either in 32 bit or 64 bit procesor, at least 
with gnu compiler (I believe microsoft compiler doesn't support this type, 
but haven't tested that) 

Original issue reported on code.google.com by danielk...@gmail.com on 30 Mar 2009 at 11:38

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 3 Jun 2009 at 1:35

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 3 Jun 2009 at 1:36

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 3 Jun 2009 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 3 Jun 2009 at 5:41

GoogleCodeExporter commented 8 years ago
This was fixed in version 0.6 : 
{{{
struct TestStruct {
    long         longValue;
    size_t   sizeValue;
    long long    longLongValue;
};
}}}
now gives :
{{{
...
        public com.sun.jna.NativeLong longValue;
        public com.sun.jna.NativeLong sizeValue;
        public long longLongValue;
...
}}}

Original comment by olivier.chafik@gmail.com on 3 Jun 2009 at 9:39