chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: hook up new install logic
[elogind.git]
/
src
/
list.h
diff --git
a/src/list.h
b/src/list.h
index 3cf18f15473b74ffdc94499f3da2d5a5990bf800..2bec8c9e738f252332ca3b69b800bc21f704f461 100644
(file)
--- a/
src/list.h
+++ b/
src/list.h
@@
-110,6
+110,9
@@
} \
} while(false)
} \
} while(false)
+#define LIST_JUST_US(name,item) \
+ (!(item)->name##_prev && !(item)->name##_next) \
+
#define LIST_FOREACH(name,i,head) \
for ((i) = (head); (i); (i) = (i)->name##_next)
#define LIST_FOREACH(name,i,head) \
for ((i) = (head); (i); (i) = (i)->name##_next)