ctype.h: wrapper ctype functions with a cast to (unsigned char)
commitbda7a6e3715b270ebb0854b3cef667976d241d96
authorH. Peter Anvin <hpa@zytor.com>
Sat, 21 Jun 2008 17:23:17 +0000 (21 10:23 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 21 Jun 2008 17:23:17 +0000 (21 10:23 -0700)
tree86e645d4e025b1dbf0169d0a4ce1c6ec602a15d5
parent86877b294aabac1059d32611c8dce65910243454
ctype.h: wrapper ctype functions with a cast to (unsigned char)

ctype functions take an *int*, which the user is expected to have
taken the input character from getc() and friends, or taken a
character and cast it to (unsigned char).

We don't care about EOF (-1), so use macros that cast to (unsigned
char) for us.
14 files changed:
nasm.c
nasm.h
nasmlib.c
nasmlib.h
output/outaout.c
output/outbin.c
output/outcoff.c
output/outelf32.c
output/outelf64.c
output/outieee.c
output/outobj.c
output/outrdf2.c
preproc.c
stdscan.c