Comment: | Fix compiling with Clang that doesn't have D58152
D58152 fixes using objc_designated_initializer and objc_method_family This is relevant because Clang 3.7 doesn't have D58152 and is the |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b260ccdb53be3dfa3a6571491e365048 |
User & Date: | js on 2024-11-09 12:03:57 |
Other Links: | manifest | tags |
2024-11-09
| ||
12:15 | Update ChangeLog for 1.2.1 check-in: 828075b819 user: js tags: trunk | |
12:04 | Fix compiling with Clang that doesn't have D58152 check-in: 582b3949f2 user: js tags: 1.2 | |
12:03 | Fix compiling with Clang that doesn't have D58152 check-in: b260ccdb53 user: js tags: trunk | |
00:55 | GitHub Actions: Add ObjC++ test on Windows/MSYS2 check-in: 33dc3b983c user: js tags: trunk | |
Modified src/hid/OHDualSenseGamepad+Private.h from [c709fabb29] to [8da9d08239].
︙ | ︙ | |||
25 26 27 28 29 30 31 | OF_ASSUME_NONNULL_BEGIN @interface OHDualSenseGamepad () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif | | | 25 26 27 28 29 30 31 32 33 34 35 | OF_ASSUME_NONNULL_BEGIN @interface OHDualSenseGamepad () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHDualShock4Gamepad+Private.h from [7cd9cfca62] to [256690777c].
︙ | ︙ | |||
25 26 27 28 29 30 31 | OF_ASSUME_NONNULL_BEGIN @interface OHDualShock4Gamepad () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif | | | 25 26 27 28 29 30 31 32 33 34 35 | OF_ASSUME_NONNULL_BEGIN @interface OHDualShock4Gamepad () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHEmulatedGameControllerAxis.h from [3afaf898c0] to [e3a5449d20].
︙ | ︙ | |||
30 31 32 33 34 35 36 | } - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog OF_UNAVAILABLE; - (instancetype) oh_initWithNegativeButton: (OHGameControllerButton *)negativeButton positiveButton: (OHGameControllerButton *)positiveButton | | | 30 31 32 33 34 35 36 37 38 39 40 | } - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog OF_UNAVAILABLE; - (instancetype) oh_initWithNegativeButton: (OHGameControllerButton *)negativeButton positiveButton: (OHGameControllerButton *)positiveButton OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHEmulatedGameControllerButton.h from [134791865d] to [77b7fd89b8].
︙ | ︙ | |||
29 30 31 32 33 34 35 | OHGameControllerAxis *_axis; bool _positive; } - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog OF_UNAVAILABLE; - (instancetype)oh_initWithAxis: (OHGameControllerAxis *)axis | | < | 29 30 31 32 33 34 35 36 37 38 39 | OHGameControllerAxis *_axis; bool _positive; } - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog OF_UNAVAILABLE; - (instancetype)oh_initWithAxis: (OHGameControllerAxis *)axis positive: (bool)positive OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHEmulatedGameControllerTriggerButton.h from [f7bd66afbb] to [f8a3eeb7a5].
︙ | ︙ | |||
35 36 37 38 39 40 41 | analog: (bool)analog OF_UNAVAILABLE; + (instancetype)oh_buttonWithName: (OFString *)name axis: (OHGameControllerAxis *)axis; - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog OF_UNAVAILABLE; - (instancetype)oh_initWithName: (OFString *)name axis: (OHGameControllerAxis *)axis | | | 35 36 37 38 39 40 41 42 43 44 45 | analog: (bool)analog OF_UNAVAILABLE; + (instancetype)oh_buttonWithName: (OFString *)name axis: (OHGameControllerAxis *)axis; - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog OF_UNAVAILABLE; - (instancetype)oh_initWithName: (OFString *)name axis: (OHGameControllerAxis *)axis OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHEvdevGameController.h from [0a1d016c47] to [813d4bc347].
︙ | ︙ | |||
35 36 37 38 39 40 41 | unsigned long *_evBits, *_keyBits, *_absBits; uint16_t _vendorID, _productID; OFString *_name; id <OHGameControllerProfile, OHEvdevMapping> _profile; } - (instancetype)oh_init OF_UNAVAILABLE; | | < | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | unsigned long *_evBits, *_keyBits, *_absBits; uint16_t _vendorID, _productID; OFString *_name; id <OHGameControllerProfile, OHEvdevMapping> _profile; } - (instancetype)oh_init OF_UNAVAILABLE; - (instancetype)oh_initWithPath: (OFString *)path OF_METHOD_FAMILY(init); - (void)oh_pollState; @end extern const uint16_t OHEvdevButtonIDs[]; extern const size_t OHNumEvdevButtonIDs; extern const uint16_t OHEvdevAxisIDs[]; extern const size_t OHNumEvdevAxisIDs; |
︙ | ︙ |
Modified src/hid/OHEvdevGameControllerProfile.h from [a2fd1c2755] to [ed547560b4].
︙ | ︙ | |||
33 34 35 36 37 38 39 | - (instancetype)init OF_UNAVAILABLE; - (instancetype)oh_initWithKeyBits: (unsigned long *)keyBits evBits: (unsigned long *)evBits absBits: (unsigned long *)absBits vendorID: (uint16_t)vendorID | | < | 33 34 35 36 37 38 39 40 41 42 43 | - (instancetype)init OF_UNAVAILABLE; - (instancetype)oh_initWithKeyBits: (unsigned long *)keyBits evBits: (unsigned long *)evBits absBits: (unsigned long *)absBits vendorID: (uint16_t)vendorID productID: (uint16_t)productID OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHGameController+Private.h from [fcf1771c7f] to [b67100c46a].
︙ | ︙ | |||
18 19 20 21 22 23 24 | */ #import "OHGameController.h" OF_ASSUME_NONNULL_BEGIN @interface OHGameController () | | | 18 19 20 21 22 23 24 25 26 27 28 | */ #import "OHGameController.h" OF_ASSUME_NONNULL_BEGIN @interface OHGameController () - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHGameControllerElement+Private.h from [71db15a22e] to [dec44682d8].
︙ | ︙ | |||
20 21 22 23 24 25 26 | #import "OHGameControllerElement.h" OF_ASSUME_NONNULL_BEGIN @interface OHGameControllerElement () + (instancetype)oh_elementWithName: (OFString *)name analog: (bool)analog; - (instancetype)oh_initWithName: (OFString *)name | | < | 20 21 22 23 24 25 26 27 28 29 30 | #import "OHGameControllerElement.h" OF_ASSUME_NONNULL_BEGIN @interface OHGameControllerElement () + (instancetype)oh_elementWithName: (OFString *)name analog: (bool)analog; - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHJoyConPair.h from [5a32c92419] to [343333c252].
︙ | ︙ | |||
59 60 61 62 63 64 65 | * and right Joy-Con. * * @param leftJoyCon The left Joy-Con for the pair * @param rightJoyCon The right Joy-Con for the pair * @return An initialized Joy-Con pair */ - (instancetype)initWithLeftJoyCon: (OHLeftJoyCon *)leftJoyCon | | < | 59 60 61 62 63 64 65 66 67 68 69 | * and right Joy-Con. * * @param leftJoyCon The left Joy-Con for the pair * @param rightJoyCon The right Joy-Con for the pair * @return An initialized Joy-Con pair */ - (instancetype)initWithLeftJoyCon: (OHLeftJoyCon *)leftJoyCon rightJoyCon: (OHRightJoyCon *)rightJoyCon; @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHLeftJoyCon+Private.h from [64c33a2717] to [d9cae2ad1e].
︙ | ︙ | |||
25 26 27 28 29 30 31 | OF_ASSUME_NONNULL_BEGIN @interface OHLeftJoyCon () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif | | | 25 26 27 28 29 30 31 32 33 34 35 | OF_ASSUME_NONNULL_BEGIN @interface OHLeftJoyCon () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHN64Controller+Private.h from [11c03bea55] to [3cccc797b8].
︙ | ︙ | |||
25 26 27 28 29 30 31 | OF_ASSUME_NONNULL_BEGIN @interface OHN64Controller () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif | | | 25 26 27 28 29 30 31 32 33 34 35 | OF_ASSUME_NONNULL_BEGIN @interface OHN64Controller () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHNintendo3DSExtendedGamepad+Private.h from [71e1e47b25] to [9b50f77fa0].
︙ | ︙ | |||
18 19 20 21 22 23 24 | */ #import "OHNintendo3DSExtendedGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHNintendo3DSExtendedGamepad () | | | 18 19 20 21 22 23 24 25 26 27 28 | */ #import "OHNintendo3DSExtendedGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHNintendo3DSExtendedGamepad () - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHNintendoDSGamepad+Private.h from [cd863ff816] to [a910f4b610].
︙ | ︙ | |||
18 19 20 21 22 23 24 | */ #import "OHNintendoDSGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHNintendoDSGamepad () | | | 18 19 20 21 22 23 24 25 26 27 28 | */ #import "OHNintendoDSGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHNintendoDSGamepad () - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHNintendoSwitchExtendedGamepad+Private.h from [f2f071698a] to [be43e5e2ac].
︙ | ︙ | |||
18 19 20 21 22 23 24 | */ #import "OHNintendoSwitchExtendedGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHNintendoSwitchExtendedGamepad () | | | 18 19 20 21 22 23 24 25 26 27 28 | */ #import "OHNintendoSwitchExtendedGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHNintendoSwitchExtendedGamepad () - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHNintendoSwitchGameController.h from [1610daa529] to [51074ab4e9].
︙ | ︙ | |||
30 31 32 33 34 35 36 | @interface OHNintendoSwitchGameController: OHGameController { PadState _pad; OHNintendoSwitchExtendedGamepad *_extendedGamepad; } - (instancetype)oh_init OF_UNAVAILABLE; | | < | 30 31 32 33 34 35 36 37 38 39 40 | @interface OHNintendoSwitchGameController: OHGameController { PadState _pad; OHNintendoSwitchExtendedGamepad *_extendedGamepad; } - (instancetype)oh_init OF_UNAVAILABLE; - (instancetype)oh_initWithIndex: (size_t)index OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHRightJoyCon+Private.h from [802121ee0a] to [b6e6a9e110].
︙ | ︙ | |||
25 26 27 28 29 30 31 | OF_ASSUME_NONNULL_BEGIN @interface OHRightJoyCon () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif | | | 25 26 27 28 29 30 31 32 33 34 35 | OF_ASSUME_NONNULL_BEGIN @interface OHRightJoyCon () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHStadiaGamepad+Private.h from [a442bf59a0] to [261dc06b71].
︙ | ︙ | |||
25 26 27 28 29 30 31 | OF_ASSUME_NONNULL_BEGIN @interface OHStadiaGamepad () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif | | | 25 26 27 28 29 30 31 32 33 34 35 | OF_ASSUME_NONNULL_BEGIN @interface OHStadiaGamepad () #if defined(OF_LINUX) && defined(OF_HAVE_FILES) <OHEvdevMapping> #endif - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHWiiClassicController+Private.h from [349a2e57f0] to [0b66b4db5f].
︙ | ︙ | |||
18 19 20 21 22 23 24 | */ #import "OHWiiClassicController.h" OF_ASSUME_NONNULL_BEGIN @interface OHWiiClassicController () | | | 18 19 20 21 22 23 24 25 26 27 28 | */ #import "OHWiiClassicController.h" OF_ASSUME_NONNULL_BEGIN @interface OHWiiClassicController () - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHWiiGameController.h from [8f82a3a691] to [be7752eb1d].
︙ | ︙ | |||
26 27 28 29 30 31 32 | int32_t _index; uint32_t _type; id <OHGameControllerProfile> _profile; } - (instancetype)oh_init OF_UNAVAILABLE; - (instancetype)oh_initWithIndex: (int32_t)index | | < | 26 27 28 29 30 31 32 33 34 35 36 | int32_t _index; uint32_t _type; id <OHGameControllerProfile> _profile; } - (instancetype)oh_init OF_UNAVAILABLE; - (instancetype)oh_initWithIndex: (int32_t)index type: (uint32_t)type OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHWiimote+Private.h from [2b1ff9eae2] to [3543c7fa16].
︙ | ︙ | |||
18 19 20 21 22 23 24 | */ #import "OHWiimote.h" OF_ASSUME_NONNULL_BEGIN @interface OHWiimote () | | | 18 19 20 21 22 23 24 25 26 27 28 | */ #import "OHWiimote.h" OF_ASSUME_NONNULL_BEGIN @interface OHWiimote () - (instancetype)oh_init OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHXInputGameController.h from [6ebbc4a0ee] to [6b657e156e].
︙ | ︙ | |||
29 30 31 32 33 34 35 | { DWORD _index; OFNumber *_Nullable _vendorID, *_Nullable _productID; OHXboxGamepad *_extendedGamepad; } - (instancetype)oh_init OF_UNAVAILABLE; | | < | 29 30 31 32 33 34 35 36 37 38 39 | { DWORD _index; OFNumber *_Nullable _vendorID, *_Nullable _productID; OHXboxGamepad *_extendedGamepad; } - (instancetype)oh_init OF_UNAVAILABLE; - (instancetype)oh_initWithIndex: (DWORD)index OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |
Modified src/hid/OHXboxGamepad+Private.h from [d4ee9c13d5] to [f5059777cd].
︙ | ︙ | |||
19 20 21 22 23 24 25 | #import "OHXboxGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHXboxGamepad () - (instancetype)oh_initWithHasGuideButton: (bool)hasGuideButton | | | 19 20 21 22 23 24 25 26 27 28 29 | #import "OHXboxGamepad.h" OF_ASSUME_NONNULL_BEGIN @interface OHXboxGamepad () - (instancetype)oh_initWithHasGuideButton: (bool)hasGuideButton OF_METHOD_FAMILY(init); @end OF_ASSUME_NONNULL_END |