Subject: Re: CVS commit: src/sys/lib/libkern
To: None <dyoung@netbsd.org>
From: Perry E. Metzger <perry@piermont.com>
List: source-changes
Date: 03/27/2006 16:41:52
David Young <dyoung@netbsd.org> writes:
> Module Name:	src
> Committed By:	dyoung
> Date:		Mon Mar 27 21:18:33 UTC 2006
>
> Modified Files:
> 	src/sys/lib/libkern: libkern.h
>
> Log Message:
> Per discussion on source-changes@, add __arraycount(array) for
> counting the number of elements in a static array, using the idiom,
> sizeof(array)/sizeof(array[0]).

If it is only used in the kernel, why bother with the __? We don't
need to be namespace clean.

Perry