HomeFreeBSD

Change all kernel C-type macros into static inline functions.

Description

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
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Reviewer
kib
Differential Revision
D19694: Change all kernel C-type macros into static inline functions
Parents
rS345498: MFH to r345497.
Branches
Unknown
Tags
Unknown