]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345499:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 5 Apr 2019 11:35:02 +0000 (11:35 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 5 Apr 2019 11:35:02 +0000 (11:35 +0000)
commit6683394d3b77c27158ffc341cf5ccfbe22270a1d
treeb8dd68ae6904715e5f6dfd2f7ef279bc3d9c6d99
parentee23386748919dad9f6754744a4207334520e9e7
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