Subject: CVS commit: src/sys/lib/libkern
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 03/27/2006 21:18:33
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]).

XXX This may move in the future, but this is a safe place to put
XXX it for use in the kernel.


To generate a diff of this commit:
cvs rdiff -r1.58 -r1.59 src/sys/lib/libkern/libkern.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.