diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-15 14:11:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-17 13:23:53 -0400 |
commit | 5aa75a0fd4bc6402899e06fdb853cab024d65055 (patch) | |
tree | 939b667529badf20fe88720fb9aea3a1ce17215c /tools/perf/util | |
parent | 60f916dee612130c9977a8edd4abee98334202ba (diff) |
perf_counter tools: Replace isprint() with issane()
The Git utils came with a ctype replacement that doesn't provide
isprint(). Add a replacement.
Solves a build bug on certain distros.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 76590a16c271..ce9b514f60a3 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -343,6 +343,7 @@ extern unsigned char sane_ctype[256]; | |||
343 | #define isdigit(x) sane_istest(x,GIT_DIGIT) | 343 | #define isdigit(x) sane_istest(x,GIT_DIGIT) |
344 | #define isalpha(x) sane_istest(x,GIT_ALPHA) | 344 | #define isalpha(x) sane_istest(x,GIT_ALPHA) |
345 | #define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT) | 345 | #define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT) |
346 | #define issane(x) sane_istest(x,GIT_SPACE | GIT_DIGIT | GIT_ALPHA | GIT_GLOB_SPECIAL | GIT_REGEX_SPECIAL) | ||
346 | #define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL) | 347 | #define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL) |
347 | #define is_regex_special(x) sane_istest(x,GIT_GLOB_SPECIAL | GIT_REGEX_SPECIAL) | 348 | #define is_regex_special(x) sane_istest(x,GIT_GLOB_SPECIAL | GIT_REGEX_SPECIAL) |
348 | #define tolower(x) sane_case((unsigned char)(x), 0x20) | 349 | #define tolower(x) sane_case((unsigned char)(x), 0x20) |