diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/list.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -377,21 +377,21 @@ // Scratch variables for the type-safe SLIST_REMOVE() implementation. // Not a pointer type due to https://github.com/llvm/llvm-project/issues/109718. _maybe_unused -static thread_local uintptr_t _slist_prev, _slist_next; +static thread_local uintptr_t slist_prev_, slist_next_; /** Suppress -Wunused-value. */ _maybe_unused -static inline void *_slist_cast(uintptr_t ptr) { +static inline void *slist_cast_(uintptr_t ptr) { return (void *)ptr; } #define SLIST_REMOVE__(list, cursor, next) \ - (_slist_prev = (uintptr_t)(void *)*cursor, \ - _slist_next = (uintptr_t)(void *)(*cursor)->next, \ + (slist_prev_ = (uintptr_t)(void *)*cursor, \ + slist_next_ = (uintptr_t)(void *)(*cursor)->next, \ (*cursor)->next = NULL, \ - *cursor = (void *)_slist_next, \ + *cursor = (void *)slist_next_, \ list->tail = *cursor ? list->tail : cursor, \ - _slist_cast(_slist_prev)) + slist_cast_(slist_prev_)) /** * Pop the head off a singly-linked list. |