]> The Tcpdump Group git mirrors - tcpdump/commit
Don't use <ctype.h> macros.
authorGuy Harris <[email protected]>
Sun, 1 Sep 2019 23:11:32 +0000 (16:11 -0700)
committerGuy Harris <[email protected]>
Sun, 1 Sep 2019 23:11:32 +0000 (16:11 -0700)
commit9a6a6502413e657277e74ac1d0842ddca34cab50
tree09d3a2d474389be1d655f92a19263b713dd8677e
parent50c1904960bec90e234100a7c1b081d771c48e9b
Don't use <ctype.h> macros.

Some of them are locale-dependent, and all of them run the risk of
failing if you hand them a char with the 8th bit set.

Move our replacements to a new netdissect-ctype.h file, and, for the
ones that check for particular character types, add _ASCII to the name,
to indicate that only ASCII characters pass the check.  Do the same for
the ones that map between cases, to indicate that they only map ASCII
letters.

For isspace(), explicitly check for the characters we care about, to
make it clearer what we're doing.
16 files changed:
Makefile.in
netdissect-ctype.h [new file with mode: 0644]
netdissect-stdinc.h
netdissect.h
parsenfsfh.c
print-ascii.c
print-esp.c
print-isakmp.c
print-pppoe.c
print-radius.c
print-snmp.c
print-ssh.c
print-zephyr.c
smbutil.c
strtoaddr.c
util-print.c