Overview
| Comment: | bridge: Use @import ObjFW when using modules
This makes it possible to use the bridge with Swift. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
fc64538f06d1d1707c4dfbb38cf49e2b |
| User & Date: | js on 2017-10-15 20:55:18 |
| Other Links: | manifest | tags |
Context
|
2017-10-15
| ||
| 22:06 | Add script to build universal iOS lib + framework (check-in: 5a311cc1bf user: js tags: trunk) | |
| 20:55 | bridge: Use @import ObjFW when using modules (check-in: fc64538f06 user: js tags: trunk) | |
| 20:52 | Update buildsys and adjust (check-in: 42c436bf5b user: js tags: trunk) | |
Changes
Modified src/bridge/NSBridging.h from [ea5b8aa5be] to [0ccb6cb85c].
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #ifdef OF_BRIDGE_LOCAL_INCLUDES # import "macros.h" #else # if defined(__has_feature) && __has_feature(modules) @import ObjFW; #else # import <ObjFW/macros.h> #endif #endif OF_ASSUME_NONNULL_BEGIN /*! * @protocol NSBridging NSBridging.h ObjFW-Bridge/NSBridging.h * * @brief A protocol implemented by classes supporting bridging Foundation |
| ︙ |
Modified src/bridge/OFArray+NSObject.h from [77830ad94e] to [73ee9700a0].
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #ifdef OF_BRIDGE_LOCAL_INCLUDES # import "OFArray.h" #else # if defined(__has_feature) && __has_feature(modules) @import ObjFW; #else # import <ObjFW/OFArray.h> #endif #endif #import "OFBridging.h" OF_ASSUME_NONNULL_BEGIN /*! * @category OFArray (NSObject) \ |
| ︙ |
Modified src/bridge/OFArray_NSArray.h from [c92ad990ae] to [de8c239436].
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#ifdef OF_BRIDGE_LOCAL_INCLUDES
# import "OFArray.h"
#else
# if defined(__has_feature) && __has_feature(modules)
@import ObjFW;
#else
# import <ObjFW/OFArray.h>
#endif
#endif
OF_ASSUME_NONNULL_BEGIN
@class NSArray;
@interface OFArray_NSArray: OFArray
{
|
| ︙ |
Modified src/bridge/OFBridging.h from [4b2d9468bb] to [8e59e22b17].
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #ifdef OF_BRIDGE_LOCAL_INCLUDES # import "macros.h" #else # if defined(__has_feature) && __has_feature(modules) @import ObjFW; #else # import <ObjFW/macros.h> #endif #endif OF_ASSUME_NONNULL_BEGIN /*! * @protocol OFBridging OFBridging.h ObjFW-Bridge/OFBridging.h * * @brief A protocol implemented by classes supporting bridging ObjFW objects |
| ︙ |
Modified src/bridge/OFDictionary+NSObject.h from [46b964fc6a] to [2b98158bd3].
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #ifdef OF_BRIDGE_LOCAL_INCLUDES # import "OFDictionary.h" #else # if defined(__has_feature) && __has_feature(modules) @import ObjFW; #else # import <ObjFW/OFDictionary.h> #endif #endif #import "OFBridging.h" OF_ASSUME_NONNULL_BEGIN /*! * @category OFDictionary (NSObject) \ |
| ︙ |
Modified src/bridge/OFDictionary_NSDictionary.h from [1cd9e552cd] to [c4deae7130].
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#ifdef OF_BRIDGE_LOCAL_INCLUDES
# import "OFDictionary.h"
#else
# if defined(__has_feature) && __has_feature(modules)
@import ObjFW;
#else
# import <ObjFW/OFDictionary.h>
#endif
#endif
OF_ASSUME_NONNULL_BEGIN
@class NSDictionary;
@interface OFDictionary_NSDictionary: OFDictionary
{
|
| ︙ |
Modified src/bridge/OFString+NSObject.h from [37f94ecb02] to [b9ab4a61f1].
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #ifdef OF_BRIDGE_LOCAL_INCLUDES # import "OFString.h" #else # if defined(__has_feature) && __has_feature(modules) @import ObjFW; #else # import <ObjFW/OFString.h> #endif #endif #import "OFBridging.h" OF_ASSUME_NONNULL_BEGIN /*! * @category OFString (NSObject) \ |
| ︙ |