Differences From Artifact [acbe9b9b4a]:
- File src/macros.h — part of check-in [3faceccdd3] at 2017-05-01 18:48:12 on branch trunk — Add OF_NULL_RESETTABLE_PROPERTY (user: js, size: 15605) [annotate] [blame] [check-ins using]
To Artifact [4c5e15ca2a]:
- File
src/macros.h
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 15609) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
587 588 589 590 591 592 593 | static OF_INLINE void of_bitset_clear(uint8_t *storage, size_t index) { storage[index / 8] &= ~(1 << (index % 8)); } | | | | | | 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 | static OF_INLINE void of_bitset_clear(uint8_t *storage, size_t index) { storage[index / 8] &= ~(1 << (index % 8)); } static OF_INLINE char * of_strdup(const char *string) { char *copy; size_t length = strlen(string); if ((copy = (char *)malloc(length + 1)) == NULL) return NULL; memcpy(copy, string, length + 1); return copy; } static OF_INLINE void of_explicit_memset(void *buffer_, int character, size_t length) { volatile unsigned char *buffer = (volatile unsigned char *)buffer_; while (buffer < (unsigned char *)buffer_ + length) *buffer++ = character; } static OF_INLINE bool of_ascii_isalpha(char c) { return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); |
︙ | ︙ |