[vlc-devel] commit: Remove useless <ctype.h> inclusions ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jan 11 18:17:33 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 11 19:17:18 2010 +0200| [4f9272f73089735e488f65dc973d08b4be46b798] | committer: Rémi Denis-Courmont
Remove useless <ctype.h> inclusions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f9272f73089735e488f65dc973d08b4be46b798
---
modules/access/alsa.c | 1 -
modules/access/oss.c | 1 -
modules/control/globalhotkeys/xcb.c | 1 -
modules/control/http/http.h | 1 -
modules/control/http/mvar.c | 1 +
modules/control/rc.c | 1 -
modules/demux/playlist/ram.c | 2 --
modules/demux/subtitle_asa.c | 1 -
modules/demux/ts.c | 1 -
modules/gui/skins2/src/theme_loader.cpp | 2 --
modules/services_discovery/sap.c | 2 --
src/control/mediacontrol_audio_video.c | 1 -
src/control/mediacontrol_core.c | 1 -
src/control/mediacontrol_util.c | 1 -
src/extras/libc.c | 3 ---
src/input/input.c | 1 -
src/misc/epg.c | 2 --
src/misc/image.c | 1 -
src/stream_output/sap.c | 1 -
19 files changed, 1 insertions(+), 24 deletions(-)
diff --git a/modules/access/alsa.c b/modules/access/alsa.c
index adb0bcb..a86054d 100644
--- a/modules/access/alsa.c
+++ b/modules/access/alsa.c
@@ -45,7 +45,6 @@
#include <vlc_demux.h>
#include <vlc_input.h>
-#include <ctype.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
diff --git a/modules/access/oss.c b/modules/access/oss.c
index 41a7197..52ec5f2 100644
--- a/modules/access/oss.c
+++ b/modules/access/oss.c
@@ -38,7 +38,6 @@
#include <vlc_demux.h>
#include <vlc_charset.h>
-#include <ctype.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
diff --git a/modules/control/globalhotkeys/xcb.c b/modules/control/globalhotkeys/xcb.c
index 8fe4167..d31af2c 100644
--- a/modules/control/globalhotkeys/xcb.c
+++ b/modules/control/globalhotkeys/xcb.c
@@ -27,7 +27,6 @@
#include <vlc_plugin.h>
#include <vlc_interface.h>
#include <vlc_keys.h>
-#include <ctype.h>
#include <errno.h>
#include <xcb/xcb.h>
diff --git a/modules/control/http/http.h b/modules/control/http/http.h
index a24c6f2..1ea3726 100644
--- a/modules/control/http/http.h
+++ b/modules/control/http/http.h
@@ -32,7 +32,6 @@
#include <vlc_common.h>
#include <stdlib.h>
#include <strings.h>
-#include <ctype.h>
#include <vlc_interface.h>
#include <vlc_playlist.h>
diff --git a/modules/control/http/mvar.c b/modules/control/http/mvar.c
index 01b6cbf..13a5b98 100644
--- a/modules/control/http/mvar.c
+++ b/modules/control/http/mvar.c
@@ -29,6 +29,7 @@
#include "http.h"
#include <limits.h>
#include <errno.h>
+#include <ctype.h>
/* Utility function for scandir */
static int Filter( const char *foo )
diff --git a/modules/control/rc.c b/modules/control/rc.c
index a0934fe..e9f9005 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -34,7 +34,6 @@
#include <vlc_plugin.h>
#include <errno.h> /* ENOMEM */
-#include <ctype.h>
#include <signal.h>
#include <assert.h>
diff --git a/modules/demux/playlist/ram.c b/modules/demux/playlist/ram.c
index f3efef7..8542f06 100644
--- a/modules/demux/playlist/ram.c
+++ b/modules/demux/playlist/ram.c
@@ -51,8 +51,6 @@ http://service.real.com/help/library/guides/realone/IntroGuide/HTML/htmfiles/ram
#include <vlc_demux.h>
#include <vlc_url.h>
-#include <ctype.h>
-
#include "playlist.h"
struct demux_sys_t
diff --git a/modules/demux/subtitle_asa.c b/modules/demux/subtitle_asa.c
index d45c739..c634c51 100644
--- a/modules/demux/subtitle_asa.c
+++ b/modules/demux/subtitle_asa.c
@@ -38,7 +38,6 @@
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
-#include <ctype.h>
#include <vlc_demux.h>
#include <vlc_charset.h>
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index bec293d..d3fcf37 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -33,7 +33,6 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
-#include <ctype.h>
#include <assert.h>
#include <vlc_access.h> /* DVB-specific things */
diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index 5f34271..f6fe26d 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -30,8 +30,6 @@
#include "../src/vlcproc.hpp"
#include "../src/window_manager.hpp"
-#include <cctype>
-
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 288d307..8da5f43 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -40,8 +40,6 @@
#include <vlc_network.h>
#include <vlc_charset.h>
-#include <ctype.h>
-
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
diff --git a/src/control/mediacontrol_audio_video.c b/src/control/mediacontrol_audio_video.c
index c23b45d..8f6602d 100644
--- a/src/control/mediacontrol_audio_video.c
+++ b/src/control/mediacontrol_audio_video.c
@@ -40,7 +40,6 @@
#include <string.h>
#include <stdio.h>
-#include <ctype.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
diff --git a/src/control/mediacontrol_core.c b/src/control/mediacontrol_core.c
index 1b66e39..7090194 100644
--- a/src/control/mediacontrol_core.c
+++ b/src/control/mediacontrol_core.c
@@ -42,7 +42,6 @@
#include <string.h>
#include <stdio.h>
-#include <ctype.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
diff --git a/src/control/mediacontrol_util.c b/src/control/mediacontrol_util.c
index de01a8a..3dcfd43 100644
--- a/src/control/mediacontrol_util.c
+++ b/src/control/mediacontrol_util.c
@@ -36,7 +36,6 @@
#include <string.h>
#include <stdio.h>
-#include <ctype.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
diff --git a/src/extras/libc.c b/src/extras/libc.c
index 115bc09..738ed49 100644
--- a/src/extras/libc.c
+++ b/src/extras/libc.c
@@ -31,9 +31,6 @@
#include <vlc_common.h>
-#include <ctype.h>
-
-
#undef iconv_t
#undef iconv_open
#undef iconv
diff --git a/src/input/input.c b/src/input/input.c
index cd935fa..3e1f9c4 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -31,7 +31,6 @@
#include <vlc_common.h>
-#include <ctype.h>
#include <limits.h>
#include <assert.h>
#include <errno.h>
diff --git a/src/misc/epg.c b/src/misc/epg.c
index ccf555f..f640cb1 100644
--- a/src/misc/epg.c
+++ b/src/misc/epg.c
@@ -29,8 +29,6 @@
# include "config.h"
#endif
-#include <ctype.h>
-
#include <vlc_common.h>
#include <vlc_epg.h>
diff --git a/src/misc/image.c b/src/misc/image.c
index f337727..1186163 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -34,7 +34,6 @@
# include "config.h"
#endif
-#include <ctype.h>
#include <errno.h>
#include <vlc_common.h>
diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c
index 3dbaf40..f4d9a08 100644
--- a/src/stream_output/sap.c
+++ b/src/stream_output/sap.c
@@ -35,7 +35,6 @@
#include <stdlib.h> /* free() */
#include <stdio.h> /* sprintf() */
#include <string.h>
-#include <ctype.h> /* tolower(), isxdigit() */
#include <assert.h>
#include <vlc_sout.h>
More information about the vlc-devel
mailing list