]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: list: documenting mt_list_for_each_entry_safe() macro
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 21 Sep 2022 08:43:15 +0000 (10:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Sep 2022 14:02:40 +0000 (16:02 +0200)
commit60cffbaca592bf924ff58a54bd0ae184f8c5d2fd
tree501565ddf47ba5c6ebb0c59cd8bf89fa1d26be70
parent9a8d8a3fd0828a1cb64745318dcc5704a0b4b1a9
MINOR: list: documenting mt_list_for_each_entry_safe() macro

- Adding some comments in mt_list_for_each_entry_safe() macro to make it
  somehow understandable.
  The macro is performing critical stuff but was not documented at all.
  Moreover, nested loops with conditional tricks are used,
  making it even harder to understand the steps performed in it.

- Updating mt_list_for_each_entry_safe usage example.

- Added a "FIXME:" comment in a specific condition that seems to
  never be reached even when deeply stress-testing mt_lists
  (using test_list binary provided in the repository).
include/haproxy/list.h