Changeset 180367 in webkit
- Timestamp:
- Feb 19, 2015 2:56:44 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r180366 r180367 1 2015-02-19 David Kilzer <ddkilzer@apple.com> 2 3 Rename SOFT_LINK_FUNCTION_{DECL,IMPL}() to SOFT_LINK_FUNCTION_{HEADER,SOURCE}() 4 5 Rubber-stamped by Brent Fulgham. 6 7 "HEADER" and "SOURCE" seem clearer than "DECL" and "IMPL", and 8 Brent agreed when I talked to him in person. 9 10 * platform/cf/CoreMediaSoftLink.cpp: 11 * platform/cf/CoreMediaSoftLink.h: 12 * platform/mac/SoftLinking.h: 13 * platform/win/SoftLinking.h: 14 - Do the rename. 15 1 16 2015-02-19 David Kilzer <ddkilzer@apple.com> 2 17 -
trunk/Source/WebCore/platform/cf/CoreMediaSoftLink.cpp
r180366 r180367 35 35 } 36 36 37 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeCompare, int32_t, (CMTime time1, CMTime time2), (time1, time2))38 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeGetSeconds, Float64, (CMTime time), (time))39 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeMake, CMTime, (int64_t value, int32_t timescale), (value, timescale))40 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeMakeWithSeconds, CMTime, (Float64 seconds, int32_t preferredTimeScale), (seconds, preferredTimeScale))41 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeRangeGetEnd, CMTime, (CMTimeRange range), (range))37 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeCompare, int32_t, (CMTime time1, CMTime time2), (time1, time2)) 38 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeGetSeconds, Float64, (CMTime time), (time)) 39 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeMake, CMTime, (int64_t value, int32_t timescale), (value, timescale)) 40 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeMakeWithSeconds, CMTime, (Float64 seconds, int32_t preferredTimeScale), (seconds, preferredTimeScale)) 41 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeRangeGetEnd, CMTime, (CMTimeRange range), (range)) 42 42 43 43 #if PLATFORM(COCOA) 44 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMNotificationCenterGetDefaultLocalCenter, CMNotificationCenterRef, (void), ());45 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMNotificationCenterAddListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object, UInt32 flags), (center, listener, callback, notification, object, flags))46 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMNotificationCenterRemoveListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object), (center, listener, callback, notification, object))47 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimebaseGetTime, CMTime, (CMTimebaseRef timebase), (timebase))48 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeCopyAsDictionary, CFDictionaryRef, (CMTime time, CFAllocatorRef allocator), (time, allocator))44 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMNotificationCenterGetDefaultLocalCenter, CMNotificationCenterRef, (void), ()); 45 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMNotificationCenterAddListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object, UInt32 flags), (center, listener, callback, notification, object, flags)) 46 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMNotificationCenterRemoveListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object), (center, listener, callback, notification, object)) 47 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimebaseGetTime, CMTime, (CMTimebaseRef timebase), (timebase)) 48 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeCopyAsDictionary, CFDictionaryRef, (CMTime time, CFAllocatorRef allocator), (time, allocator)) 49 49 #endif // PLATFORM(COCOA) 50 50 51 51 #if PLATFORM(WIN) 52 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeAdd, CMTime, (CMTime addend1, CMTime addend2), (addend1, addend2))53 SOFT_LINK_FUNCTION_ IMPL(CoreMedia, CMTimeMakeFromDictionary, CMTime, (CFDictionaryRef dict), (dict))52 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeAdd, CMTime, (CMTime addend1, CMTime addend2), (addend1, addend2)) 53 SOFT_LINK_FUNCTION_SOURCE(CoreMedia, CMTimeMakeFromDictionary, CMTime, (CFDictionaryRef dict), (dict)) 54 54 #endif // PLATFORM(WIN) 55 55 -
trunk/Source/WebCore/platform/cf/CoreMediaSoftLink.h
r180366 r180367 32 32 #include <CoreMedia/CoreMedia.h> 33 33 34 SOFT_LINK_FUNCTION_ DECL(CMTimeCompare, int32_t, (CMTime time1, CMTime time2), (time1, time2))34 SOFT_LINK_FUNCTION_HEADER(CMTimeCompare, int32_t, (CMTime time1, CMTime time2), (time1, time2)) 35 35 #define CMTimeCompare softLink_CMTimeCompare 36 SOFT_LINK_FUNCTION_ DECL(CMTimeGetSeconds, Float64, (CMTime time), (time))36 SOFT_LINK_FUNCTION_HEADER(CMTimeGetSeconds, Float64, (CMTime time), (time)) 37 37 #define CMTimeGetSeconds softLink_CMTimeGetSeconds 38 SOFT_LINK_FUNCTION_ DECL(CMTimeMake, CMTime, (int64_t value, int32_t timescale), (value, timescale))38 SOFT_LINK_FUNCTION_HEADER(CMTimeMake, CMTime, (int64_t value, int32_t timescale), (value, timescale)) 39 39 #define CMTimeMake softLink_CMTimeMake 40 SOFT_LINK_FUNCTION_ DECL(CMTimeMakeWithSeconds, CMTime, (Float64 seconds, int32_t preferredTimeScale), (seconds, preferredTimeScale))40 SOFT_LINK_FUNCTION_HEADER(CMTimeMakeWithSeconds, CMTime, (Float64 seconds, int32_t preferredTimeScale), (seconds, preferredTimeScale)) 41 41 #define CMTimeMakeWithSeconds softLink_CMTimeMakeWithSeconds 42 SOFT_LINK_FUNCTION_ DECL(CMTimeRangeGetEnd, CMTime, (CMTimeRange range), (range))42 SOFT_LINK_FUNCTION_HEADER(CMTimeRangeGetEnd, CMTime, (CMTimeRange range), (range)) 43 43 #define CMTimeRangeGetEnd softLink_CMTimeRangeGetEnd 44 44 45 45 #if PLATFORM(COCOA) 46 46 47 SOFT_LINK_FUNCTION_ DECL(CMNotificationCenterGetDefaultLocalCenter, CMNotificationCenterRef, (void), ());47 SOFT_LINK_FUNCTION_HEADER(CMNotificationCenterGetDefaultLocalCenter, CMNotificationCenterRef, (void), ()); 48 48 #define CMNotificationCenterGetDefaultLocalCenter softLink_CMNotificationCenterGetDefaultLocalCenter 49 SOFT_LINK_FUNCTION_ DECL(CMNotificationCenterAddListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object, UInt32 flags), (center, listener, callback, notification, object, flags))49 SOFT_LINK_FUNCTION_HEADER(CMNotificationCenterAddListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object, UInt32 flags), (center, listener, callback, notification, object, flags)) 50 50 #define CMNotificationCenterAddListener softLink_CMNotificationCenterAddListener 51 SOFT_LINK_FUNCTION_ DECL(CMNotificationCenterRemoveListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object), (center, listener, callback, notification, object))51 SOFT_LINK_FUNCTION_HEADER(CMNotificationCenterRemoveListener, OSStatus, (CMNotificationCenterRef center, const void* listener, CMNotificationCallback callback, CFStringRef notification, const void* object), (center, listener, callback, notification, object)) 52 52 #define CMNotificationCenterRemoveListener softLink_CMNotificationCenterRemoveListener 53 SOFT_LINK_FUNCTION_ DECL(CMTimebaseGetTime, CMTime, (CMTimebaseRef timebase), (timebase))53 SOFT_LINK_FUNCTION_HEADER(CMTimebaseGetTime, CMTime, (CMTimebaseRef timebase), (timebase)) 54 54 #define CMTimebaseGetTime softLink_CMTimebaseGetTime 55 SOFT_LINK_FUNCTION_ DECL(CMTimeCopyAsDictionary, CFDictionaryRef, (CMTime time, CFAllocatorRef allocator), (time, allocator))55 SOFT_LINK_FUNCTION_HEADER(CMTimeCopyAsDictionary, CFDictionaryRef, (CMTime time, CFAllocatorRef allocator), (time, allocator)) 56 56 #define CMTimeCopyAsDictionary softLink_CMTimeCopyAsDictionary 57 57 … … 60 60 #if PLATFORM(WIN) 61 61 62 SOFT_LINK_FUNCTION_ DECL(CMTimeAdd, CMTime, (CMTime addend1, CMTime addend2), (addend1, addend2))62 SOFT_LINK_FUNCTION_HEADER(CMTimeAdd, CMTime, (CMTime addend1, CMTime addend2), (addend1, addend2)) 63 63 #define CMTimeAdd softLink_CMTimeAdd 64 SOFT_LINK_FUNCTION_ DECL(CMTimeMakeFromDictionary, CMTime, (CFDictionaryRef dict), (dict))64 SOFT_LINK_FUNCTION_HEADER(CMTimeMakeFromDictionary, CMTime, (CFDictionaryRef dict), (dict)) 65 65 #define CMTimeMakeFromDictionary softLink_CMTimeMakeFromDictionary 66 66 -
trunk/Source/WebCore/platform/mac/SoftLinking.h
r180287 r180367 110 110 } 111 111 112 #define SOFT_LINK_FUNCTION_ DECL(functionName, resultType, parameterDeclarations, parameterNames) \112 #define SOFT_LINK_FUNCTION_HEADER(functionName, resultType, parameterDeclarations, parameterNames) \ 113 113 WTF_EXTERN_C_BEGIN \ 114 114 resultType functionName parameterDeclarations; \ … … 122 122 } 123 123 124 #define SOFT_LINK_FUNCTION_ IMPL(framework, functionName, resultType, parameterDeclarations, parameterNames) \124 #define SOFT_LINK_FUNCTION_SOURCE(framework, functionName, resultType, parameterDeclarations, parameterNames) \ 125 125 WTF_EXTERN_C_BEGIN \ 126 126 resultType functionName parameterDeclarations; \ -
trunk/Source/WebCore/platform/win/SoftLinking.h
r180287 r180367 117 117 } 118 118 119 #define SOFT_LINK_FUNCTION_ DECL(functionName, resultType, parameterDeclarations, parameterNames) \119 #define SOFT_LINK_FUNCTION_HEADER(functionName, resultType, parameterDeclarations, parameterNames) \ 120 120 namespace WebCore { \ 121 121 extern resultType(__cdecl*softLink##functionName) parameterDeclarations; \ … … 126 126 } 127 127 128 #define SOFT_LINK_FUNCTION_ IMPL(library, functionName, resultType, parameterDeclarations, parameterNames) \128 #define SOFT_LINK_FUNCTION_SOURCE(library, functionName, resultType, parameterDeclarations, parameterNames) \ 129 129 namespace WebCore { \ 130 130 static resultType __cdecl init##functionName parameterDeclarations; \
Note: See TracChangeset
for help on using the changeset viewer.