1bd8919011
C99 allows array function parameters to use the static keyword for their sizes. This tells the compiler that the parameter will have at least the specified size, and calling code will fail to compile if that guarantee is not met. However, this syntax is not legal in C++. This commit reverts r300824, which worked around the problem for sys/sys/md5.h only, and introduces a new macro: min_size(). min_size(x) can be used in headers as a static array size, but will still compile in C++ mode. Reviewed by: cem, ed MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8277 |
||
---|---|---|
.. | ||
i386 | ||
Makefile | ||
Makefile.depend | ||
md4.copyright | ||
md4.h | ||
md4c.c | ||
md5.copyright | ||
md5.h | ||
md5c.c | ||
mddriver.c | ||
mdX.3 | ||
mdXhl.c | ||
ripemd.3 | ||
ripemd.h | ||
rmd160c.c | ||
rmd_locl.h | ||
rmdconst.h | ||
rmddriver.c | ||
sha0c.c | ||
sha1c.c | ||
sha256.3 | ||
sha512.3 | ||
sha_locl.h | ||
sha.3 | ||
sha.h | ||
shadriver.c | ||
skein.3 | ||
skeindriver.c |