Changeset 183343 in webkit


Ignore:
Timestamp:
Apr 25, 2015 6:38:31 PM (9 years ago)
Author:
mitz@apple.com
Message:

Source/WebCore:
WebCore part of <rdar://problem/20697966> Avoid using TBD as an argument to NS_AVAILABLE
https://bugs.webkit.org/show_bug.cgi?id=144201

Reviewed by Darin Adler.

Instead of TBD, use the high version number to which it corresponds in CFAvailability.h,
9876.5.

  • bindings/objc/WebKitAvailability.h: Added a definition of NSi_9876_5, so that we can

use 9876_5 in availability macros. Removed the definition of
AVAILABILITY_INTERNALMAC_TBD, which will no longer be used.

  • bindings/scripts/CodeGeneratorObjC.pm:

(ReadPublicInterfaces): Use 9876_5 instead of TBD.

Source/WebKit2:
WebKit2 part of <rdar://problem/20697966> Avoid using TBD as an argument to NS_AVAILABLE
https://bugs.webkit.org/show_bug.cgi?id=144201

Reviewed by Darin Adler.

Instead of TBD, we use the high version number to which it corresponds in CFAvailability.h,
9876.5.

  • mac/MigrateHeadersFromWebKitLegacy.make: To detect not-yet-available declarations in

headers, look for "9876_5" rather than "TBA".

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r183342 r183343  
     12015-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
    1182015-04-25  Timothy Hatcher  <timothy@apple.com>
    219
  • trunk/Source/WebCore/bindings/objc/WebKitAvailability.h

    r161412 r183343  
    3232#import <Foundation/Foundation.h>
    3333
     34#ifndef __NSi_9876_5
     35#define __NSi_9876_5 introduced=9876.5
     36#endif
     37
    3438#define WEBKIT_AVAILABLE_MAC(introduced) NS_AVAILABLE_MAC(introduced)
    3539#define WEBKIT_CLASS_AVAILABLE_MAC(introduced) NS_CLASS_AVAILABLE_MAC(introduced)
    3640#define WEBKIT_ENUM_AVAILABLE_MAC(introduced) NS_ENUM_AVAILABLE_MAC(introduced)
    3741#define WEBKIT_DEPRECATED_MAC(introduced, deprecated) NS_DEPRECATED_MAC(introduced, deprecated)
    38 
    39 #define __AVAILABILITY_INTERNAL__MAC_TBD __attribute__((availability(macosx,introduced=9876.5)))
    4042
    4143#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  
    218218EOF
    219219
     220my $TBDAvailabilityVersion = "9876_5";
     221
    220222# Default constructor
    221223sub new
     
    298300    # If this class was not found in PublicDOMInterfaces.h then it should be considered as an entirely new public class.
    299301    $newPublicClass = !$found;
    300     $interfaceAvailabilityVersion = "TBD" if $newPublicClass;
     302    $interfaceAvailabilityVersion = $TBDAvailabilityVersion if $newPublicClass;
    301303}
    302304
  • trunk/Source/WebKit2/ChangeLog

    r183336 r183343  
     12015-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
    1142015-04-24  Timothy Hatcher  <timothy@apple.com>
    215
  • trunk/Source/WebKit2/mac/MigrateHeadersFromWebKitLegacy.make

    r177297 r183343  
    203203WEBKIT_LEGACY_HEADER_MIGRATE_CMD = sed $(WEBKIT_LEGACY_HEADER_REPLACE_RULES) $< > $@
    204204
    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; fi
     205PUBLIC_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
    206206
    207207$(PUBLIC_HEADERS_DIR)/% : $(WEBKIT_LEGACY_PRIVATE_HEADERS_DIR)/% MigrateHeadersFromWebKitLegacy.make
Note: See TracChangeset for help on using the changeset viewer.