Skip to content

CoreFoundation macOS xcode14.0 rc

Israel Soto edited this page Sep 7, 2022 · 1 revision

#CoreFoundation.framework

diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h	2022-08-05 12:40:39.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h	2022-08-03 21:05:57.000000000 -0500
@@ -312,12 +312,6 @@
 # define CF_SWIFT_NAME(_name)
 #endif
 
-#if __has_attribute(__swift_attr__)
-#  define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg) __attribute__((__swift_attr__("@_unavailableFromAsync(message: \"" msg "\")")))
-#else
-#  define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg)
-#endif
-
 #if __has_attribute(noescape)
 #define CF_NOESCAPE __attribute__((noescape))
 #else
@@ -336,12 +330,6 @@
 #define CF_WARN_UNUSED_RESULT
 #endif
 
-#if __has_attribute(fallthrough)
-#define CF_FALLTHROUGH __attribute__((fallthrough))
-#else
-#define CF_FALLTHROUGH
-#endif
-
 #if !__has_feature(objc_generics_variance)
 #ifndef __covariant
 #define __covariant
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h	2022-08-01 06:48:13.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h	1969-12-31 18:00:00.000000000 -0600
@@ -1,124 +0,0 @@
-/*	CFCGTypes.h
-	Copyright (c) 1998-2021, Apple Inc. and the Swift project authors
-
-	Portions Copyright (c) 2014-2021, Apple Inc. and the Swift project authors
-	Licensed under Apache License v2.0 with Runtime Library Exception
-	See http://swift.org/LICENSE.txt for license information
-	See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
-*/
-
-#if !defined(__COREFOUNDATION_CFCGTYPES__)
-#define __COREFOUNDATION_CFCGTYPES__ 1
-
-#include <CoreFoundation/CFBase.h>
-#include <CoreFoundation/CFAvailability.h>
-#include <float.h>
-#include <stdint.h>
-
-#define CF_DEFINES_CG_TYPES
-
-#if defined(__has_attribute) && __has_attribute(objc_boxable)
-# define CF_BOXABLE __attribute__((objc_boxable))
-#else
-# define CF_BOXABLE
-#endif
-
-/* Definition of `CGFLOAT_TYPE', `CGFLOAT_IS_DOUBLE', `CGFLOAT_MIN', and
- *    `CGFLOAT_MAX'. */
-
- #if defined(__LP64__) && __LP64__
- # define CGFLOAT_TYPE double
- # define CGFLOAT_IS_DOUBLE 1
- # define CGFLOAT_MIN DBL_MIN
- # define CGFLOAT_MAX DBL_MAX
- # define CGFLOAT_EPSILON DBL_EPSILON
- #else
- # define CGFLOAT_TYPE float
- # define CGFLOAT_IS_DOUBLE 0
- # define CGFLOAT_MIN FLT_MIN
- # define CGFLOAT_MAX FLT_MAX
- # define CGFLOAT_EPSILON FLT_EPSILON
- #endif
-
-/* Definition of the `CGFloat' type and `CGFLOAT_DEFINED'. */
-
-typedef CGFLOAT_TYPE CGFloat;
-#define CGFLOAT_DEFINED 1
-
-/* Points. */
-struct
-CGPoint {
-    CGFloat x;
-    CGFloat y;
-};
-typedef struct CF_BOXABLE CGPoint CGPoint;
-
-/* Sizes. */
-
-struct CGSize {
-    CGFloat width;
-    CGFloat height;
-};
-typedef struct CF_BOXABLE CGSize CGSize;
-
-/* Vectors. */
-
-#define CGVECTOR_DEFINED 1
-
-struct CGVector {
-    CGFloat dx;
-    CGFloat dy;
-};
-typedef struct CF_BOXABLE CGVector CGVector;
-
-/* Rectangles. */
-
-struct CGRect {
-    CGPoint origin;
-    CGSize size;
-};
-typedef struct CF_BOXABLE CGRect CGRect;
-
-/* Rectangle edges. */
-
-typedef CF_CLOSED_ENUM(uint32_t, CGRectEdge) {
-    CGRectMinXEdge, CGRectMinYEdge, CGRectMaxXEdge, CGRectMaxYEdge
-};
-
-typedef struct CGAffineTransform CGAffineTransform;
-
-struct CGAffineTransform {
-    CGFloat a, b, c, d;
-    CGFloat tx, ty;
-};
-
-#define CF_DEFINES_CGAFFINETRANSFORMCOMPONENTS
-
-/*                      |------------------ CGAffineTransformComponents ----------------|
- *
- *      | a  b  0 |     | sx  0  0 |   |  1  0  0 |   | cos(t)  sin(t)  0 |   | 1  0  0 |
- *      | c  d  0 |  =  |  0 sy  0 | * | sh  1  0 | * |-sin(t)  cos(t)  0 | * | 0  1  0 |
- *      | tx ty 1 |     |  0  0  1 |   |  0  0  1 |   |   0       0     1 |   | tx ty 1 |
- *  CGAffineTransform      scale           shear            rotation          translation
- */
-typedef struct CGAffineTransformComponents CGAffineTransformComponents
-    CF_SWIFT_NAME(CGAffineTransform.Components);
-
-struct CGAffineTransformComponents {
-
-    /* initial scaling in X and Y dimensions. {sx,sy} */
-    /* Negative values indicate the image has been flipped in this dimension. */
-    CGSize      scale;
-
-    /* shear distortion (sh). Turns rectangles to parallelograms. 0 for no shear. Typically 0. */
-    CGFloat     horizontalShear;
-
-    /* Rotation angle in radians about the origin. (t) Sign convention for clockwise rotation */
-    /* may differ between various Apple frameworks based on origin placement. Please see discussion. */
-    CGFloat     rotation;
-
-    /* Displacement from the origin (ty, ty) */
-    CGVector    translation;
-};
-
-#endif /* ! __COREFOUNDATION_CFCGTYPES__ */
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h	2022-08-05 15:55:38.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h	2022-08-03 21:05:57.000000000 -0500
@@ -35,6 +35,7 @@
 #define __COREFOUNDATION_CFERROR__ 1
 
 #include <CoreFoundation/CFBase.h>
+#include <CoreFoundation/CFString.h>
 #include <CoreFoundation/CFDictionary.h>
 
 CF_IMPLICIT_BRIDGING_ENABLED
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h	2022-08-06 02:28:38.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h	2022-08-03 21:05:57.000000000 -0500
@@ -55,7 +55,6 @@
 
 CF_EXPORT CFTypeID CFRunLoopGetTypeID(void);
 
-CF_SWIFT_UNAVAILABLE_FROM_ASYNC("CFRunLoopGetCurrent cannot be used from async contexts.")
 CF_EXPORT CFRunLoopRef CFRunLoopGetCurrent(void);
 CF_EXPORT CFRunLoopRef CFRunLoopGetMain(void);
 
@@ -67,12 +66,8 @@
 
 CF_EXPORT CFAbsoluteTime CFRunLoopGetNextTimerFireDate(CFRunLoopRef rl, CFRunLoopMode mode);
 
-CF_SWIFT_UNAVAILABLE_FROM_ASYNC("CFRunLoopRun cannot be used from async contexts.")
 CF_EXPORT void CFRunLoopRun(void);
-
-CF_SWIFT_UNAVAILABLE_FROM_ASYNC("CFRunLoopRunInMode cannot be used from async contexts.")
 CF_EXPORT CFRunLoopRunResult CFRunLoopRunInMode(CFRunLoopMode mode, CFTimeInterval seconds, Boolean returnAfterSourceHandled);
-
 CF_EXPORT Boolean CFRunLoopIsWaiting(CFRunLoopRef rl);
 CF_EXPORT void CFRunLoopWakeUp(CFRunLoopRef rl);
 CF_EXPORT void CFRunLoopStop(CFRunLoopRef rl);
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h	2022-08-05 12:45:58.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h	2022-08-03 21:05:58.000000000 -0500
@@ -16,7 +16,6 @@
 #include <CoreFoundation/CFDictionary.h>
 #include <CoreFoundation/CFCharacterSet.h>
 #include <CoreFoundation/CFLocale.h>
-#include <CoreFoundation/CFError.h>
 #include <stdarg.h>
 
 CF_IMPLICIT_BRIDGING_ENABLED
@@ -217,10 +216,10 @@
 
 /* The following four functions copy the provided buffer into CFString's internal storage. */
 CF_EXPORT
-CFStringRef CFStringCreateWithPascalString(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding) CF_FORMAT_ARGUMENT(2);
+CFStringRef CFStringCreateWithPascalString(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding);
 
 CF_EXPORT
-CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding) CF_FORMAT_ARGUMENT(2);
+CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding);
 
 /* The following takes an explicit length, and allows you to specify whether the data is an external format --- that is, whether to pay attention to the BOM character (if any) and do byte swapping if necessary
 */
@@ -248,10 +247,10 @@
 APIs which might retain or copy the strings.
 */
 CF_EXPORT
-CFStringRef CFStringCreateWithPascalStringNoCopy(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator) CF_FORMAT_ARGUMENT(2);
+CFStringRef CFStringCreateWithPascalStringNoCopy(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator);
 
 CF_EXPORT
-CFStringRef CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator) CF_FORMAT_ARGUMENT(2);
+CFStringRef CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator);
 
 /* The following takes an explicit length, and allows you to specify whether the data is an external format --- that is, whether to pay attention to the BOM character (if any) and do byte swapping if necessary
 */
@@ -267,7 +266,7 @@
 CFStringRef CFStringCreateWithSubstring(CFAllocatorRef alloc, CFStringRef str, CFRange range);
 
 CF_EXPORT
-CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef theString) CF_FORMAT_ARGUMENT(2);
+CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef theString);
 
 /* These functions create a CFString from the provided printf-like format string and arguments.
 */
@@ -277,12 +276,6 @@
 CF_EXPORT
 CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) CF_FORMAT_FUNCTION(3,0);
 
-CF_EXPORT
-CFStringRef CFStringCreateStringWithValidatedFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef validFormatSpecifiers, CFStringRef format, CFErrorRef *errorPtr, ...) API_AVAILABLE(macos(13.0), ios(16.0), watchos(8.0), tvos(8.0)) CF_FORMAT_FUNCTION(3, 6) CF_SWIFT_UNAVAILABLE("Use string interpolations instead");
-
-CF_EXPORT
-CFStringRef CFStringCreateStringWithValidatedFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef validFormatSpecifiers, CFStringRef format, va_list arguments, CFErrorRef *errorPtr) API_AVAILABLE(macos(13.0), ios(16.0), watchos(8.0), tvos(8.0)) CF_FORMAT_FUNCTION(3, 0) CF_SWIFT_UNAVAILABLE("Use string interpolations instead");
-
 /* Functions to create mutable strings. "maxLength", if not 0, is a hard bound on the length of the string. If 0, there is no limit on the length.
 */
 CF_EXPORT
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h	2022-08-01 06:48:12.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h	2022-02-16 00:38:49.000000000 -0600
@@ -33,13 +33,8 @@
 #if defined(__STDC_VERSION__) && (199901L <= __STDC_VERSION__)
 
 #include <inttypes.h>
-#include <stdint.h>
-
-#endif
-
-#if defined(__STDC_VERSION__) && (199901L <= __STDC_VERSION__) && (__STDC_VERSION__ <= 201710L)
-
 #include <stdbool.h>
+#include <stdint.h>
 
 #endif
 
@@ -52,7 +47,6 @@
 #include <CoreFoundation/CFBitVector.h>
 #include <CoreFoundation/CFByteOrder.h>
 #include <CoreFoundation/CFCalendar.h>
-#include <CoreFoundation/CFCGTypes.h>
 #include <CoreFoundation/CFCharacterSet.h>
 #include <CoreFoundation/CFData.h>
 #include <CoreFoundation/CFDate.h>
Clone this wiki locally