X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sat, 25 Dec 2004 12:13:31 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4ea6a$Blat.v2.2.2$88d35240@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (message from Joe Wright on Fri, 24 Dec 2004 20:18:03 -0500) Subject: Re: CTYPE stuff for Eli or DJ References: <200412241848 DOT iBOImiRM013524 AT envy DOT delorie DOT com> <200412241919 DOT iBOJJnq5014101 AT envy DOT delorie DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Fri, 24 Dec 2004 20:18:03 -0500 > From: Joe Wright > > No need for that, I think. Consider.. > > __dj_ctype_flags[(unsigned)(c) > 255 ? 0 : ((c)+1)] > > ..which will allow 'int is*(int c)' to take any int, including EOF > and do the 'Wright' thing. How in the world returning 0 for out-of-range arguments is the Right Thing?