deleted toupper and tolower macros: they were wrong
This commit is contained in:
parent
e701e2e2ec
commit
da36c2b13f
|
@ -7,7 +7,6 @@
|
||||||
#define _CTYPE_H
|
#define _CTYPE_H
|
||||||
|
|
||||||
extern char __ctype[]; /* located in chartab.c */
|
extern char __ctype[]; /* located in chartab.c */
|
||||||
extern int __x; /* scratch variable */
|
|
||||||
|
|
||||||
#define _U 0x01 /* this bit is for upper-case letters [A-Z] */
|
#define _U 0x01 /* this bit is for upper-case letters [A-Z] */
|
||||||
#define _L 0x02 /* this bit is for lower-case letters [a-z] */
|
#define _L 0x02 /* this bit is for lower-case letters [a-z] */
|
||||||
|
@ -45,7 +44,4 @@ int toupper(int _c); /* convert to upper case character */
|
||||||
#define isprint(c) ((unsigned) ((c)-' ') < 95)
|
#define isprint(c) ((unsigned) ((c)-' ') < 95)
|
||||||
#define isascii(c) ((unsigned) (c) < 128)
|
#define isascii(c) ((unsigned) (c) < 128)
|
||||||
|
|
||||||
#define toupper(c) (__x = (c), islower( __x) ? __x - 'a' + 'A' : __x)
|
|
||||||
#define tolower(c) (__x = (c), isupper( __x) ? __x - 'A' + 'a' : __x)
|
|
||||||
|
|
||||||
#endif /* _CTYPE_H */
|
#endif /* _CTYPE_H */
|
||||||
|
|
Loading…
Reference in a new issue