aboutsummaryrefslogtreecommitdiff
path: root/dependencies/uthash/src/utlist.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-10-17 12:16:20 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-10-17 12:16:20 +0200
commit071a9bcb91ac7fb30b1f3669340532b961f6db4c (patch)
tree1f6be01f3d338178080bee7a5d16c541af94ab72 /dependencies/uthash/src/utlist.h
parentf9d9849300c5a8777ae9a2213d32a7c0f5799b45 (diff)
parent9a14454d3c5589373253571cee7428c593adefd9 (diff)
Merge commit '9a14454d3c5589373253571cee7428c593adefd9'
Diffstat (limited to 'dependencies/uthash/src/utlist.h')
-rw-r--r--dependencies/uthash/src/utlist.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/dependencies/uthash/src/utlist.h b/dependencies/uthash/src/utlist.h
index 1979448a7..08fc59ae6 100644
--- a/dependencies/uthash/src/utlist.h
+++ b/dependencies/uthash/src/utlist.h
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2007-2021, Troy D. Hanson http://troydhanson.github.io/uthash/
+Copyright (c) 2007-2022, Troy D. Hanson https://troydhanson.github.io/uthash/
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -70,6 +70,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else /* VS2008 or older (or VS2010 in C mode) */
#define NO_DECLTYPE
#endif
+#elif defined(__MCST__) /* Elbrus C Compiler */
+#define LDECLTYPE(x) __typeof(x)
#elif defined(__BORLANDC__) || defined(__ICCARM__) || defined(__LCC__) || defined(__WATCOMC__)
#define NO_DECLTYPE
#else /* GNU, Sun and other compilers */
@@ -709,7 +711,8 @@ do {
assert((del)->prev != NULL); \
if ((del)->prev == (del)) { \
(head)=NULL; \
- } else if ((del)==(head)) { \
+ } else if ((del) == (head)) { \
+ assert((del)->next != NULL); \
(del)->next->prev = (del)->prev; \
(head) = (del)->next; \
} else { \