commit | 42ccb5ac45058a4ad8a74794414e76ec371d50c0 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon May 13 17:48:46 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon May 13 19:14:52 2019 +0200 |
tree | dec456edb0e430ecbc1490d83f53a10787e994af | |
parent | 478281f55d46e85650e218893c78ce1d0ede13b3 [diff] |
MINOR: lists: add LIST_ADDED() to check if an element belongs to a list Some code parts use LIST_ISEMPTY() a lot on list elements to detect if they were reset consecutive to their removal from a list, but this test is always confusing as this was initially designed for list heads. Instead let's have a new macro, LIST_ADDED(), which returns true when the element is in a list (i.e. it's not "empty").