Skip to content

Commit ce52f58

Browse files
committed
CoreFoundation: remove names in function pointer (NFC)
`interface` is a problematic name on Windows where the Windows headers will replace it with `struct` with preprocessors which break parsing of the header. Remove the names as they are not needed, but leave them as comments for documentation.
1 parent 38bc03a commit ce52f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ struct _NSMutableStringBridge {
179179

180180
struct _NSXMLParserBridge {
181181
_CFXMLInterface _Nullable (*_Nonnull currentParser)(void);
182-
_CFXMLInterfaceParserInput _Nullable (*_Nonnull _xmlExternalEntityWithURL)(_CFXMLInterface interface, const char *url, const char * identifier, _CFXMLInterfaceParserContext context, _CFXMLInterfaceExternalEntityLoader originalLoaderFunction);
182+
_CFXMLInterfaceParserInput _Nullable (*_Nonnull _xmlExternalEntityWithURL)(_CFXMLInterface /*interface*/, const char * /*url*/, const char * /*identifier*/, _CFXMLInterfaceParserContext /*context*/, _CFXMLInterfaceExternalEntityLoader /*originalLoaderFunction*/);
183183

184184
_CFXMLInterfaceParserContext _Nonnull (*_Nonnull getContext)(_CFXMLInterface ctx);
185185

0 commit comments

Comments
 (0)