Skip to content

Commit f94f16b

Browse files
committed
[Foundation] Functions declared in a header should be static.
These were accidentally left as `extern` rather than the correct `static` or `static inline` (etc.).
1 parent e8f5229 commit f94f16b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/SwiftShims/NSIndexSetShims.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ NS_BEGIN_DECLS
2020
- (NSUInteger)_indexOfRangeContainingIndex:(NSUInteger)value;
2121
@end
2222

23-
extern NSUInteger __NSIndexSetRangeCount(NS_NON_BRIDGED(NSIndexSet *)self_) {
23+
NS_INLINE NSUInteger __NSIndexSetRangeCount(NS_NON_BRIDGED(NSIndexSet *)self_) {
2424
return [(NSIndexSet *)self_ rangeCount];
2525
}
2626

27-
extern void __NSIndexSetRangeAtIndex(NS_NON_BRIDGED(NSIndexSet *)self_, NSUInteger rangeIndex, NSUInteger *location, NSUInteger *length) {
27+
NS_INLINE void __NSIndexSetRangeAtIndex(NS_NON_BRIDGED(NSIndexSet *)self_, NSUInteger rangeIndex, NSUInteger *location, NSUInteger *length) {
2828
NSRange result = [(NSIndexSet *)self_ rangeAtIndex:rangeIndex];
2929
*location = result.location;
3030
*length = result.length;

0 commit comments

Comments
 (0)