Differences From Artifact [66f566bece]:
- File
src/OFNumber.h
— part of check-in
[d74f244ab7]
at
2020-08-12 20:56:32
on branch trunk
— Avoid using (u)intmax_t in methods
It is not guaranteed that a type encoding for it exists. (user: js, size: 18527) [annotate] [blame] [check-ins using]
To Artifact [833a3447d8]:
- File
src/OFNumber.h
— part of check-in
[be8b442546]
at
2020-08-16 18:28:17
on branch trunk
— OFNumber: Remove ssize_t
It's a non-standard type that should only be used for matching POSIX
APIs. (user: js, size: 17942) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
157 158 159 160 161 162 163 | @property (readonly, nonatomic) uint64_t uInt64Value; /*! * @brief The OFNumber as a `size_t`. */ @property (readonly, nonatomic) size_t sizeValue; | < < < < < | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | @property (readonly, nonatomic) uint64_t uInt64Value; /*! * @brief The OFNumber as a `size_t`. */ @property (readonly, nonatomic) size_t sizeValue; /*! * @brief The OFNumber as a `ptrdiff_t`. */ @property (readonly, nonatomic) ptrdiff_t ptrDiffValue; /*! * @brief The OFNumber as an `intptr_t`. |
︙ | ︙ | |||
363 364 365 366 367 368 369 | * @brief Creates a new OFNumber with the specified `size_t`. * * @param value The `size_t` value which the OFNumber should contain * @return A new autoreleased OFNumber */ + (instancetype)numberWithSize: (size_t)value; | < < < < < < < < | 358 359 360 361 362 363 364 365 366 367 368 369 370 371 | * @brief Creates a new OFNumber with the specified `size_t`. * * @param value The `size_t` value which the OFNumber should contain * @return A new autoreleased OFNumber */ + (instancetype)numberWithSize: (size_t)value; /*! * @brief Creates a new OFNumber with the specified `ptrdiff_t`. * * @param value The `ptrdiff_t` value which the OFNumber should contain * @return A new autoreleased OFNumber */ + (instancetype)numberWithPtrDiff: (ptrdiff_t)value; |
︙ | ︙ | |||
597 598 599 600 601 602 603 | * @brief Initializes an already allocated OFNumber with the specified `size_t`. * * @param value The `size_t` value which the OFNumber should contain * @return An initialized OFNumber */ - (instancetype)initWithSize: (size_t)value; | < < < < < < < < < | 584 585 586 587 588 589 590 591 592 593 594 595 596 597 | * @brief Initializes an already allocated OFNumber with the specified `size_t`. * * @param value The `size_t` value which the OFNumber should contain * @return An initialized OFNumber */ - (instancetype)initWithSize: (size_t)value; /*! * @brief Initializes an already allocated OFNumber with the specified * `ptrdiff_t`. * * @param value The `ptrdiff_t` value which the OFNumber should contain * @return An initialized OFNumber */ |
︙ | ︙ |