delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/13/15:43:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <38CD2F74.478359AF@mindmaker.hu>
Date: Mon, 13 Mar 2000 19:12:04 +0100
From: Levente Farkas <!spam-lfarkas AT mindmaker DOT hu>
Reply-To: lfarkas AT mindmaker DOT hu
Organization: Mindmaker Ltd.
X-Mailer: Mozilla 4.72 [en] (Win98; I)
X-Accept-Language: hu,en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: bug in ctype.h
References: <38CD205F DOT 1ADDE77B AT mindmaker DOT hu> <20000313125547 DOT B1933 AT cygnus DOT com> <38CD2C3C DOT 5B308FA5 AT mindmaker DOT hu> <20000313130625 DOT A2249 AT cygnus DOT com>

Chris Faylor wrote:
> 
> On Mon, Mar 13, 2000 at 06:58:20PM +0100, Levente Farkas wrote:
> >Chris Faylor wrote:
> >>
> >> On Mon, Mar 13, 2000 at 06:07:43PM +0100, Levente Farkas wrote:
> >> >hi,
> >> >I thing it's a real bug in ctype.h in cygwin:
> >> >-------------
> >> >#define _U  01
> >> >#define _L  02
> >> >#define _N  04
> >> >#define _S  010
> >> >#define _P  020
> >> >#define _C  040
> >> >#define _X  0100
> >> >#define _B  0200
> >> >--------------
> >> >and there is no undef pair of these defines. ok you can use every
> >> >name with starts with _, but it's a real nightmare (the _X is the
> >> >worst).
> >>
> >> Um, how would you undef these?  They're used in macros.
> >
> >that's another problem:-)
> >but simple after use
> >#undef _X
> 
> Are you actually saying that you want to do something like this:
> 
> #include <ctype.h>
> 
> main(int argc, char **argv)
> {
>   printf ("%d", isalpha(*argv[0]));
> #undef _U
> #undef _L
> #undef _N
> #undef _S
> #undef _P
> #undef _C
> #undef _X
> #undef _B
> 
> Somehow, I don't see the point.
> 
> If you're advocating that these be undefined in ctype.h, then:
> 
> That won't work.
> 
> >>It was my understanding that symbols that begin with "_" were supposed
> >>to be the province of a system library and are not supposed to be used
> >>by user programs.  Or was it "__".  I can never remember.
> >
> >almost both, but such a macros are anoying anyway.
> 
> Uh huh.

simple look into glic-s header files (which don't use these macros).
why ?:-)

 -- lfarkas
 "The only thing worse than not knowing the truth is
  ruining the bliss of ignorance."

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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