improve ctype.h macros to diagnose errors
authorRich Felker <dalias@aerifal.cx>
Sat, 18 Apr 2015 02:24:31 +0000 (22:24 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 18 Apr 2015 02:24:31 +0000 (22:24 -0400)
commit2ca55a93f2a11185d72dcb69006fd2c30b5c3144
tree0c8262539c52947bbb1e107a81e97254cb028502
parent19bcdeeb1ebef6d209dfa938011c856bc3444a92
improve ctype.h macros to diagnose errors

the casts of the argument to unsigned int suppressed diagnosis of
errors like passing a pointer instead of a character. putting the
actual function call in an unreachable branch restores any diagnostics
that would be present if the macros didn't exist and functions were
used.
include/ctype.h