From: zwelch Date: Mon, 11 May 2009 05:00:17 +0000 (+0000) Subject: Audit and eliminate redundant #include directives in main src/ files. X-Git-Tag: v0.2.0~790 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f532c7faf8428a24caf1ca247f65d024d816f3e5;p=openocd Audit and eliminate redundant #include directives in main src/ files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1716 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/ecosboard.c b/src/ecosboard.c index 3668c0fc..5f6ba8f3 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -21,68 +21,54 @@ #include "config.h" #endif -#include "log.h" -#include "types.h" -#include "jtag.h" #include "configuration.h" +#include "time_support.h" + +#include "jtag.h" #include "xsvf.h" #include "svf.h" #include "target.h" #include "flash.h" #include "nand.h" #include "pld.h" +#include "rom.h" -#include "command.h" #include "server.h" #include "telnet_server.h" #include "gdb_server.h" -#include -#include -#include -#include -#include -#include -#include -#include - -#include #include // Address of JFFS2 #include -#include -#include -#include +#include #include +#include +#include +#include +#include +#include +#include + #include #include #include #include #include #include +#include #include -#include +#include #include #include -#include -#include "rom.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include + +#ifdef HAVE_IFADDRS_H #include -#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif -#include -#include #define MAX_IFS 64 #if defined(CYGPKG_NET_FREEBSD_STACK) #include @@ -1096,20 +1082,7 @@ CYG_HTTPD_MIME_TABLE_ENTRY(bin_mime_label, "bin", "application/octet-stream"); #include // base kernel types #include // tracing macros #include // assertion macros -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - #include - #include #include diff --git a/src/openocd.c b/src/openocd.c index 839a6bb1..65664464 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -28,8 +28,6 @@ #include "config.h" #endif -#include "log.h" -#include "types.h" #include "jtag.h" #include "configuration.h" #include "xsvf.h" @@ -40,19 +38,14 @@ #include "pld.h" #include "mflash.h" -#include "command.h" #include "server.h" #include "telnet_server.h" #include "gdb_server.h" #include "tcl_server.h" -#include +#ifdef HAVE_STRINGS_H #include -#include -#include -#include -#include -#include +#endif #define OPENOCD_VERSION \