New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

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

This comment has been minimized.

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 added a commit that referenced this issue Mar 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment