#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:
David Brownell
2009-11-16 00:35:24 -08:00
parent 8193f17c3a
commit b695cb7522
17 changed files with 10 additions and 15 deletions

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"

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,

View File

@@ -22,6 +22,7 @@
#endif
#include "mflash.h"
#include "target.h"
#include "time_support.h"
#include "fileio.h"
#include "log.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;