Differences From Artifact [62a0be4bea]:
- File
src/macros.h
— part of check-in
[d6fa7f9bf6]
at
2017-10-15 22:51:14
on branch 0.90
— Rename __GCC_VERSION__ to OF_GCC_VERSION
__GCC_VERSION__ is reserved and could be used by GCC in the future. (user: js, size: 16542) [annotate] [blame] [check-ins using]
To Artifact [ed1d1a5d46]:
- File src/macros.h — part of check-in [31c0f5b89e] at 2017-10-22 14:09:23 on branch 0.90 — Make Apple GCC with -Wshadow happy (user: js, size: 16524) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
600 601 602 603 604 605 606 | OF_HASH_ADD(hash, (otherCopy >> 24) & 0xFF); \ OF_HASH_ADD(hash, (otherCopy >> 16) & 0xFF); \ OF_HASH_ADD(hash, (otherCopy >> 8) & 0xFF); \ OF_HASH_ADD(hash, otherCopy & 0xFF); \ } static OF_INLINE bool | | | | | | | | 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 | OF_HASH_ADD(hash, (otherCopy >> 24) & 0xFF); \ OF_HASH_ADD(hash, (otherCopy >> 16) & 0xFF); \ OF_HASH_ADD(hash, (otherCopy >> 8) & 0xFF); \ OF_HASH_ADD(hash, otherCopy & 0xFF); \ } static OF_INLINE bool of_bitset_isset(uint8_t *_Nonnull storage, size_t idx) { return storage[idx / 8] & (1 << (idx % 8)); } static OF_INLINE void of_bitset_set(uint8_t *_Nonnull storage, size_t idx) { storage[idx / 8] |= (1 << (idx % 8)); } static OF_INLINE void of_bitset_clear(uint8_t *_Nonnull storage, size_t idx) { storage[idx / 8] &= ~(1 << (idx % 8)); } static OF_INLINE char *_Nullable of_strdup(const char *_Nonnull string) { char *copy; size_t length = strlen(string); |
︙ | ︙ |