helper/list: add list_for_each_entry_direction()
commita11fe473eaee235a51dba7900c08cc7629ed2794
authorAntonio Borneo <borneo.antonio@gmail.com>
Thu, 16 Dec 2021 10:25:32 +0000 (16 11:25 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Mon, 14 Feb 2022 15:10:41 +0000 (14 15:10 +0000)
tree8fd8a5e4bbbc440db9d4935d38238c96367bf05b
parent16cc853bcfbcc8dba6eadd91b434c05387034c0a
helper/list: add list_for_each_entry_direction()

Use a bool flag to specify if the list should be forward or
backward iterated.

Change-Id: Ied19d049f46cdcb7f50137d459cc7c02014526bc
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6784
Tested-by: jenkins
src/helper/list.h