Skip to content

Commit c3e0d8f

Browse files
authored
Merge pull request #502 from compnerd/key-visibility
2 parents e57d3c6 + 590b830 commit c3e0d8f

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

CoreFoundation/Locale.subproj/CFDateFormatter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef CF_ENUM(CFIndex, CFDateFormatterAmbiguousYearHandling) {
4141

4242
extern UCalendar *__CFCalendarCreateUCalendar(CFStringRef calendarID, CFStringRef localeID, CFTimeZoneRef tz);
4343

44-
static CONST_STRING_DECL(kCFDateFormatterFormattingContextKey, "kCFDateFormatterFormattingContextKey");
44+
PE_CONST_STRING_DECL(kCFDateFormatterFormattingContextKey, "kCFDateFormatterFormattingContextKey");
4545

4646
CF_EXPORT const CFStringRef kCFDateFormatterCalendarIdentifierKey;
4747

CoreFoundation/Locale.subproj/CFNumberFormatter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static void __CFNumberFormatterCustomize(CFNumberFormatterRef formatter);
2727
static CFStringRef __CFNumberFormatterCreateCompressedString(CFStringRef inString, Boolean isFormat, CFRange *rangep);
2828
static UErrorCode __CFNumberFormatterApplyPattern(CFNumberFormatterRef formatter, CFStringRef pattern);
29-
static CONST_STRING_DECL(kCFNumberFormatterFormattingContextKey, "kCFNumberFormatterFormattingContextKey");
29+
CONST_STRING_DECL(kCFNumberFormatterFormattingContextKey, "kCFNumberFormatterFormattingContextKey");
3030

3131
#define BUFFER_SIZE 768
3232

CoreFoundation/URL.subproj/CFURL.c

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,12 @@ CF_EXPORT CFURLRef _CFURLCreateCurrentDirectoryURL(CFAllocatorRef allocator) CF_
5959
static Boolean _CFURLHasFileURLScheme(CFURLRef url, Boolean *hasScheme);
6060
#endif
6161

62-
63-
64-
// When __CONSTANT_CFSTRINGS__ is not defined, we have separate macros for static and exported constant strings, but
65-
// when it is defined, we must prefix with static to prevent the string from being exported
66-
#ifdef __CONSTANT_CFSTRINGS__
67-
static CONST_STRING_DECL(kCFURLHTTPScheme, "http")
68-
static CONST_STRING_DECL(kCFURLHTTPSScheme, "https")
69-
static CONST_STRING_DECL(kCFURLFileScheme, "file")
70-
static CONST_STRING_DECL(kCFURLDataScheme, "data")
71-
static CONST_STRING_DECL(kCFURLFTPScheme, "ftp")
72-
static CONST_STRING_DECL(kCFURLLocalhost, "localhost")
73-
#else
74-
CONST_STRING_DECL(kCFURLHTTPScheme, "http")
75-
CONST_STRING_DECL(kCFURLHTTPSScheme, "https")
76-
CONST_STRING_DECL(kCFURLFileScheme, "file")
77-
CONST_STRING_DECL(kCFURLDataScheme, "data")
78-
CONST_STRING_DECL(kCFURLFTPScheme, "ftp")
79-
CONST_STRING_DECL(kCFURLLocalhost, "localhost")
80-
#endif
62+
PE_CONST_STRING_DECL(kCFURLHTTPScheme, "http")
63+
PE_CONST_STRING_DECL(kCFURLHTTPSScheme, "https")
64+
PE_CONST_STRING_DECL(kCFURLFileScheme, "file")
65+
PE_CONST_STRING_DECL(kCFURLDataScheme, "data")
66+
PE_CONST_STRING_DECL(kCFURLFTPScheme, "ftp")
67+
PE_CONST_STRING_DECL(kCFURLLocalhost, "localhost")
8168

8269
#if DEBUG_URL_MEMORY_USAGE
8370
static uint numURLs = 0; // number of URLs allocated

0 commit comments

Comments
 (0)