list: add list_for_each_rev_off macro
authorEric Wong <normalperson@yhbt.net>
Fri, 24 Oct 2014 22:02:31 +0000 (22:02 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Mar 2015 06:46:33 +0000 (17:16 +1030)
commit79a88af5cf4b8cec81efa3a61a016cf0bd658c49
tree9626e607537eb0a80931d05e2c20c1628ef16d25
parent0201703d51e85e5c3eeeef558176c1ed61369ad8
list: add list_for_each_rev_off macro

And re-implement list_for_each_rev in terms of list_for_each_rev_off
to avoid duplicating iteration logic.

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