list: new list_for_each{, _safe}_off_dir_ macros
authorEric Wong <normalperson@yhbt.net>
Fri, 24 Oct 2014 22:02:30 +0000 (22:02 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Mar 2015 06:46:33 +0000 (17:16 +1030)
commit0201703d51e85e5c3eeeef558176c1ed61369ad8
tree1f8b23b1754667c5e35f6ea41a5877c8c0fc6bbf
parent3d74240c155b68ae0d59a5942048aa1db3e29b01
list: new list_for_each{, _safe}_off_dir_ macros

These internal iteration macros will make implementing reverse
iteration simpler.  For now, reimplement existing list_for_each_off
and list_for_each_safe_off macros on top of these macros to
prove they pass existing tests.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/list/list.h