]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mini-clist: Add functions to iterate backward on a list
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Mar 2020 13:13:26 +0000 (14:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commitbc1f54b0fc4582f3752f8b4add86c91be488851d
tree1ebafce1e288c59cbf2b32e7c2898e5cea18a91a
parentaaae9a0e9952bef30bb0da0eecd714f2db64d545
MINOR: mini-clist: Add functions to iterate backward on a list

list_for_each_entry_rev() and list_for_each_entry_from_rev() and corresponding
safe versions have been added to iterate on a list in the reverse order. All
these functions work the same way than the forward versions, except they use the
.p field to move for an element to another.
include/common/mini-clist.h