]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r345499:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Apr 2019 11:37:17 +0000 (11:37 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Apr 2019 11:37:17 +0000 (11:37 +0000)
commite560c275cd7b74e5dd2a7bf954a4ce1a326436a8
tree81e88155bc0fa273e5257358e4213f07cb30b6b7
parentdf551ebd9e0ebbd74fec60d5ce112840b47438c4
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/9@345944 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sys/ctype.h