Subject: b18 ctype.h isXXX and -Wall -pedantic
From: [email-masked] (Richard H. Gumpertz)

19 Nov 1997 10:42:50 -0800
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked]

When I use isdigit (and similar isXXX macros) from b18 ctype.h and
compile with -Wall -pedantic, I get spurious warnings for each use
of the macro:
	"warning: subscript has type `char'"

An appropriate fix would probably be to replace
	(_ctype_+1)[c]
in each of the macros with either
	(_ctype_+1)[(int)(c)]
or
	_ctype_[1+(int)(c)]
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".