4 Nov
2025
4 Nov
'25
6:44 p.m.
On Tue Nov 4 18:32:07 2025 +0000, Rémi Bernon wrote:
It's usually done like this instead, or with LIST_FOR_EACH_ENTRY_SAFE: ```suggestion:-2+0 struct list *ptr; /* ... */ while ((ptr = list_head(&This->downloaded_waves)) { downloaded_wave = LIST_ENTRY(ptr, struct downloaded_wave, entry); ``` LIST_FOR_EACH_ENTRY_SAFE on removal is a more obvious pattern.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9296#note_120748