#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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#endif
|
||||
|
||||
#include "log.h"
|
||||
#include "target.h"
|
||||
#include "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
|
||||
{
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "armv7a.h"
|
||||
#include "arm_disassembler.h"
|
||||
|
||||
#include "target.h"
|
||||
#include "register.h"
|
||||
#include "binarybuffer.h"
|
||||
#include "command.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"
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#endif
|
||||
|
||||
#include "breakpoints.h"
|
||||
#include "target.h"
|
||||
#include "armv7m.h"
|
||||
#include "algorithm.h"
|
||||
#include "register.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[];
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "target.h"
|
||||
#include "target_request.h"
|
||||
#include "target_type.h"
|
||||
#include "binarybuffer.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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user