]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345499:
authorhselasky <hselasky@FreeBSD.org>
Fri, 5 Apr 2019 11:34:13 +0000 (11:34 +0000)
committerhselasky <hselasky@FreeBSD.org>
Fri, 5 Apr 2019 11:34:13 +0000 (11:34 +0000)
commit8be75957403cb1a29ab550b577ca2144add13695
tree0f9c3c78721bfe432d309619feeb4476c8cc7ad1
parentbe7a2e53a0d4348fa01edfa096599c95e5cb572c
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
sys/sys/ctype.h