Browse Source

#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>
tags/v0.4.0-rc1
David Brownell 12 years ago
parent
commit
b695cb7522
17 changed files with 10 additions and 15 deletions
  1. +0
    -1
      src/ecosboard.c
  2. +0
    -1
      src/flash/at91sam3.c
  3. +0
    -2
      src/flash/lpc3180_nand_controller.h
  4. +1
    -0
      src/flash/mflash.c
  5. +1
    -1
      src/flash/mflash.h
  6. +0
    -1
      src/openocd.c
  7. +1
    -1
      src/server/gdb_server.c
  8. +0
    -2
      src/server/gdb_server.h
  9. +0
    -1
      src/target/arm_adi_v5.h
  10. +1
    -0
      src/target/armv4_5_mmu.c
  11. +2
    -1
      src/target/armv4_5_mmu.h
  12. +0
    -1
      src/target/armv7a.c
  13. +0
    -1
      src/target/armv7a.h
  14. +1
    -0
      src/target/armv7m.c
  15. +0
    -1
      src/target/cortex_a8.h
  16. +1
    -0
      src/target/target_request.c
  17. +2
    -1
      src/target/target_request.h

+ 0
- 1
src/ecosboard.c View File

@@ -26,7 +26,6 @@
#include "configuration.h"
#include "xsvf.h"
#include "svf.h"
#include "target.h"
#include "nand.h"
#include "pld.h"



+ 0
- 1
src/flash/at91sam3.c View File

@@ -62,7 +62,6 @@
#include <stddef.h>
#include "types.h"
#include "flash.h"
#include "target.h"
#include "membuf.h"
#include "at91sam3.h"
#include "time_support.h"


+ 0
- 2
src/flash/lpc3180_nand_controller.h View File

@@ -20,8 +20,6 @@
#ifndef LPC3180_NAND_CONTROLLER_H
#define LPC3180_NAND_CONTROLLER_H

#include "target.h"

enum lpc3180_selected_controller
{
LPC3180_NO_CONTROLLER,


+ 1
- 0
src/flash/mflash.c View File

@@ -22,6 +22,7 @@
#endif

#include "mflash.h"
#include "target.h"
#include "time_support.h"
#include "fileio.h"
#include "log.h"


+ 1
- 1
src/flash/mflash.h View File

@@ -20,7 +20,7 @@
#ifndef _MFLASH_H
#define _MFLASH_H

#include "target.h"
struct command_context;

typedef unsigned long mg_io_uint32;
typedef unsigned short mg_io_uint16;


+ 0
- 1
src/openocd.c View File

@@ -32,7 +32,6 @@
#include "configuration.h"
#include "xsvf.h"
#include "svf.h"
#include "target.h"
#include "nand.h"
#include "pld.h"
#include "mflash.h"


+ 1
- 1
src/server/gdb_server.c View File

@@ -27,12 +27,12 @@
#include "config.h"
#endif

#include "gdb_server.h"
#include "breakpoints.h"
#include "target_request.h"
#include "register.h"
#include "server.h"
#include "flash.h"
#include "gdb_server.h"
#include "image.h"
#include "jtag.h"



+ 0
- 2
src/server/gdb_server.h View File

@@ -26,8 +26,6 @@
#ifndef GDB_SERVER_H
#define GDB_SERVER_H

#include "target.h"

struct image;

#define GDB_BUFFER_SIZE 16384


+ 0
- 1
src/target/arm_adi_v5.h View File

@@ -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


+ 1
- 0
src/target/armv4_5_mmu.c View File

@@ -22,6 +22,7 @@
#endif

#include "log.h"
#include "target.h"
#include "armv4_5_mmu.h"




+ 2
- 1
src/target/armv4_5_mmu.h View File

@@ -21,7 +21,8 @@
#define ARMV4_5_MMU_H

#include "armv4_5_cache.h"
#include "target.h"

struct target;

struct armv4_5_mmu_common
{


+ 0
- 1
src/target/armv7a.c View File

@@ -25,7 +25,6 @@
#include "armv7a.h"
#include "arm_disassembler.h"

#include "target.h"
#include "register.h"
#include "binarybuffer.h"
#include "command.h"


+ 0
- 1
src/target/armv7a.h View File

@@ -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"


+ 1
- 0
src/target/armv7m.c View File

@@ -35,6 +35,7 @@
#endif

#include "breakpoints.h"
#include "target.h"
#include "armv7m.h"
#include "algorithm.h"
#include "register.h"


+ 0
- 1
src/target/cortex_a8.h View File

@@ -29,7 +29,6 @@
#ifndef CORTEX_A8_H
#define CORTEX_A8_H

#include "target.h"
#include "armv7a.h"

extern char* cortex_a8_state_strings[];


+ 1
- 0
src/target/target_request.c View File

@@ -27,6 +27,7 @@
#include "config.h"
#endif

#include "target.h"
#include "target_request.h"
#include "target_type.h"
#include "binarybuffer.h"


+ 2
- 1
src/target/target_request.h View File

@@ -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
{


Loading…
Cancel
Save