projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
415f1e0
)
com_list: Fix spacing. No code changes
author
Cloudwalk <cloudwalk009@gmail.com>
Wed, 14 Jul 2021 15:08:26 +0000
(11:08 -0400)
committer
Cloudwalk <cloudwalk009@gmail.com>
Wed, 14 Jul 2021 15:08:26 +0000
(11:08 -0400)
com_list.h
patch
|
blob
|
history
diff --git
a/com_list.h
b/com_list.h
index 188f8d54d0cf6bea204df6b59db1ee2165492a20..f023da50f0bfa3f95aafeafeb073d489e84cbfd9 100644
(file)
--- a/
com_list.h
+++ b/
com_list.h
@@
-100,6
+100,7
@@
typedef struct llist_s
#define List_For_Each_Safe(pos, n, head) \
for (pos = (head)->next, n = pos->next; pos != (head); \
pos = n, n = pos->next)
#define List_For_Each_Safe(pos, n, head) \
for (pos = (head)->next, n = pos->next; pos != (head); \
pos = n, n = pos->next)
+
/*
* Iterate over a list backwards, safe against removal of list entry
*/
/*
* Iterate over a list backwards, safe against removal of list entry
*/
@@
-107,6
+108,7
@@
typedef struct llist_s
for (pos = (head)->prev, n = pos->prev; \
pos != (head); \
pos = n, n = pos->prev)
for (pos = (head)->prev, n = pos->prev; \
pos != (head); \
pos = n, n = pos->prev)
+
/*
* Test if the entry points to the head of the list
*/
/*
* Test if the entry points to the head of the list
*/
@@
-173,6
+175,7
@@
typedef struct llist_s
n = List_Next_Entry(pos, member); \
!List_Entry_Is_Head(pos, head, member); \
pos = n, n = List_Next_Entry(n, member))
n = List_Next_Entry(pos, member); \
!List_Entry_Is_Head(pos, head, member); \
pos = n, n = List_Next_Entry(n, member))
+
/*
* Continue iteration over a list of a given type, after the current position, safe against removal of list entry
*/
/*
* Continue iteration over a list of a given type, after the current position, safe against removal of list entry
*/
@@
-190,7
+193,6
@@
typedef struct llist_s
!List_Entry_Is_Head(pos, head, member); \
pos = n, n = List_Next_Entry(n, member))
!List_Entry_Is_Head(pos, head, member); \
pos = n, n = List_Next_Entry(n, member))
-
/*
* Iterate over a list of a given type backwards, safe against removal of list entry
*/
/*
* Iterate over a list of a given type backwards, safe against removal of list entry
*/