]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r345499:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Apr 2019 11:35:58 +0000 (11:35 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Apr 2019 11:35:58 +0000 (11:35 +0000)
commitec4e438f6995864626ee313d3878cdbb03bfa3a8
tree13abe877134b78d2cf17a2571536431c862a1e33
parent11e907339d6d25bfbd022810c567071efa25089b
MFC r345499:
Change all kernel C-type macros into static inline functions.

The current kernel C-type macros might obscurely hide the fact that
the input argument might be used multiple times.

This breaks code like:
isalpha(*ptr++)

Use static inline functions instead of macros to fix this.

Reviewed by: kib @
Differential Revision: https://reviews.freebsd.org/D19694
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@345943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sys/ctype.h