mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-07 08:48:04 +02:00
FreeBSD: Add list_for_each_prev() to our bank of compat functions.
This commit is contained in:
parent
6777c6bb8b
commit
f8f49aa6ec
1 changed files with 4 additions and 0 deletions
|
|
@ -64,6 +64,10 @@ list_del(struct list_head *entry) {
|
|||
#define list_for_each(entry, head) \
|
||||
for (entry = (head)->next; entry != head; entry = (entry)->next)
|
||||
|
||||
#define list_for_each_prev(entry, head) \
|
||||
for (entry = (head)->prev; entry != (head); \
|
||||
entry = entry->prev)
|
||||
|
||||
#define list_for_each_safe(entry, temp, head) \
|
||||
for (entry = (head)->next, temp = (entry)->next; \
|
||||
entry != head; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue