@@ -54,7 +54,7 @@ struct _NSObjectBridge {
5454struct _NSArrayBridge {
5555 CFIndex (* _Nonnull count )(CFTypeRef obj );
5656 _Nonnull CFTypeRef (* _Nonnull objectAtIndex )(CFTypeRef obj , CFIndex index );
57- void (* _Nonnull getObjects )(CFTypeRef array , CFRange range , CFTypeRef _Nonnull * _Nonnull values );
57+ void (* _Nonnull getObjects )(CFTypeRef array , CFRange range , CFTypeRef _Nullable * _Nonnull values );
5858};
5959
6060struct _NSMutableArrayBridge {
@@ -65,19 +65,19 @@ struct _NSMutableArrayBridge {
6565 void (* exchangeObjectAtIndex )(CFTypeRef array , CFIndex idx1 , CFIndex idx2 );
6666 void (* removeObjectAtIndex )(CFTypeRef array , CFIndex idx );
6767 void (* removeAllObjects )(CFTypeRef array );
68- void (* replaceObjectsInRange )(CFTypeRef array , CFRange range , CFTypeRef _Nonnull * _Nonnull newValues , CFIndex newCount );
68+ void (* replaceObjectsInRange )(CFTypeRef array , CFRange range , CFTypeRef _Nonnull * _Nullable newValues , CFIndex newCount );
6969};
7070
7171struct _NSDictionaryBridge {
7272 CFIndex (* count )(CFTypeRef dictionary );
7373 CFIndex (* countForKey )(CFTypeRef dictionary , CFTypeRef key );
7474 bool (* containsKey )(CFTypeRef dictionary , CFTypeRef key );
7575 _Nullable CFTypeRef (* _Nonnull objectForKey )(CFTypeRef dictionary , CFTypeRef key );
76- bool (* _getValueIfPresent )(CFTypeRef dictionary , CFTypeRef key , CFTypeRef _Nonnull * _Nullable value );
76+ bool (* _getValueIfPresent )(CFTypeRef dictionary , CFTypeRef key , CFTypeRef _Nullable * _Nonnull value );
7777 CFIndex (* __getValue )(CFTypeRef dictionary , CFTypeRef value , CFTypeRef key );
7878 bool (* containsObject )(CFTypeRef dictionary , CFTypeRef value );
7979 CFIndex (* countForObject )(CFTypeRef dictionary , CFTypeRef value );
80- void (* getObjects )(CFTypeRef dictionary , CFTypeRef _Nonnull * _Nonnull valuebuf , CFTypeRef _Nonnull * _Nonnull keybuf );
80+ void (* getObjects )(CFTypeRef dictionary , CFTypeRef _Nullable * _Nullable valuebuf , CFTypeRef _Nullable * _Nullable keybuf );
8181 void (* __apply )(CFTypeRef dictionary , void (* applier )(CFTypeRef key , CFTypeRef value , void * context ), void * context );
8282};
8383
@@ -104,7 +104,7 @@ struct _NSStringBridge {
104104 CFIndex (* length )(CFTypeRef str );
105105 UniChar (* characterAtIndex )(CFTypeRef str , CFIndex idx );
106106 void (* getCharacters )(CFTypeRef str , CFRange range , UniChar * buffer );
107- CFIndex (* __getBytes )(CFTypeRef str , CFStringEncoding encoding , CFRange range , uint8_t * buffer , CFIndex maxBufLen , CFIndex * usedBufLen );
107+ CFIndex (* __getBytes )(CFTypeRef str , CFStringEncoding encoding , CFRange range , uint8_t * _Nullable buffer , CFIndex maxBufLen , CFIndex * _Nullable usedBufLen );
108108 const char * _Nullable (* _Nonnull _fastCStringContents )(CFTypeRef str );
109109 const UniChar * _Nullable (* _Nonnull _fastCharacterContents )(CFTypeRef str );
110110 bool (* _getCString )(CFTypeRef str , char * buffer , size_t len , UInt32 encoding );
@@ -123,15 +123,15 @@ struct _NSMutableStringBridge {
123123
124124struct _NSXMLParserBridge {
125125 _CFXMLInterface _Nullable (* _Nonnull currentParser )();
126- _CFXMLInterfaceParserInput _Nonnull (* _Nonnull _xmlExternalEntityWithURL )(_CFXMLInterface interface , const char * url , const char * identifier , _CFXMLInterfaceParserContext context , _CFXMLInterfaceExternalEntityLoader originalLoaderFunction );
126+ _CFXMLInterfaceParserInput _Nullable (* _Nonnull _xmlExternalEntityWithURL )(_CFXMLInterface interface , const char * url , const char * identifier , _CFXMLInterfaceParserContext context , _CFXMLInterfaceExternalEntityLoader originalLoaderFunction );
127127
128128 _CFXMLInterfaceParserContext _Nonnull (* _Nonnull getContext )(_CFXMLInterface ctx );
129129
130130 void (* internalSubset )(_CFXMLInterface ctx , const unsigned char * name , const unsigned char * ExternalID , const unsigned char * SystemID );
131131 int (* isStandalone )(_CFXMLInterface ctx );
132132 int (* hasInternalSubset )(_CFXMLInterface ctx );
133133 int (* hasExternalSubset )(_CFXMLInterface ctx );
134- _CFXMLInterfaceEntity _Nonnull (* _Nonnull getEntity )(_CFXMLInterface ctx , const unsigned char * name );
134+ _CFXMLInterfaceEntity _Nullable (* _Nonnull getEntity )(_CFXMLInterface ctx , const unsigned char * name );
135135 void (* notationDecl )(_CFXMLInterface ctx ,
136136 const unsigned char * name ,
137137 const unsigned char * publicId ,
@@ -156,16 +156,16 @@ struct _NSXMLParserBridge {
156156 void (* endDocument )(_CFXMLInterface ctx );
157157 void (* startElementNs )(_CFXMLInterface ctx ,
158158 const unsigned char * localname ,
159- const unsigned char * prefix ,
159+ const unsigned char * _Nullable prefix ,
160160 const unsigned char * URI ,
161161 int nb_namespaces ,
162- const unsigned char * _Nonnull * _Nonnull namespaces ,
162+ const unsigned char * _Nullable * _Nonnull namespaces ,
163163 int nb_attributes ,
164164 int nb_defaulted ,
165- const unsigned char * _Nonnull * _Nonnull attributes );
165+ const unsigned char * _Nullable * _Nonnull attributes );
166166 void (* endElementNs )(_CFXMLInterface ctx ,
167167 const unsigned char * localname ,
168- const unsigned char * prefix ,
168+ const unsigned char * _Nullable prefix ,
169169 const unsigned char * URI );
170170 void (* characters )(_CFXMLInterface ctx ,
171171 const unsigned char * ch ,
@@ -239,7 +239,7 @@ extern CFWriteStreamRef _CFWriteStreamCreateFromFileDescriptor(CFAllocatorRef al
239239extern _Nullable CFDateRef CFCalendarCopyGregorianStartDate (CFCalendarRef calendar );
240240extern void CFCalendarSetGregorianStartDate (CFCalendarRef calendar , CFDateRef date );
241241
242- CF_PRIVATE CF_EXPORT char * _Nonnull * _Nonnull _CFEnviron (void );
242+ CF_PRIVATE CF_EXPORT char * _Nullable * _Nonnull _CFEnviron (void );
243243
244244CF_EXPORT void CFLog1 (CFLogLevel lev , CFStringRef message );
245245
0 commit comments