diff --git a/src/bindgen/cdecl.rs b/src/bindgen/cdecl.rs index 90d58d8c..b5049516 100644 --- a/src/bindgen/cdecl.rs +++ b/src/bindgen/cdecl.rs @@ -337,7 +337,6 @@ impl CDecl { out.write(")"); } } - // is_functors = false; out.write("("); if args.is_empty() && config.language == Language::C { @@ -408,6 +407,7 @@ impl CDecl { write!(out, " {}", ident); } } + is_functors = false; last_was_pointer = true; } diff --git a/tests/expectations/cdecl.d b/tests/expectations/cdecl.d index 86185cbe..e6c82c2d 100644 --- a/tests/expectations/cdecl.d +++ b/tests/expectations/cdecl.d @@ -34,7 +34,7 @@ alias P = void function(int named1st, bool, bool named3rd, int _); extern(C) { -void function() O() O; +void function() O(); void root(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k, L l, M m, N n, P p);