Skip to content

Commit bf399ee

Browse files
committedJan 26, 2016
Merge branch 'master' of github.com:apple/swift-corelibs-foundation into pr/241
# Conflicts: # Foundation/NSCoder.swift # Foundation/NSKeyedArchiver.swift
2 parents aa4580b + 8f658e1 commit bf399ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+5021
-346
lines changed
 

‎CoreFoundation/Base.subproj/CFRuntime.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ void __CFInitialize(void) {
11351135
#if (DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI) && !DEPLOYMENT_RUNTIME_SWIFT
11361136
CFMachPortGetTypeID();
11371137
#endif
1138-
#if (DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_WINDOWS) && !DEPLOYMENT_RUNTIME_SWIFT
1138+
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_WINDOWS || DEPLOYMENT_TARGET_LINUX
11391139
__CFStreamInitialize();
11401140
#endif
11411141
#if DEPLOYMENT_TARGET_WINDOWS
@@ -1159,6 +1159,7 @@ void __CFInitialize(void) {
11591159
#endif
11601160
#endif
11611161
#if DEPLOYMENT_RUNTIME_SWIFT
1162+
_CFKeyedArchiverUIDGetTypeID();
11621163
#ifndef __CFInitializeSwift
11631164
#if TARGET_OS_LINUX
11641165
#define __CFInitializeSwift _TF10Foundation19__CFInitializeSwiftFT_T_

‎CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

+14
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,20 @@ CF_PRIVATE CF_EXPORT void _cf_uuid_unparse_upper(const _cf_uuid_t uu, _cf_uuid_s
224224

225225

226226
CF_PRIVATE CF_EXPORT int32_t _CF_SOCK_STREAM();
227+
extern CFWriteStreamRef _CFWriteStreamCreateFromFileDescriptor(CFAllocatorRef alloc, int fd);
228+
#if !__COREFOUNDATION_FORFOUNDATIONONLY__
229+
typedef const struct __CFKeyedArchiverUID * CFKeyedArchiverUIDRef;
230+
extern CFTypeID _CFKeyedArchiverUIDGetTypeID(void);
231+
extern CFKeyedArchiverUIDRef _CFKeyedArchiverUIDCreate(CFAllocatorRef allocator, uint32_t value);
232+
extern uint32_t _CFKeyedArchiverUIDGetValue(CFKeyedArchiverUIDRef uid);
233+
#endif
234+
235+
extern CFIndex __CFBinaryPlistWriteToStream(CFPropertyListRef plist, CFTypeRef stream);
236+
extern CFDataRef _CFPropertyListCreateXMLDataWithExtras(CFAllocatorRef allocator, CFPropertyListRef propertyList);
237+
extern CFWriteStreamRef _CFWriteStreamCreateFromFileDescriptor(CFAllocatorRef alloc, int fd);
238+
239+
extern _Nullable CFDateRef CFCalendarCopyGregorianStartDate(CFCalendarRef calendar);
240+
extern void CFCalendarSetGregorianStartDate(CFCalendarRef calendar, CFDateRef date);
227241

228242
CF_PRIVATE CF_EXPORT char *_Nonnull*_Nonnull _CFEnviron(void);
229243

0 commit comments

Comments
 (0)
Please sign in to comment.