From b31fedc279c8eb4f447212afc3dc6c9f62b9ee6e Mon Sep 17 00:00:00 2001
From: Tavian Barnes <tavianator@tavianator.com>
Date: Wed, 15 Jan 2025 14:08:22 -0500
Subject: list: Don't use leading underscores for globals

---
 src/list.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'src')

diff --git a/src/list.h b/src/list.h
index 48f0d06..15c37a8 100644
--- a/src/list.h
+++ b/src/list.h
@@ -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.
-- 
cgit v1.2.3