From 5a774a998c44dbf9708c295791e8375146e4716c Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Fri, 10 Feb 2012 10:10:15 +0900 Subject: [PATCH] --- yaml --- r: 288658 b: refs/heads/master c: 2cd13b0f7dd3a5df68ff4cd82af2e1f7bc2a43ab h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/util/util.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 07b9f0e22786..564831244772 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c4a7dca92bbb9881a5d678720f1d0c2153499749 +refs/heads/master: 2cd13b0f7dd3a5df68ff4cd82af2e1f7bc2a43ab diff --git a/trunk/tools/perf/util/util.h b/trunk/tools/perf/util/util.h index 7917b09430bd..0f99f394d8e0 100644 --- a/trunk/tools/perf/util/util.h +++ b/trunk/tools/perf/util/util.h @@ -199,6 +199,8 @@ static inline int has_extension(const char *filename, const char *ext) #undef isalpha #undef isprint #undef isalnum +#undef islower +#undef isupper #undef tolower #undef toupper @@ -219,6 +221,8 @@ extern unsigned char sane_ctype[256]; #define isalpha(x) sane_istest(x,GIT_ALPHA) #define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT) #define isprint(x) sane_istest(x,GIT_PRINT) +#define islower(x) (sane_istest(x,GIT_ALPHA) && sane_istest(x,0x20)) +#define isupper(x) (sane_istest(x,GIT_ALPHA) && !sane_istest(x,0x20)) #define tolower(x) sane_case((unsigned char)(x), 0x20) #define toupper(x) sane_case((unsigned char)(x), 0)