2005-03-18 Hans-Peter Nilsson <hp@axis.com>
Corinna Vinschen <corinna@vinschen.de> * libc/include/ctype.h: Remove invalid +1 offset from ctype macro references to __ctype_ptr. (_ctype_): Move declaration outside #ifndef __cplusplus.
This commit is contained in:
		| @@ -1,3 +1,10 @@ | |||||||
|  | 2005-03-18  Hans-Peter Nilsson  <hp@axis.com> | ||||||
|  |             Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
|  |         * libc/include/ctype.h: Remove invalid +1 offset from | ||||||
|  |         ctype macro references to __ctype_ptr. | ||||||
|  |         (_ctype_): Move declaration outside #ifndef __cplusplus. | ||||||
|  |  | ||||||
| 2005-03-18  Corinna Vinschen  <corinna@vinschen.de> | 2005-03-18  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to | 	* libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to | ||||||
|   | |||||||
| @@ -37,21 +37,21 @@ int _EXFUN(_toupper, (int __c)); | |||||||
| #define	_B	0200 | #define	_B	0200 | ||||||
|  |  | ||||||
| extern	__IMPORT _CONST char	*__ctype_ptr; | extern	__IMPORT _CONST char	*__ctype_ptr; | ||||||
|  | extern	__IMPORT _CONST char	_ctype_[];  /* For backward compatibility.  */ | ||||||
|  |  | ||||||
| #ifndef __cplusplus | #ifndef __cplusplus | ||||||
| #define	isalpha(c)	((__ctype_ptr+1)[(unsigned)(c)]&(_U|_L)) | #define	isalpha(c)	((__ctype_ptr)[(unsigned)(c)]&(_U|_L)) | ||||||
| #define	isupper(c)	((__ctype_ptr+1)[(unsigned)(c)]&_U) | #define	isupper(c)	((__ctype_ptr)[(unsigned)(c)]&_U) | ||||||
| #define	islower(c)	((__ctype_ptr+1)[(unsigned)(c)]&_L) | #define	islower(c)	((__ctype_ptr)[(unsigned)(c)]&_L) | ||||||
| #define	isdigit(c)	((__ctype_ptr+1)[(unsigned)(c)]&_N) | #define	isdigit(c)	((__ctype_ptr)[(unsigned)(c)]&_N) | ||||||
| #define	isxdigit(c)	((__ctype_ptr+1)[(unsigned)(c)]&(_X|_N)) | #define	isxdigit(c)	((__ctype_ptr)[(unsigned)(c)]&(_X|_N)) | ||||||
| #define	isspace(c)	((__ctype_ptr+1)[(unsigned)(c)]&_S) | #define	isspace(c)	((__ctype_ptr)[(unsigned)(c)]&_S) | ||||||
| #define ispunct(c)	((__ctype_ptr+1)[(unsigned)(c)]&_P) | #define ispunct(c)	((__ctype_ptr)[(unsigned)(c)]&_P) | ||||||
| #define isalnum(c)	((__ctype_ptr+1)[(unsigned)(c)]&(_U|_L|_N)) | #define isalnum(c)	((__ctype_ptr)[(unsigned)(c)]&(_U|_L|_N)) | ||||||
| #define isprint(c)	((__ctype_ptr+1)[(unsigned)(c)]&(_P|_U|_L|_N|_B)) | #define isprint(c)	((__ctype_ptr)[(unsigned)(c)]&(_P|_U|_L|_N|_B)) | ||||||
| #define	isgraph(c)	((__ctype_ptr+1)[(unsigned)(c)]&(_P|_U|_L|_N)) | #define	isgraph(c)	((__ctype_ptr)[(unsigned)(c)]&(_P|_U|_L|_N)) | ||||||
| #define iscntrl(c)	((__ctype_ptr+1)[(unsigned)(c)]&_C) | #define iscntrl(c)	((__ctype_ptr)[(unsigned)(c)]&_C) | ||||||
|  |  | ||||||
| extern	__IMPORT _CONST char	_ctype_[];  /* Deprecated.  */ |  | ||||||
|  |  | ||||||
| /* Non-gcc versions will get the library versions, and will be | /* Non-gcc versions will get the library versions, and will be | ||||||
|    slightly slower */ |    slightly slower */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user