hzzc1987 / jnaerator

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

Preserve #define ordering in generated code #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

It seems that the order of #define is not preserved in the generated java code.
The resulting "public static final int ..." statements are in random order.

It would be nice to preserve the original ordering in the generated java code.

Regards.

Original issue reported on code.google.com by parisjoi...@yahoo.fr on 1 Oct 2009 at 10:51

GoogleCodeExporter commented 8 years ago
Hi,

Thanks a lot for this enhancement request.
That is something that should be easy to add soon to the Anarres preprocessor 
that 
JNAerator is using.

Cheers

Original comment by olivier.chafik@gmail.com on 1 Oct 2009 at 12:30

GoogleCodeExporter commented 8 years ago
An additional requirement would be to define the static constants inside the
generated classes when the #define is found inside a struct (ffmpeg makes a lot 
of
use of this pattern).

Original comment by parisjoi...@yahoo.fr on 1 Oct 2009 at 1:12

GoogleCodeExporter commented 8 years ago
Order of #defines was fixed in revision #877.
Enhancement request of comment 2 was filed under separate issue #45.

Original comment by olivier.chafik@gmail.com on 28 Oct 2009 at 12:22