mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
llist: add PA_LLIST_FOREACH_SAFE macro for iteration that allows deleting
This commit is contained in:
parent
368c3e3f90
commit
4e1298d7c7
1 changed files with 3 additions and 0 deletions
|
|
@ -107,4 +107,7 @@
|
|||
#define PA_LLIST_FOREACH(i,head) \
|
||||
for (i = (head); i; i = i->next)
|
||||
|
||||
#define PA_LLIST_FOREACH_SAFE(i,n,head) \
|
||||
for (i = (head); i && ((n = i->next), 1); i = n)
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue