Comment: | runtime: Define BOOL to be the same as bool
As we define the ABI, we can just replace BOOL with bool everywhere, This still defines BOOL to bool for compatibility, except on AmigaOS and |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
fe2cbe0021d3ead13b86293e21ff1a13 |
User & Date: | js on 2018-04-22 16:13:04 |
Other Links: | manifest | tags |
2018-04-22
| ||
17:48 | Make ObjFW compile for AmigaOS 3 check-in: 0b07c8fcfa user: js tags: trunk | |
16:13 | runtime: Define BOOL to be the same as bool check-in: fe2cbe0021 user: js tags: trunk | |
2018-04-15
| ||
19:15 | ObjFW.h: Fix conditional for OFHTTPClient import check-in: 4bc1aa6831 user: js tags: trunk | |
Modified src/OFApplication.m from [240e542914] to [8777ac3750].
︙ | |||
49 50 51 52 53 54 55 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - - | # include <crt_externs.h> #elif defined(OF_WINDOWS) # include <windows.h> extern int _CRT_glob; extern void __wgetmainargs(int *, wchar_t ***, wchar_t ***, int, int *); #elif defined(OF_MORPHOS) |
︙ |
Modified src/OFFile.h from [ee74f7774a] to [1301722443].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | - - | #import "OFKernelEventObserver.h" #ifndef OF_MORPHOS # define OF_FILE_HANDLE_IS_FD # define OF_INVALID_FILE_HANDLE (-1) typedef int of_file_handle_t; #else |
︙ |
Modified src/OFFile.m from [1cab20f522] to [77e3c3a21e].
︙ | |||
45 46 47 48 49 50 51 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | - - | #import "OFWriteFailedException.h" #ifdef OF_WINDOWS # include <windows.h> #endif #ifdef OF_WII |
︙ |
Modified src/OFFileManager.m from [74a0735e38] to [96795739ab].
︙ | |||
53 54 55 56 57 58 59 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | - - | #ifdef OF_WINDOWS # include <windows.h> # include <direct.h> # include <ntdef.h> #endif #ifdef OF_MORPHOS |
︙ |
Modified src/OFLocalization.m from [8b387494ee] to [ae5afaaea8].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | - - | #ifdef OF_AMIGAOS # ifdef OF_AMIGAOS4 # define __NOLIBBASE__ # define __NOGLOBALIFACE__ # define __USE_INLINE__ # endif |
︙ |
Modified src/OFObject.h from [f9418de3f6] to [a6c803a105].
︙ | |||
696 697 698 699 700 701 702 | 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 | - + - + | * @brief Try to resolve the specified class method. * * This method is called if a class method was not found, so that an * implementation can be provided at runtime. * * @return Whether the method has been added to the class */ |
︙ |
Modified src/OFObject.m from [4583da4a4e] to [678b6e28e1].
︙ | |||
464 465 466 467 468 469 470 | 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 | - + - + | free(methodList); } #endif [self inheritMethodsFromClass: superclass]; } |
︙ |
Modified src/OFStdIOStream.h from [acf0fa9e57] to [230fa44006].
︙ | |||
15 16 17 18 19 20 21 | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | - - | * file. */ #import "OFStream.h" #import "OFKernelEventObserver.h" #ifdef OF_MORPHOS |
︙ |
Modified src/OFStdIOStream.m from [66757147ba] to [7f1468fef3].
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - - | #import "OFNotOpenException.h" #import "OFOutOfRangeException.h" #import "OFReadFailedException.h" #import "OFWriteFailedException.h" #ifdef OF_MORPHOS |
︙ |
Modified src/OFSystemInfo.m from [cdbf79507f] to [d70c261d5b].
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | - - | # include <sys/utsname.h> #endif #ifdef OF_MACOS # include <sys/sysctl.h> #endif #ifdef OF_MORPHOS |
︙ |
Modified src/OFThread.m from [760eefafe7] to [87b40649c1].
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - - - - | # include <sched.h> #endif #include "unistd_wrapper.h" #include "platform.h" #ifdef OF_MORPHOS |
︙ |
Modified src/OFURLHandler_file.m from [1ed7407f01] to [398809665b].
︙ | |||
63 64 65 66 67 68 69 | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | - - | #ifdef OF_WINDOWS # include <windows.h> # include <direct.h> # include <ntdef.h> #endif #ifdef OF_MORPHOS |
︙ |
Modified src/runtime/ObjFW_RT.h from [d5822f4845] to [75ca2f1db8].
︙ | |||
51 52 53 54 55 56 57 | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - - + + + - + + | #if !__has_feature(objc_arc) && !defined(__unsafe_unretained) # define __unsafe_unretained #endif #define Nil (Class _Null_unspecified)0 #define nil (id _Null_unspecified)0 |
︙ | |||
245 246 247 248 249 250 251 | 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | - - | extern void objc_setEnumerationMutationHandler( objc_enumeration_mutation_handler _Nullable); extern void objc_zero_weak_references(id _Nonnull); # ifdef __cplusplus } # endif #else |
︙ | |||
284 285 286 287 288 289 290 | 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | - + - + - + - + | extern id _Nullable objc_lookUpClass(const char *_Nonnull); extern id _Nullable objc_getClass(const char *_Nonnull); extern id _Nonnull objc_getRequiredClass(const char *_Nonnull); extern void objc_exception_throw(id _Nullable); extern int objc_sync_enter(id _Nullable); extern int objc_sync_exit(id _Nullable); extern id _Nullable objc_getProperty(id _Nonnull, SEL _Nonnull, ptrdiff_t, |
Modified src/runtime/class.m from [16946c32d6] to [8659e5eda9].
︙ | |||
50 51 52 53 54 55 56 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - + | cls->dtable = empty_dtable; cls->metaclass->dtable = empty_dtable; if (strcmp(cls->name, "Protocol") != 0) classes_cnt++; } |
︙ |
Modified src/runtime/lookup.m from [d66050c602] to [107b957fe8].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | - - + + | #import "macros.h" @interface DummyObject { Class isa; } |
︙ |
Modified src/runtime/morphos-library.m from [1e4a1b451d] to [6a9a522909].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | - - | */ #include "config.h" #import "ObjFW_RT.h" #import "macros.h" |
︙ |
Modified src/runtime/property.m from [ad22d9f929] to [e9bfb6f639].
︙ | |||
37 38 39 40 41 42 43 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - + | for (size_t i = 0; i < NUM_SPINLOCKS; i++) if (!of_spinlock_new(&spinlocks[i])) OBJC_ERROR("Failed to initialize spinlocks!") } #endif id |
︙ | |||
59 60 61 62 63 64 65 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - + | #endif } return *(id *)(void *)((char *)self + offset); } void |
︙ | |||
112 113 114 115 116 117 118 | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | - - + + - - + + | } [old release]; } /* The following methods are only required for GCC >= 4.6 */ void |
︙ |
Modified src/runtime/protos.h from [aa2f35848c] to [e94f626094].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | - - - - + + + + | IMP objc_msg_lookup_super_stret_inline(struct objc_super *, SEL); id objc_lookUpClass_inline(const char *); id objc_getClass_inline(const char *); id objc_getRequiredClass_inline(const char *); void objc_exception_throw_inline(id); int objc_sync_enter_inline(id); int objc_sync_exit_inline(id); |
︙ |
Modified src/socket.h from [e4ca2499ce] to [31842887c2].
︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | - - - - - - | #endif #include <stdbool.h> #import "platform.h" #ifdef OF_HAVE_SYS_SOCKET_H |
︙ | |||
73 74 75 76 77 78 79 | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | - - | uint8_t ss_len; uint8_t ss_family; char ss_data[2 + sizeof(struct in_addr) + 8]; }; #endif #ifdef OF_WII |
︙ |
Modified src/unistd_wrapper.h from [05d340e343] to [9807fe4f29].
︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | - - - - - - - - | * file. */ #include "config.h" #include <stdlib.h> /* Make sure we have any libc include */ |
Modified tests/ForwardingTests.m from [97260d7f73] to [b356b79162].
︙ | |||
65 66 67 68 69 70 71 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - + - + | static void test(id self, SEL _cmd) { success = true; } @implementation ForwardingTest |
︙ |
Modified tests/TestsAppDelegate.m from [251eb0b81a] to [4afc655dec].
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | - - | # include <pspkernel.h> # include <pspdebug.h> # include <pspctrl.h> PSP_MODULE_INFO("ObjFW Tests", 0, 0, 0); #endif #ifdef OF_WII |
︙ |