delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/12/25/05:15:26

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" <eliz AT gnu DOT org>
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>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <ZrGdnQaTgL1eIlHcRVn-vg@comcast.com> (message from Joe Wright on
Fri, 24 Dec 2004 20:18:03 -0500)
Subject: Re: CTYPE stuff for Eli or DJ
References: <KpSdnePxHo9G_VHcRVn-oQ AT comcast DOT com> <200412241848 DOT iBOImiRM013524 AT envy DOT delorie DOT com> <Ub6dnQHCSdfA-lHcRVn-1w AT comcast DOT com> <200412241919 DOT iBOJJnq5014101 AT envy DOT delorie DOT com> <ZrGdnQaTgL1eIlHcRVn-vg AT comcast 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

> Date: Fri, 24 Dec 2004 20:18:03 -0500
> From: Joe Wright <joewwright AT comcast DOT net>
> 
> 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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019