* bug in ctype.h
@ 2000-03-13 9:08 Levente Farkas
2000-03-13 9:56 ` Chris Faylor
0 siblings, 1 reply; 7+ messages in thread
From: Levente Farkas @ 2000-03-13 9:08 UTC (permalink / raw)
To: cygwin
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).
-- 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@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug in ctype.h
2000-03-13 9:08 bug in ctype.h Levente Farkas
@ 2000-03-13 9:56 ` Chris Faylor
2000-03-13 9:59 ` Levente Farkas
2000-03-13 17:19 ` J. J. Farrell
0 siblings, 2 replies; 7+ messages in thread
From: Chris Faylor @ 2000-03-13 9:56 UTC (permalink / raw)
To: cygwin
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.
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.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug in ctype.h
2000-03-13 9:56 ` Chris Faylor
@ 2000-03-13 9:59 ` Levente Farkas
2000-03-13 10:06 ` Chris Faylor
2000-03-13 17:19 ` J. J. Farrell
1 sibling, 1 reply; 7+ messages in thread
From: Levente Farkas @ 2000-03-13 9:59 UTC (permalink / raw)
To: cygwin
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
> 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.
-- 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@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug in ctype.h
2000-03-13 9:59 ` Levente Farkas
@ 2000-03-13 10:06 ` Chris Faylor
2000-03-13 10:12 ` Levente Farkas
0 siblings, 1 reply; 7+ messages in thread
From: Chris Faylor @ 2000-03-13 10:06 UTC (permalink / raw)
To: cygwin
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.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug in ctype.h
2000-03-13 10:06 ` Chris Faylor
@ 2000-03-13 10:12 ` Levente Farkas
0 siblings, 0 replies; 7+ messages in thread
From: Levente Farkas @ 2000-03-13 10:12 UTC (permalink / raw)
To: cygwin
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@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug in ctype.h
2000-03-13 9:56 ` Chris Faylor
2000-03-13 9:59 ` Levente Farkas
@ 2000-03-13 17:19 ` J. J. Farrell
2000-03-13 17:41 ` Chris Faylor
1 sibling, 1 reply; 7+ messages in thread
From: J. J. Farrell @ 2000-03-13 17:19 UTC (permalink / raw)
To: cygwin
> From: Chris Faylor <cgf@cygnus.com>
>
> On Mon, Mar 13, 2000 at 06:07:43PM +0100, Levente Farkas wrote:
> >
> >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.
>
> 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.
Identifiers beginning "_" followed by another "_" or an upper-case
letter are reserved in all situations. Any "ordinary" program which
uses such identifiers is incorrect. This is not a bug.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug in ctype.h
2000-03-13 17:19 ` J. J. Farrell
@ 2000-03-13 17:41 ` Chris Faylor
0 siblings, 0 replies; 7+ messages in thread
From: Chris Faylor @ 2000-03-13 17:41 UTC (permalink / raw)
To: cygwin
On Mon, Mar 13, 2000 at 05:19:28PM -0800, J. J. Farrell wrote:
>>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.
>
>Identifiers beginning "_" followed by another "_" or an upper-case
>letter are reserved in all situations. Any "ordinary" program which
>uses such identifiers is incorrect. This is not a bug.
Thanks for the clarification.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2000-03-13 17:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-13 9:08 bug in ctype.h Levente Farkas
2000-03-13 9:56 ` Chris Faylor
2000-03-13 9:59 ` Levente Farkas
2000-03-13 10:06 ` Chris Faylor
2000-03-13 10:12 ` Levente Farkas
2000-03-13 17:19 ` J. J. Farrell
2000-03-13 17:41 ` Chris Faylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).