aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-18 01:10:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-18 01:10:34 -0400
commitc00c6d3e0224c33ac7d0ca65974fe359deb215cd (patch)
tree4e9eb924c23cb6533f503d5e1895470ac9584253 /stdlib
parenta8a69ec1e25b0499686b465342b6ca90861cba93 (diff)
Move List reversal to the right place
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/util.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/stdlib/util.h b/stdlib/util.h
index a1db74cd..95a40018 100644
--- a/stdlib/util.h
+++ b/stdlib/util.h
@@ -34,19 +34,6 @@
#define CONSTFUNC __attribute__ ((const))
#endif
-#define REVERSE_LIST(list) do { \
- __typeof(list) _prev = NULL; \
- __typeof(list) _next = NULL; \
- auto _current = list; \
- while (_current != NULL) { \
- _next = _current->next; \
- _current->next = _prev; \
- _prev = _current; \
- _current = _next; \
- } \
- list = _prev; \
-} while(0)
-
__attribute__((format(printf, 1, 2)))
char *heap_strf(const char *fmt, ...);