Permalink
Browse files

JNAerator: fixed parsing of const type mutator (fixes parsing of `voi…

…d f(struct x * const);`) (issue #205)
  • Loading branch information...
1 parent 3332798 commit ad94c350f91861e80b2f8cdfad0f1a7597927dbe @ochafik ochafik committed Dec 16, 2011
@@ -1067,7 +1067,10 @@ argDef returns [Arg arg]
;
typeMutator returns [TypeMutator mutator]
- : { next("const", "__const") }?=> IDENTIFIER '*' { $mutator = TypeMutator.CONST_STAR; } |
+ :
+ { next("const", "__const") }?=> IDENTIFIER {
+ $mutator = TypeMutator.CONST;
+ } |
'*' {
$mutator = TypeMutator.STAR;
} |

0 comments on commit ad94c35

Please sign in to comment.