Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/lib/libkern



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.




Home | Main Index | Thread Index | Old Index