Differences From Artifact [8d4b356936]:
- File
src/OFDate.m
— part of check-in
[94c7e3e8f3]
at
2020-07-25 18:32:42
on branch tagged-pointers
— OFDate: Also ignore -Wunknown-pragmas
This makes old versions of Clang happy which don't know about
-Wobjc-designated-initializers. (user: js, size: 19796) [annotate] [blame] [check-ins using]
To Artifact [4f38b261b8]:
- File src/OFDate.m — part of check-in [ff6eb7b6c3] at 2020-08-30 15:40:33 on branch tagged-pointers — Merge trunk into branch "tagged-pointers" (user: js, size: 20001) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
483 484 485 486 487 488 489 | seconds = tmAndTzToTime(&tm, &tz); return [self initWithTimeIntervalSince1970: seconds]; } - (instancetype)initWithSerialization: (OFXMLElement *)element { | > > > | | | | | > > > > > | | | > > > > | 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 | seconds = tmAndTzToTime(&tm, &tz); return [self initWithTimeIntervalSince1970: seconds]; } - (instancetype)initWithSerialization: (OFXMLElement *)element { of_time_interval_t seconds; @try { void *pool = objc_autoreleasePoolPush(); unsigned long long value; if (![element.name isEqual: @"OFDate"] || ![element.namespace isEqual: OF_SERIALIZATION_NS]) @throw [OFInvalidArgumentException exception]; value = [element unsignedLongLongValueWithBase: 16]; if (value > UINT64_MAX) @throw [OFOutOfRangeException exception]; seconds = OF_BSWAP_DOUBLE_IF_LE(OF_INT_TO_DOUBLE_RAW( OF_BSWAP64_IF_LE(value))); objc_autoreleasePoolPop(pool); } @catch (id e) { [self release]; @throw e; } return [self initWithTimeIntervalSince1970: seconds]; } - (bool)isEqual: (id)object { OFDate *otherDate; |
︙ | ︙ |