Comment: | Work around bugs in Apple GCC 4.2.1 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
cbc09c6e268957178078ad677b58a682 |
User & Date: | js on 2020-09-27 00:57:30 |
Other Links: | manifest | tags |
2020-09-27
| ||
01:00 | Don't assume arc4random_buf if we have arc4random check-in: 9aa85c25b5 user: js tags: trunk | |
00:57 | Work around bugs in Apple GCC 4.2.1 check-in: cbc09c6e26 user: js tags: trunk | |
2020-09-26
| ||
21:58 | Don't require __COUNTER__ for OF_RESERVE_IVARS check-in: ef614a225d user: js tags: trunk | |
Modified src/OFColor.m from [eeffafbeab] to [cc4d687d8e].
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + | { \ static of_once_t onceControl = OF_ONCE_INIT; \ of_once(&onceControl, initPredefinedColor_##name); \ \ return name##Color; \ } |
︙ |
Modified src/OFDNSResolverSettings.m from [aa15389045] to [92fa7c4194].
︙ | |||
68 69 70 71 72 73 74 | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | - + | #endif #ifndef OF_WII static OFString * domainFromHostname(void) { char hostname[256]; |
︙ | |||
91 92 93 94 95 96 97 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - + + + | } @catch (OFInvalidFormatException *e) { /* Not an IP address -> we can use it if it contains a dot. */ size_t pos = [domain rangeOfString: @"."].location; if (pos == OF_NOT_FOUND) return nil; |
︙ |
Modified src/OFDate.m from [c70c88b347] to [34afa10ebd].
︙ | |||
466 467 468 469 470 471 472 | 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 | - + + | return [element autorelease]; } - (OFData *)messagePackRepresentation { void *pool = objc_autoreleasePoolPush(); int64_t seconds = (int64_t)_seconds; |
︙ |
Modified src/OFKqueueKernelEventObserver.m from [9821cf501a] to [56c8bac78d].
︙ | |||
161 162 163 164 165 166 167 | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | - + | struct kevent eventList[EVENTLIST_SIZE]; int events; if ([self of_processReadBuffers]) return; timeout.tv_sec = (time_t)timeInterval; |
︙ |
Modified src/OFNumber.m from [17a849254e] to [d23a5a6bf5].
︙ | |||
882 883 884 885 886 887 888 | 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 | - + | if (*_typeEncoding == 'B') { uint8_t type = (_value.unsigned_ ? 0xC3 : 0xC2); data = [OFMutableData dataWithItems: &type count: 1]; } else if (*_typeEncoding == 'f') { uint8_t type = 0xCA; |
︙ |
Modified src/OFObject.h from [f46ea6f043] to [78dcc54e1b].
︙ | |||
293 294 295 296 297 298 299 | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 | + + - + - - + - - - + + - + - + - + + + - + + + - + - + + + - + - + + + - + - + | /*! * @protocol OFObject OFObject.h ObjFW/OFObject.h * * @brief The protocol which all root classes implement. */ @protocol OFObject /*! * @brief Returns the class of the object. * |
︙ | |||
527 528 529 530 531 532 533 534 535 536 537 538 539 540 | 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 | + + + + + + + + + + + | @property (class, readonly, nonatomic, getter=class) Class class_; # endif @property (class, readonly, nonatomic) OFString *className; @property (class, readonly, nullable, nonatomic) Class superclass; @property (class, readonly, nonatomic) OFString *description; # endif # ifdef __cplusplus @property (readonly, nonatomic) Class class; # else @property (readonly, nonatomic, getter=class) Class class_; #endif @property OF_NULLABLE_PROPERTY (readonly, nonatomic) Class superclass; @property (readonly, nonatomic) uint32_t hash; @property (readonly, nonatomic) unsigned int retainCount; @property (readonly, nonatomic) bool isProxy; @property (readonly, nonatomic) bool allowsWeakReference; /*! * @brief The name of the object's class. */ @property (readonly, nonatomic) OFString *className; /*! * @brief A description for the object. |
︙ |
Modified src/OFString.m from [ed5bfcb060] to [a28b46c55c].
︙ | |||
832 833 834 835 836 837 838 839 | 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 | + + - + + + + + - - + + + + | encoding: OF_STRING_ENCODING_UTF_8 length: UTF8StringLength]; } - (instancetype)initWithUTF8StringNoCopy: (char *)UTF8String freeWhenDone: (bool)freeWhenDone { id ret; @try { |
︙ |
Modified src/OFSystemInfo.m from [4e15025453] to [3f56016e9e].
︙ | |||
146 147 148 149 150 151 152 | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | - - - + + + + | initOperatingSystemVersion(void) { #if defined(OF_IOS) || defined(OF_MACOS) # ifdef OF_HAVE_FILES void *pool = objc_autoreleasePoolPush(); @try { |
︙ |
Modified src/OFThread.m from [5a3f2982c0] to [64242ae003].
︙ | |||
252 253 254 255 256 257 258 | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | - + | @throw [OFOutOfRangeException exception]; svcSleepThread((int64_t)(timeInterval * 1000000000)); #elif defined(HAVE_NANOSLEEP) struct timespec rqtp; rqtp.tv_sec = (time_t)timeInterval; |
︙ |
Modified src/OFURLHandler.m from [b1ea4038d8] to [2d065f473d].
︙ | |||
78 79 80 81 82 83 84 | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | - - + + + + - + + + | handler = [[class alloc] initWithScheme: scheme]; @try { [handlers setObject: handler forKey: scheme]; } @finally { [handler release]; } |
︙ |
Modified src/OFValue.m from [ef18897f3a] to [a224fd5a05].
︙ | |||
164 165 166 167 168 169 170 171 172 173 174 175 176 177 | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | + | } - (bool)isEqual: (id)object { const char *objCType; size_t size; void *value, *otherValue; bool ret; if (object == self) return true; if (![object isKindOfClass: [OFValue class]]) return false; |
︙ | |||
194 195 196 197 198 199 200 | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | - + + + | @try { [self getValue: value size: size]; [object getValue: otherValue size: size]; |
︙ |
Modified src/platform/posix/condition.m from [3ba4daa8bb] to [59d3a90643].
︙ | |||
46 47 48 49 50 51 52 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - + | bool of_condition_timed_wait(of_condition_t *condition, of_mutex_t *mutex, of_time_interval_t timeout) { struct timespec ts; ts.tv_sec = (time_t)timeout; |
Modified src/socket.m from [0757bca949] to [e490baa3be].
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | - + | #ifdef OF_HAVE_THREADS # ifndef OF_AMIGAOS # import "mutex.h" # else # import "tlskey.h" # endif #endif |
︙ | |||
386 387 388 389 390 391 392 | 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | - + | @throw [OFInvalidFormatException exception]; number = component.unsignedLongLongValue; if (number > UINT8_MAX) @throw [OFInvalidFormatException exception]; |
︙ | |||
497 498 499 500 501 502 503 504 | 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 | + + - + - + + + | return ret; } of_socket_address_t of_socket_address_parse_ip(OFString *IP, uint16_t port) { of_socket_address_t ret; @try { |
︙ |