deleted toupper and tolower macros: they were wrong
authoreck <none@none>
Wed, 24 Oct 1990 17:24:12 +0000 (17:24 +0000)
committereck <none@none>
Wed, 24 Oct 1990 17:24:12 +0000 (17:24 +0000)
lang/cem/libcc.ansi/headers/ctype.h

index cf38d62..bbe2d40 100644 (file)
@@ -7,7 +7,6 @@
 #define        _CTYPE_H
 
 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 _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        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 */