From 9a6a6502413e657277e74ac1d0842ddca34cab50 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 1 Sep 2019 16:11:32 -0700 Subject: Don't use 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. --- netdissect-stdinc.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'netdissect-stdinc.h') diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h index 567fb8ef..2c16be39 100644 --- a/netdissect-stdinc.h +++ b/netdissect-stdinc.h @@ -124,7 +124,6 @@ #include #include #include -#include #include #include #include @@ -222,7 +221,6 @@ typedef char* caddr_t; * Includes and definitions for various flavors of UN*X. */ -#include #include #include #include -- cgit v1.2.1