diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-19 19:25:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-19 19:25:49 +0000 |
commit | 7ef54de6726c3d0c0e7e94fab3a22496db03297e (patch) | |
tree | 954f5487f4fabaa9daab75773b083c653b35c609 /coreutils | |
parent | b183dfad2daea713e712470d206b0f0287331083 (diff) | |
download | busybox-7ef54de6726c3d0c0e7e94fab3a22496db03297e.tar.gz |
locale correction patch from Vladimir
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/printf.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c index 003423d56..d579a9b4e 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c @@ -92,28 +92,9 @@ static const int S_IFMT = 0170000; #define IN_CTYPE_DOMAIN(c) 1 -#ifdef isblank -# define ISBLANK(c) (IN_CTYPE_DOMAIN (c) && isblank (c)) -#else -# define ISBLANK(c) ((c) == ' ' || (c) == '\t') -#endif -#ifdef isgraph -# define ISGRAPH(c) (IN_CTYPE_DOMAIN (c) && isgraph (c)) -#else -# define ISGRAPH(c) (IN_CTYPE_DOMAIN (c) && isprint (c) && !isspace (c)) -#endif - -#define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c)) -#define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c)) -#define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) -#define ISCNTRL(c) (IN_CTYPE_DOMAIN (c) && iscntrl (c)) -#define ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower (c)) -#define ISPUNCT(c) (IN_CTYPE_DOMAIN (c) && ispunct (c)) -#define ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c)) -#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) #define ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit (c)) #define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) -#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) +#define ISDIGIT(c) (((unsigned char) (c)) - '0' <= 9) #define isodigit(c) ((c) >= '0' && (c) <= '7') #define hextobin(c) ((c)>='a'&&(c)<='f' ? (c)-'a'+10 : (c)>='A'&&(c)<='F' ? (c)-'A'+10 : (c)-'0') |