hzzc1987 / jnaerator

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

Certain variable names cause parsing problems #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Parse a header file with a function such as this:

int InitPowerUSB(int *model, char firmware[]);

The function does show up in the output, apparently because the function has an 
argument named 'model'. If you use a different variable name, it seems to work 
fine:

int InitPowerUSB(int *model1, char firmware[]);

My guess is that the issue stems from the fact that 'model' is used in 
'ModifierType.java', but I'm not sure.

What version of the product are you using? On what operating system?

I'm using jnaerator-0.9.10-SNAPSHOT-20120222.jar, on Windows 7 64-bit.

Original issue reported on code.google.com by djet...@gmail.com on 6 Mar 2012 at 7:57

GoogleCodeExporter commented 8 years ago
The third paragraph should begin, "The function does NOT show up in the 
output..."

Original comment by djet...@gmail.com on 6 Mar 2012 at 7:59

GoogleCodeExporter commented 8 years ago
Migrated to https://github.com/ochafik/nativelibs4java/issues/280 by the 
requester.

Original comment by olivier.chafik@gmail.com on 7 Mar 2012 at 12:35