Changeset 183343 in webkit
- Timestamp:
- Apr 25, 2015 6:38:31 PM (9 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r183342 r183343 1 2015-04-25 Dan Bernstein <mitz@apple.com> 2 3 WebCore part of <rdar://problem/20697966> Avoid using TBD as an argument to NS_AVAILABLE 4 https://bugs.webkit.org/show_bug.cgi?id=144201 5 6 Reviewed by Darin Adler. 7 8 Instead of TBD, use the high version number to which it corresponds in CFAvailability.h, 9 9876.5. 10 11 * bindings/objc/WebKitAvailability.h: Added a definition of __NSi_9876_5, so that we can 12 use 9876_5 in availability macros. Removed the definition of 13 __AVAILABILITY_INTERNAL__MAC_TBD, which will no longer be used. 14 15 * bindings/scripts/CodeGeneratorObjC.pm: 16 (ReadPublicInterfaces): Use 9876_5 instead of TBD. 17 1 18 2015-04-25 Timothy Hatcher <timothy@apple.com> 2 19 -
trunk/Source/WebCore/bindings/objc/WebKitAvailability.h
r161412 r183343 32 32 #import <Foundation/Foundation.h> 33 33 34 #ifndef __NSi_9876_5 35 #define __NSi_9876_5 introduced=9876.5 36 #endif 37 34 38 #define WEBKIT_AVAILABLE_MAC(introduced) NS_AVAILABLE_MAC(introduced) 35 39 #define WEBKIT_CLASS_AVAILABLE_MAC(introduced) NS_CLASS_AVAILABLE_MAC(introduced) 36 40 #define WEBKIT_ENUM_AVAILABLE_MAC(introduced) NS_ENUM_AVAILABLE_MAC(introduced) 37 41 #define WEBKIT_DEPRECATED_MAC(introduced, deprecated) NS_DEPRECATED_MAC(introduced, deprecated) 38 39 #define __AVAILABILITY_INTERNAL__MAC_TBD __attribute__((availability(macosx,introduced=9876.5)))40 42 41 43 #ifndef AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_0 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
r181693 r183343 218 218 EOF 219 219 220 my $TBDAvailabilityVersion = "9876_5"; 221 220 222 # Default constructor 221 223 sub new … … 298 300 # If this class was not found in PublicDOMInterfaces.h then it should be considered as an entirely new public class. 299 301 $newPublicClass = !$found; 300 $interfaceAvailabilityVersion = "TBD"if $newPublicClass;302 $interfaceAvailabilityVersion = $TBDAvailabilityVersion if $newPublicClass; 301 303 } 302 304 -
trunk/Source/WebKit2/ChangeLog
r183336 r183343 1 2015-04-25 Dan Bernstein <mitz@apple.com> 2 3 WebKit2 part of <rdar://problem/20697966> Avoid using TBD as an argument to NS_AVAILABLE 4 https://bugs.webkit.org/show_bug.cgi?id=144201 5 6 Reviewed by Darin Adler. 7 8 Instead of TBD, we use the high version number to which it corresponds in CFAvailability.h, 9 9876.5. 10 11 * mac/MigrateHeadersFromWebKitLegacy.make: To detect not-yet-available declarations in 12 headers, look for "9876_5" rather than "TBA". 13 1 14 2015-04-24 Timothy Hatcher <timothy@apple.com> 2 15 -
trunk/Source/WebKit2/mac/MigrateHeadersFromWebKitLegacy.make
r177297 r183343 203 203 WEBKIT_LEGACY_HEADER_MIGRATE_CMD = sed $(WEBKIT_LEGACY_HEADER_REPLACE_RULES) $< > $@ 204 204 205 PUBLIC_HEADER_CHECK_CMD = @if grep -q "AVAILABLE.* TBD" "$<"; then line=$$(awk "/AVAILABLE.*TBD/ { print FNR; exit }" "$<" ); echo "$<:$$line: error: A class within a public header has unspecified availability."; false; fi205 PUBLIC_HEADER_CHECK_CMD = @if grep -q "AVAILABLE.*9876_5" "$<"; then line=$$(awk "/AVAILABLE.*9876_5/ { print FNR; exit }" "$<" ); echo "$<:$$line: error: A class within a public header has unspecified availability."; false; fi 206 206 207 207 $(PUBLIC_HEADERS_DIR)/% : $(WEBKIT_LEGACY_PRIVATE_HEADERS_DIR)/% MigrateHeadersFromWebKitLegacy.make
Note: See TracChangeset
for help on using the changeset viewer.