-
Notifications
You must be signed in to change notification settings - Fork 55
Conversation
@@ -10432,6 +10434,11 @@ typedef CXInclusionVisitor = ffi.Pointer< | |||
ffi.Pointer<CXSourceLocation> inclusion_stack, | |||
ffi.UnsignedInt include_len, | |||
CXClientData client_data)>>; | |||
typedef CXInclusionVisitor_function = ffi.Void Function( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming-wise, it feels like this one should be without _function
and the other one should be renamed _pointer
. Do you know if we have a lot of uses of these typedefs, if it would be worth the breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but we could avoid a breaking change by putting this behind a flag. Eg, add a flag called use-function-typedefs
, and if it's true we add _pointer
to the existing definition and then define the function definition with the current name. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just merge as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
When generating typedefs for
Pointer<NativeFunction<Function>>
, also generate a typedef for theFunction
.Fixes dart-lang/native#431.