This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: [PATCH]: Don't define ctype is* and to* macro if C++
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Subject: Re: [PATCH]: Don't define ctype is* and to* macro if C++
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 08 Jun 2001 04:21:28 -0300
- Cc: newlib list <newlib at sources dot redhat dot com>
- Organization: GCC Team, Red Hat
- References: <20010606083039.10918.qmail@web14502.mail.yahoo.com>
On Jun 6, 2001, Danny Smith <danny_r_smith_2001@yahoo.co.nz> wrote:
> islapha, islower, etc are (overloaded) functions in std C++. Defining these
> functions as macros breaks C++ code that uses these functions.
They should probably be implemented as extern inline functions in
namespace std #ifdef __cplusplus, otherwise performance would be
severely degraded.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me