adam-faulkner / jnaerator

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

2 or more dimension array parameter needs parenthesis #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
to produce the problem, see code below:

#define row 30
#define length 30
char some_paper[row][length+1]

the 0.97 version tool will produce:
public byte[] some_paper = new byte[30*30+1]

Obviously, the expected output is:
public byte[] some_paper = new byte[30*(30+1)]

by the way, 0.98 and 0.99 snapshot lacks a class, and not work when generating 
java src.

thanks you for your great tool!

Original issue reported on code.google.com by yufan2...@gmail.com on 1 Aug 2011 at 1:52

GoogleCodeExporter commented 8 years ago
Hi,
This issue moved to Github :
https://github.com/ochafik/nativelibs4java/issues/165

Thanks for not updating this page anymore and adding further comments on Github.
Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 1 Sep 2011 at 7:27