From: zwelch Date: Mon, 11 May 2009 04:38:18 +0000 (+0000) Subject: Audit and eliminate redundant #include directives in core target files. X-Git-Tag: v0.2.0~793 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03f329604635db3299e139510e75fea7deb0f4bd;p=openocd Audit and eliminate redundant #include directives in core target files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1713 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/target/breakpoints.h b/src/target/breakpoints.h index 800e6558..946347ba 100644 --- a/src/target/breakpoints.h +++ b/src/target/breakpoints.h @@ -20,7 +20,7 @@ #ifndef BREAKPOINTS_H #define BREAKPOINTS_H -#include "target.h" +#include "types.h" struct target_s; diff --git a/src/target/target.c b/src/target/target.c index 29bf8337..68fad2fe 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -33,30 +33,16 @@ #include "config.h" #endif -#include "replacements.h" #include "target.h" #include "target_request.h" - -#include "log.h" -#include "configuration.h" -#include "binarybuffer.h" +#include "time_support.h" +#include "register.h" +#include "trace.h" +#include "image.h" #include "jtag.h" -#include -#include #include -#include -#include -#include - -#include -#include - -#include - -#include -#include static int handle_targets_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); diff --git a/src/target/target.h b/src/target/target.h index 500a5519..a664dc34 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -26,19 +26,16 @@ #ifndef TARGET_H #define TARGET_H -#include "register.h" #include "breakpoints.h" #include "algorithm.h" -#include "trace.h" - #include "command.h" -#include "types.h" -#include -#include +#include "replacements.h" struct reg_s; +struct trace_s; struct command_context_s; + /* * TARGET_UNKNOWN = 0: we don't know anything about the target yet * TARGET_RUNNING = 1: the target is executing user code