This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: ctype.h and serious programming
- To: vischne at ibm dot net
- Subject: Re: ctype.h and serious programming
- From: "Earnie Boyd" <earnie_boyd at hotmail dot com>
- Date: Tue, 17 Feb 1998 05:40:27 PST
- Cc: gnu-win32 at cygnus dot com
>From: vischne@ibm.net
>Date: Tue, 17 Feb 1998 02:42:09 GMT
>Subject: ctype.h and serious programming
>To: gnu-win32@cygnus.com
>
>If you've done some porting to cygwin, you'll notice that ctype.h often
>gives syntax errors. Out of curiosity, I substituted <linux/ctype.h>
>from the linux kernel source for the cygwin version (leaving the cygwin
>headers in place), and got much cleaner compiles. Is there a technical
>reason why <linux/ctype.h>, which is a pure macro version, shouldn't
>replace cygwin's <ctype.h>?
It appears that ctype.h as supplied by cygnus needs some work with the
#ifdef __GNUC__ ... #endif logic. Based on the comment "non-gcc
versions will get the library versions, and will be slightly slower" the
code should be structured as follows:
#ifdef __GNUC__
#define MACROS
#else
int _EXFUN(...)
#endif
>
>-
- \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".