Skip to content

Commit 910b1fc

Browse files
authored
Merge pull request #1157 from spevans/pr_prototype_fixes1
2 parents 289b5a0 + 753a8d1 commit 910b1fc

File tree

10 files changed

+32
-32
lines changed

10 files changed

+32
-32
lines changed

CoreFoundation/Base.subproj/CFInternal.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ CF_EXPORT void _CFMachPortInstallNotifyPort(CFRunLoopRef rl, CFStringRef mode);
157157

158158
CF_PRIVATE os_log_t _CFOSLog(void);
159159

160-
CF_PRIVATE CFIndex __CFActiveProcessorCount();
160+
CF_PRIVATE CFIndex __CFActiveProcessorCount(void);
161161

162162
#ifndef CLANG_ANALYZER_NORETURN
163163
#if __has_feature(attribute_analyzer_noreturn)
@@ -325,7 +325,7 @@ extern Boolean __CFStringScanHex(CFStringInlineBuffer *buf, SInt32 *indexPtr, un
325325
extern const char *__CFgetenv(const char *n);
326326
extern const char *__CFgetenvIfNotRestricted(const char *n); // Returns NULL in a restricted process
327327

328-
CF_PRIVATE Boolean __CFProcessIsRestricted();
328+
CF_PRIVATE Boolean __CFProcessIsRestricted(void);
329329

330330
// This is really about the availability of C99. We don't have that on Windows, but we should everywhere else.
331331
#if DEPLOYMENT_TARGET_WINDOWS
@@ -587,8 +587,8 @@ CF_PRIVATE SInt32 _CFGetFileProperties(CFAllocatorRef alloc, CFURLRef pathURL, B
587587

588588
/* ==================== Simple path manipulation ==================== */
589589

590-
CF_EXPORT UniChar _CFGetSlash();
591-
CF_PRIVATE CFStringRef _CFGetSlashStr();
590+
CF_EXPORT UniChar _CFGetSlash(void);
591+
CF_PRIVATE CFStringRef _CFGetSlashStr(void);
592592
CF_EXPORT Boolean _CFIsAbsolutePath(UniChar *unichars, CFIndex length);
593593
CF_PRIVATE void _CFAppendTrailingPathSlash2(CFMutableStringRef path);
594594
CF_PRIVATE void _CFAppendConditionalTrailingPathSlash2(CFMutableStringRef path);
@@ -733,7 +733,7 @@ extern void *__CFLookupCoreServicesInternalFunction(const char *name);
733733
CF_PRIVATE CFComparisonResult _CFCompareStringsWithLocale(CFStringInlineBuffer *str1, CFRange str1Range, CFStringInlineBuffer *str2, CFRange str2Range, CFOptionFlags options, const void *compareLocale);
734734

735735

736-
CF_PRIVATE CFArrayRef _CFBundleCopyUserLanguages();
736+
CF_PRIVATE CFArrayRef _CFBundleCopyUserLanguages(void);
737737

738738

739739
// This should only be used in CF types, not toll-free bridged objects!

CoreFoundation/Base.subproj/CFRuntime.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -808,11 +808,11 @@ CFAllocatorRef CFGetAllocator(CFTypeRef cf) {
808808
}
809809

810810

811-
extern CFTypeID CFBinaryHeapGetTypeID();
812-
extern CFTypeID CFBitVectorGetTypeID();
813-
extern CFTypeID CFTreeGetTypeID();
814-
extern CFTypeID CFPlugInInstanceGetTypeID();
815-
extern CFTypeID CFStringTokenizerGetTypeID();
811+
extern CFTypeID CFBinaryHeapGetTypeID(void);
812+
extern CFTypeID CFBitVectorGetTypeID(void);
813+
extern CFTypeID CFTreeGetTypeID(void);
814+
extern CFTypeID CFPlugInInstanceGetTypeID(void);
815+
extern CFTypeID CFStringTokenizerGetTypeID(void);
816816
extern CFTypeID CFStorageGetTypeID(void);
817817
extern void __CFAllocatorInitialize(void);
818818
extern void __CFStringInitialize(void);
@@ -821,7 +821,7 @@ extern void __CFCharacterSetInitialize(void);
821821
extern void __CFPFactoryInitialize(void);
822822
extern void __CFPlugInInitialize(void);
823823
#if (DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_MACOSX) && DEPLOYMENT_RUNTIME_SWIFT
824-
CF_PRIVATE void __CFTSDInitialize();
824+
CF_PRIVATE void __CFTSDInitialize(void);
825825
#endif
826826
#if DEPLOYMENT_TARGET_WINDOWS
827827
// From CFPlatform.c
@@ -1005,7 +1005,7 @@ void __CFInitialize(void) {
10051005
memset(__CFRuntimeObjCClassTable, 0, sizeof(__CFRuntimeObjCClassTable));
10061006

10071007
#if DEPLOYMENT_RUNTIME_SWIFT
1008-
extern uintptr_t __CFSwiftGetBaseClass();
1008+
extern uintptr_t __CFSwiftGetBaseClass(void);
10091009

10101010
uintptr_t NSCFType = __CFSwiftGetBaseClass();
10111011
for (CFIndex idx = 1; idx < __CFRuntimeClassTableSize; idx++) {
@@ -1107,7 +1107,7 @@ void __CFInitialize(void) {
11071107
#endif
11081108

11091109
#if DEPLOYMENT_RUNTIME_SWIFT
1110-
extern void __CFInitializeSwift();
1110+
extern void __CFInitializeSwift(void);
11111111
__CFInitializeSwift();
11121112
__CFNumberInitialize(); /* needs to happen after Swift bridge is initialized */
11131113
#endif

CoreFoundation/Base.subproj/ForFoundationOnly.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -631,12 +631,12 @@ CF_EXPORT _CFStringFileSystemRepresentationError _CFStringGetFileSystemRepresent
631631

632632

633633

634-
CF_EXPORT CFIndex __CFProcessorCount();
635-
CF_EXPORT uint64_t __CFMemorySize();
634+
CF_EXPORT CFIndex __CFProcessorCount(void);
635+
CF_EXPORT uint64_t __CFMemorySize(void);
636636
CF_EXPORT CFStringRef _CFProcessNameString(void);
637-
CF_EXPORT CFIndex __CFActiveProcessorCount();
638-
CF_EXPORT CFDictionaryRef __CFGetEnvironment();
639-
CF_EXPORT int32_t __CFGetPid();
637+
CF_EXPORT CFIndex __CFActiveProcessorCount(void);
638+
CF_EXPORT CFDictionaryRef __CFGetEnvironment(void);
639+
CF_EXPORT int32_t __CFGetPid(void);
640640
CF_EXPORT CFTimeInterval CFGetSystemUptime(void);
641641
CF_EXPORT CFStringRef CFCopySystemVersionString(void);
642642
CF_EXPORT CFDictionaryRef _CFCopySystemVersionDictionary(void);

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ struct _NSMutableStringBridge {
138138
};
139139

140140
struct _NSXMLParserBridge {
141-
_CFXMLInterface _Nullable (*_Nonnull currentParser)();
141+
_CFXMLInterface _Nullable (*_Nonnull currentParser)(void);
142142
_CFXMLInterfaceParserInput _Nullable (*_Nonnull _xmlExternalEntityWithURL)(_CFXMLInterface interface, const char *url, const char * identifier, _CFXMLInterfaceParserContext context, _CFXMLInterfaceExternalEntityLoader originalLoaderFunction);
143143

144144
_CFXMLInterfaceParserContext _Nonnull (*_Nonnull getContext)(_CFXMLInterface ctx);
@@ -300,7 +300,7 @@ CF_EXPORT CFHashCode __CFHashDouble(double d);
300300
typedef pthread_key_t _CFThreadSpecificKey;
301301
CF_EXPORT CFTypeRef _Nullable _CFThreadSpecificGet(_CFThreadSpecificKey key);
302302
CF_EXPORT void _CThreadSpecificSet(_CFThreadSpecificKey key, CFTypeRef _Nullable value);
303-
CF_EXPORT _CFThreadSpecificKey _CFThreadSpecificKeyCreate();
303+
CF_EXPORT _CFThreadSpecificKey _CFThreadSpecificKeyCreate(void);
304304

305305
typedef pthread_attr_t _CFThreadAttributes;
306306
typedef pthread_t _CFThreadRef;

CoreFoundation/Parsing.subproj/CFXMLInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ typedef void (*_CFXMLInterfaceStructuredErrorFunc)(_CFXMLInterface ctx, _CFXMLIn
100100

101101
void _CFSetupXMLInterface(void);
102102
_CFXMLInterfaceParserInput _CFXMLInterfaceNoNetExternalEntityLoader(const char *URL, const char *ID, _CFXMLInterfaceParserContext ctxt);
103-
_CFXMLInterfaceSAXHandler _CFXMLInterfaceCreateSAXHandler();
103+
_CFXMLInterfaceSAXHandler _CFXMLInterfaceCreateSAXHandler(void);
104104
void _CFXMLInterfaceDestroySAXHandler(_CFXMLInterfaceSAXHandler handler);
105105
void _CFXMLInterfaceSetStructuredErrorFunc(_CFXMLInterface ctx, _CFXMLInterfaceStructuredErrorFunc _Nullable handler);
106106
_CFXMLInterfaceParserContext _CFXMLInterfaceCreatePushParserCtxt(_CFXMLInterfaceSAXHandler _Nullable sax, _CFXMLInterface user_data, const char * chunk, int size, const char *_Nullable filename);

CoreFoundation/PlugIn.subproj/CFBundle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static const CFRuntimeClass __CFBundleClass = {
882882
};
883883

884884
// From CFBundle_Resources.c
885-
CF_PRIVATE void _CFBundleResourcesInitialize();
885+
CF_PRIVATE void _CFBundleResourcesInitialize(void);
886886

887887
CFTypeID CFBundleGetTypeID(void) {
888888
static dispatch_once_t initOnce;

CoreFoundation/PlugIn.subproj/CFBundle_Internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ CF_PRIVATE SInt32 _CFBundleCurrentArchitecture(void);
144144
CF_PRIVATE Boolean _CFBundleGetObjCImageInfo(CFBundleRef bundle, uint32_t *objcVersion, uint32_t *objcFlags);
145145

146146
#if defined(BINARY_SUPPORT_DYLD)
147-
CF_PRIVATE CFMutableDictionaryRef _CFBundleCreateInfoDictFromMainExecutable();
147+
CF_PRIVATE CFMutableDictionaryRef _CFBundleCreateInfoDictFromMainExecutable(void);
148148
CF_PRIVATE Boolean _CFBundleGrokObjCImageInfoFromMainExecutable(uint32_t *objcVersion, uint32_t *objcFlags);
149149
#endif
150150

CoreFoundation/String.subproj/CFBurstTrie.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ typedef CF_OPTIONS(CFOptionFlags, CFBurstTrieOpts) {
6060
typedef void (*CFBurstTrieTraversalCallback)(void* context, const UInt8* key, uint32_t keyLength, uint32_t payload, Boolean *stop);
6161

6262
CF_EXPORT
63-
CFBurstTrieRef CFBurstTrieCreate() CF_AVAILABLE(10_7, 4_2);
63+
CFBurstTrieRef CFBurstTrieCreate(void) CF_AVAILABLE(10_7, 4_2);
6464

6565
CF_EXPORT
6666
CFBurstTrieRef CFBurstTrieCreateWithOptions(CFDictionaryRef options) CF_AVAILABLE(10_8, 6_0);

CoreFoundation/URL.subproj/CFURLComponents.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ CF_EXPORT CFStringRef _CFStringCreateByAddingPercentEncodingWithAllowedCharacter
102102
CF_EXPORT CFStringRef _Nullable _CFStringCreateByRemovingPercentEncoding(CFAllocatorRef alloc, CFStringRef string);
103103

104104
// These return singletons
105-
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLUserAllowedCharacterSet();
106-
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLPasswordAllowedCharacterSet();
107-
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLHostAllowedCharacterSet();
108-
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLPathAllowedCharacterSet();
109-
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLQueryAllowedCharacterSet();
110-
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLFragmentAllowedCharacterSet();
105+
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLUserAllowedCharacterSet(void);
106+
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLPasswordAllowedCharacterSet(void);
107+
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLHostAllowedCharacterSet(void);
108+
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLPathAllowedCharacterSet(void);
109+
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLQueryAllowedCharacterSet(void);
110+
CF_EXPORT CFCharacterSetRef _CFURLComponentsGetURLFragmentAllowedCharacterSet(void);
111111

112112
CF_EXPORT _Nullable CFArrayRef _CFURLComponentsCopyQueryItems(CFURLComponentsRef components);
113113
CF_EXPORT void _CFURLComponentsSetQueryItems(CFURLComponentsRef components, CFArrayRef names, CFArrayRef values);

CoreFoundation/URL.subproj/CFURLSessionInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ CF_EXPORT int const CFURLSessionSeekOk;
546546
CF_EXPORT int const CFURLSessionSeekCantSeek;
547547
CF_EXPORT int const CFURLSessionSeekFail;
548548

549-
CF_EXPORT CFURLSessionEasyHandle _Nonnull CFURLSessionEasyHandleInit();
549+
CF_EXPORT CFURLSessionEasyHandle _Nonnull CFURLSessionEasyHandleInit(void);
550550
CF_EXPORT void CFURLSessionEasyHandleDeinit(CFURLSessionEasyHandle _Nonnull handle);
551551
CF_EXPORT CFURLSessionEasyCode CFURLSessionEasyHandleSetPauseState(CFURLSessionEasyHandle _Nonnull handle, int send, int receive);
552552

553-
CF_EXPORT CFURLSessionMultiHandle _Nonnull CFURLSessionMultiHandleInit();
553+
CF_EXPORT CFURLSessionMultiHandle _Nonnull CFURLSessionMultiHandleInit(void);
554554
CF_EXPORT CFURLSessionMultiCode CFURLSessionMultiHandleDeinit(CFURLSessionMultiHandle _Nonnull handle);
555555
CF_EXPORT CFURLSessionMultiCode CFURLSessionMultiHandleAddHandle(CFURLSessionMultiHandle _Nonnull handle, CFURLSessionEasyHandle _Nonnull curl);
556556
CF_EXPORT CFURLSessionMultiCode CFURLSessionMultiHandleRemoveHandle(CFURLSessionMultiHandle _Nonnull handle, CFURLSessionEasyHandle _Nonnull curl);

0 commit comments

Comments
 (0)