hzzc1987 / jnaerator

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

Handle struct** properly #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
JNAerate this :
{{{
struct S { int a; };
void f(S**);
}}}

What is the expected output? What do you see instead?
We're getting {{{ f(PointerByReference) }}}.
We should get {{{ f(S.ByReference[]) }}}

Original issue reported on code.google.com by olivier.chafik@gmail.com on 16 Jul 2009 at 9:49

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 16 Jul 2009 at 9:49

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 16 Jul 2009 at 11:33

GoogleCodeExporter commented 8 years ago
Update: Should also handle wchar**, wchar_t** :
{{{
f(wchar_t**); // WString[]
f2(char**); // String[]
}}}

Original comment by olivier.chafik@gmail.com on 17 Jul 2009 at 11:31

GoogleCodeExporter commented 8 years ago
Char** and wchar_t arguments now JNAerated as expected, as well as struct**.
Another change was committed at the same time : all const (w)char* return types 
are now JnAerated as 
(W)String, unless the -noStringReturns switch is used.

Original comment by olivier.chafik@gmail.com on 18 Aug 2009 at 8:56