2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>

* /libc/include/ctype.h (is* and to* macros): Do not define if C++.
This commit is contained in:
Jeff Johnston 2001-06-11 21:51:41 +00:00
parent 66a7fbe263
commit 25842b68c7
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
* /libc/include/ctype.h (is* and to* macros): Do not define if C++.
2001-06-11 Egor Duda <deo@logos-m.ru>
* libc/ctype/ctype_.c: When compiled with gcc on platforms

View File

@ -38,6 +38,7 @@ int _EXFUN(_toupper, (int __c));
extern __IMPORT _CONST char _ctype_[];
#ifndef __cplusplus
#define isalpha(c) ((_ctype_+1)[(unsigned)(c)]&(_U|_L))
#define isupper(c) ((_ctype_+1)[(unsigned)(c)]&_U)
#define islower(c) ((_ctype_+1)[(unsigned)(c)]&_L)
@ -57,6 +58,7 @@ extern __IMPORT _CONST char _ctype_[];
# define tolower(c) \
__extension__ ({ int __x = (c); isupper(__x) ? (__x - 'A' + 'a') : __x;})
#endif
#endif /* !__cplusplus */
#ifndef __STRICT_ANSI__
#define isascii(c) ((unsigned)(c)<=0177)