diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-16 00:35:24 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-16 00:35:24 -0800 |
commit | b695cb75220100cd9bbfaec5bd1740958454130d (patch) | |
tree | 6308a8f1358e96fd4d88c3241b0b24b63f64aaf5 /src/target | |
parent | 8193f17c3aeb948ca8f70ed3361e8b2bccefffed (diff) | |
download | openocd+libswd-b695cb75220100cd9bbfaec5bd1740958454130d.tar.gz openocd+libswd-b695cb75220100cd9bbfaec5bd1740958454130d.tar.bz2 openocd+libswd-b695cb75220100cd9bbfaec5bd1740958454130d.tar.xz openocd+libswd-b695cb75220100cd9bbfaec5bd1740958454130d.zip |
#include "target.h" less wildly
Don't include "target.h" from more headers than necessary. This
avoids needless interdependencies and duplicated include paths.
Don't needlessly include it in source files, either.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm_adi_v5.h | 1 | ||||
-rw-r--r-- | src/target/armv4_5_mmu.c | 1 | ||||
-rw-r--r-- | src/target/armv4_5_mmu.h | 3 | ||||
-rw-r--r-- | src/target/armv7a.c | 1 | ||||
-rw-r--r-- | src/target/armv7a.h | 1 | ||||
-rw-r--r-- | src/target/armv7m.c | 1 | ||||
-rw-r--r-- | src/target/cortex_a8.h | 1 | ||||
-rw-r--r-- | src/target/target_request.c | 1 | ||||
-rw-r--r-- | src/target/target_request.h | 3 |
9 files changed, 7 insertions, 6 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h index 9aac806e..a78193c6 100644 --- a/src/target/arm_adi_v5.h +++ b/src/target/arm_adi_v5.h @@ -23,7 +23,6 @@ #ifndef ARM_ADI_V5_H #define ARM_ADI_V5_H -#include "target.h" #include "arm_jtag.h" #define DAP_IR_DPACC 0xA diff --git a/src/target/armv4_5_mmu.c b/src/target/armv4_5_mmu.c index d84da482..4651960f 100644 --- a/src/target/armv4_5_mmu.c +++ b/src/target/armv4_5_mmu.c @@ -22,6 +22,7 @@ #endif #include "log.h" +#include "target.h" #include "armv4_5_mmu.h" diff --git a/src/target/armv4_5_mmu.h b/src/target/armv4_5_mmu.h index bbe50c6b..6b9ed34c 100644 --- a/src/target/armv4_5_mmu.h +++ b/src/target/armv4_5_mmu.h @@ -21,7 +21,8 @@ #define ARMV4_5_MMU_H #include "armv4_5_cache.h" -#include "target.h" + +struct target; struct armv4_5_mmu_common { diff --git a/src/target/armv7a.c b/src/target/armv7a.c index 7b33053d..7f2c387d 100644 --- a/src/target/armv7a.c +++ b/src/target/armv7a.c @@ -25,7 +25,6 @@ #include "armv7a.h" #include "arm_disassembler.h" -#include "target.h" #include "register.h" #include "binarybuffer.h" #include "command.h" diff --git a/src/target/armv7a.h b/src/target/armv7a.h index facd1505..a4be9e26 100644 --- a/src/target/armv7a.h +++ b/src/target/armv7a.h @@ -19,7 +19,6 @@ #ifndef ARMV7A_H #define ARMV7A_H -#include "target.h" #include "arm_adi_v5.h" #include "armv4_5.h" #include "armv4_5_mmu.h" diff --git a/src/target/armv7m.c b/src/target/armv7m.c index 7ccdf546..d8718f9e 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -35,6 +35,7 @@ #endif #include "breakpoints.h" +#include "target.h" #include "armv7m.h" #include "algorithm.h" #include "register.h" diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h index 230008a5..393a3104 100644 --- a/src/target/cortex_a8.h +++ b/src/target/cortex_a8.h @@ -29,7 +29,6 @@ #ifndef CORTEX_A8_H #define CORTEX_A8_H -#include "target.h" #include "armv7a.h" extern char* cortex_a8_state_strings[]; diff --git a/src/target/target_request.c b/src/target/target_request.c index 283ce55f..72151555 100644 --- a/src/target/target_request.c +++ b/src/target/target_request.c @@ -27,6 +27,7 @@ #include "config.h" #endif +#include "target.h" #include "target_request.h" #include "target_type.h" #include "binarybuffer.h" diff --git a/src/target/target_request.h b/src/target/target_request.h index cc9f3b9a..e50c425e 100644 --- a/src/target/target_request.h +++ b/src/target/target_request.h @@ -26,7 +26,8 @@ #ifndef TARGET_REQUEST_H #define TARGET_REQUEST_H -#include "target.h" +struct target; +struct command_context; typedef enum target_req_cmd { |