Skip to content
Commit ba240502 authored by Andy Ross's avatar Andy Ross Committed by Andrew Boie
Browse files

lib: rbtree: Add RB_FOR_EACH macro for iterative enumeration



Works mostly like the list enumeration macros.  Implemented by fairly
clever alloca trickery and some subtle "next node" logic.  More
convenient for many uses, can be early-exited, but has somewhat larger
code size than rb_walk().

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 35cb2ba3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment