Skip to content

Commit

Permalink
Update CHANGELOG.md and fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Jul 8, 2023
1 parent e2a8136 commit d8b1890
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Fix `Parser` for function parameters contained in template arguments ([pull #693](https://github.com/bytedeco/javacpp/pull/693))
* Fix `Parser` on function pointer declarations starting with `typedef struct` ([pull bytedeco/javacpp-presets#1361](https://github.com/bytedeco/javacpp-presets/pull/1361))

### June 6, 2023 version 1.5.9
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,9 @@ Type[] templateArguments(Context context) throws ParserException {
Parameters p = parameters(context, 0, false);
if (p != null) {
// Build prototype string, without space after comma
type.cppName += '(';
type.cppName += "(";
String separator = "";
for (Declarator d: p.declarators) {
for (Declarator d : p.declarators) {
if (d != null) {
String s = d.type.cppName;
if (d.type.constValue && !s.startsWith("const ")) {
Expand All @@ -666,7 +666,7 @@ Type[] templateArguments(Context context) throws ParserException {
separator = ",";
}
}
type.cppName += ')';
type.cppName += ")";
token = tokens.get();
if (token.match('<')) {
// probably an actual less than, skip.
Expand Down

0 comments on commit d8b1890

Please sign in to comment.