perf tools: Remove unnecessary ctype.h inclusion
authorNamhyung Kim <namhyung@gmail.com>
Sun, 29 Jan 2012 08:55:55 +0000 (17:55 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Jan 2012 20:37:35 +0000 (18:37 -0200)
There are unnecessary #include <ctype.h> out there, and they might cause
a nasty build failure in some environment. As we already have most of
ctype macros in util.h, just get rid of them.

A few of exceptions are util/symbol.c which needs isupper() macro util.h
doesn't provide and perl scripting support code which includes ctype.h
internally.

Suggested-by: Ingo Molnar <mingo@elte.hu>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1327827356-8786-4-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/mem-memcpy.c
tools/perf/bench/mem-memset.c
tools/perf/util/probe-finder.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/trace-event-parse.c
tools/perf/util/trace-event-read.c
tools/perf/util/trace-event-scripting.c
tools/perf/util/ui/browsers/map.c

index 6ad2b1c6b27b1d5b1961963df14676939403e14b..71557225bf92aeb708100acfa3f5027948de3831 100644 (file)
@@ -5,7 +5,6 @@
  *
  * Written by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
  */
-#include <ctype.h>
 
 #include "../perf.h"
 #include "../util/util.h"
index 59d4933eff4401b267392ae75c126bbeb9dacb83..e9079185bd72d32e48dfee280ead72c96c7d9ef3 100644 (file)
@@ -5,7 +5,6 @@
  *
  * Trivial clone of mem-memcpy.c.
  */
-#include <ctype.h>
 
 #include "../perf.h"
 #include "../util/util.h"
index 5d732621a462f31a57d9aa966fe80e23edacf4b8..67dc4aed721cb0c384f5c36023c5884a7752d224 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
-#include <ctype.h>
 #include <dwarf-regs.h>
 
 #include <linux/bitops.h>
index 0b2a4878317244a486c648b57f86eb69cb3ac147..c2623c6f9b515ce2754d4533092bc22c574d66ea 100644 (file)
@@ -24,7 +24,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
 #include <errno.h>
 
 #include "../../perf.h"
index 1a8d4dc4f386b5bee9897686986cf4fa31548b9b..e0a4f652f28924f22d72db92d727e67eb27f76ce 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
 #include <errno.h>
 
 #include "../perf.h"
index f55cc3a765a12ab55dba204e11e7edb26bcfd0b6..b9592e0de8d7c00a1b37035a68dca036fc1e5722 100644 (file)
@@ -33,7 +33,6 @@
 #include <pthread.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <ctype.h>
 #include <errno.h>
 
 #include "../perf.h"
index a3fdf55f317bb851e4990b2c73e11e670a92aac7..18ae6c1831d3896263c5a7c3ff58f264bcefbfa5 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
 #include <errno.h>
 
 #include "../perf.h"
index 6905bcc8be2df223d0798964b643353e8dc64280..eca6575abfd0fa43374e9e2910b7028fd57a8e49 100644 (file)
@@ -3,9 +3,9 @@
 #include <newt.h>
 #include <inttypes.h>
 #include <sys/ttydefaults.h>
-#include <ctype.h>
 #include <string.h>
 #include <linux/bitops.h>
+#include "../../util.h"
 #include "../../debug.h"
 #include "../../symbol.h"
 #include "../browser.h"