Problem parsing files with variable names that are modifier keywords #280

Closed
djetter opened this Issue Mar 6, 2012 · 1 comment

Projects

None yet

2 participants

@djetter
djetter commented Mar 6, 2012

If you try to parse a .h with a function such as this:

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

It fails, apparently because "model" is a special word in "ModifierType.java". It works fine if you rename "model":

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

@ochafik
Member
ochafik commented Mar 6, 2012

Hi @djetter,

Thanks for your report !

This was actually fixed along with issue #278 in the latest snapshot (and the webstart version from the project's website), but I forgot to upload a corresponding download : this is now done !

http://code.google.com/p/jnaerator/downloads/detail?name=jnaerator-0.9.10-SNAPSHOT-20120302.jar

Cheers

@ochafik ochafik closed this Mar 6, 2012
@ochafik ochafik added a commit that referenced this issue Mar 7, 2012
@ochafik ochafik JNAerator: skip parsing of even more attributes outside of their vali…
…d scope (issue #278 and issue #280)
aa92710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment