svn commit: r286484 - projects/collation/usr.bin/localedef

Baptiste Daroussin bapt at freebsd.org
Thu Aug 13 06:18:08 UTC 2015


On Thu, Aug 13, 2015 at 12:16:41PM +1000, Bruce Evans wrote:
> On Wed, 12 Aug 2015, Bruce Simpson wrote:
> 
> > On 12/08/15 19:27, Baptiste Daroussin wrote:
> >> On Wed, Aug 12, 2015 at 01:22:17PM -0400, Davide Italiano wrote:
> >>>> +#define RB_NUMNODES(type, name, head, cnt) do { \
> >>>> +       type *t; \
> >>>> +       cnt = 0; \
> >>>> +       RB_FOREACH(t, name, head) { \
> >>>> +               cnt++; \
> >>>> +       } \
> >>>> +} while (0);
> >>>> +
> >>> 
> >>> Can you commit this one to HEAD && move it to the right header?
> 
> This has too many bugs to commit.

FYI the version proposed for tree(3):

#define RB_COUNT(x, name, head, cnt) do {	\
	(cnt) = 0;				\
	RB_FOREACH((x), name, (head)) {		\
		(cnt)++;			\
	}					\
} while (0)

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20150813/8b3117e5/attachment.bin>


More information about the svn-src-projects mailing list