lkml.org 
[lkml]   [2009]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [rfc -tip] lib,rb-tree - introduce rb_for_each helper
From
Date
On Sun, 2009-07-12 at 00:29 +0200, Frederic Weisbecker wrote:
> #define rb_for_each_entry(tpos, pos, root, memb) \
> for (pos = rb_first(root); pos && tpos = rb_entry(pos, typeof(*tpos), memb); \
> pos = rb_next(pos->memb, typeof(*pos), memb))

if you really want to do this, then at least call it:
for_each_rb_entry().



\
 
 \ /
  Last update: 2009-07-12 15:23    [W:0.095 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site