delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/12/24/13:46:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Fri, 24 Dec 2004 12:32:59 -0600
Date: Fri, 24 Dec 2004 13:33:07 -0500
From: Joe Wright <joewwright AT comcast DOT net>
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: CTYPE stuff for Eli or DJ
Message-ID: <KpSdnePxHo9G_VHcRVn-oQ@comcast.com>
Lines: 12
NNTP-Posting-Host: 69.143.13.12
X-Trace: sv3-eb9Vb9ec7pstOaJpvmEvE6DmfyUzvaZuiEZJOniEOxhs4ZdD3gpwKGr7ijDj1ZqhXZJE+4WhHWgx5YQ!/8YuOqh145FH3NjDE1aZHpn46Vf1JqishpW5EIkvjmTxyFUcJKswTi7WjreP
X-Complaints-To: abuse AT comcast DOT net
X-DMCA-Complaints-To: dmca AT comcast DOT net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

'Splain me Batman. In ctypes.ha we have the macro..

    #define isspace(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISSPACE)

__dj_ctype_flags is an array 257 of unsigned short.

What assumptions are you making about '(int)(c)+1' that might ensure 
the required index range of 0..256 ?
-- 
Joe Wright                            mailto:joewwright AT comcast DOT net
"Everything should be made as simple as possible, but not simpler."
                     --- Albert Einstein ---

- Raw text -


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