change #include "target.h" to <target/target.h>
authorZachary T Welch <zw@superlucidity.net>
Thu, 3 Dec 2009 12:14:51 +0000 (04:14 -0800)
committerZachary T Welch <zw@superlucidity.net>
Thu, 3 Dec 2009 12:24:42 +0000 (04:24 -0800)
Changes from the flat namespace to heirarchical one.  Instead of writing:

#include "target.h"

the following form should be used.

#include <target/target.h>

The exception is from .c files in the same directory.

src/flash/flash.h
src/flash/mflash.c
src/helper/command.c
src/server/httpd.c
src/server/server.c
src/target/armv4_5.h
src/target/mips32.h

index fea7372c41f6ae00612c65dd83ab24883b3314fc..5e31c48bcecb5775a35b5e193360db463f8b0fb2 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef FLASH_H
 #define FLASH_H
 
-#include "target.h"
+#include <target/target.h>
 #include <helper/log.h>
 
 struct image;
index 63e71db1cc26b4538f98db5df478bc5d603247ef..aa02e15759fa935388b782e76a6858b6b430c505 100644 (file)
@@ -22,7 +22,7 @@
 #endif
 
 #include "mflash.h"
-#include "target.h"
+#include <target/target.h>
 #include <helper/time_support.h>
 #include <helper/fileio.h>
 #include <helper/log.h>
index d65766842a5f23357d7108190c214d161f11e07e..76050efd9e65946c7e6fdff0f178e713f7e22925 100644 (file)
@@ -36,7 +36,7 @@
 #endif
 
 // @todo the inclusion of target.h here is a layering violation
-#include "target.h"
+#include <target/target.h>
 #include "command.h"
 #include "configuration.h"
 #include "log.h"
index b346ca2ee68663eb6fc0a5310fcbce3517d31125..9554ff0e40264800e534c77fca551aaafc0459b1 100644 (file)
@@ -26,7 +26,7 @@
 #endif
 
 #include "telnet_server.h"
-#include "target.h"
+#include <target/target.h>
 
 #include <microhttpd.h>
 #include <pthread.h>
index 0f977a76c81515ab44ad348b99f296205b2c1728..2f4bfb0043dc393da9247644d5d80b9bdbc3b563 100644 (file)
@@ -28,7 +28,7 @@
 #endif
 
 #include "server.h"
-#include "target.h"
+#include <target/target.h>
 #include "openocd.h"
 #include "tcl_server.h"
 #include "telnet_server.h"
index 9b6237bce73de3cb6e9f272326161e7970c5959d..6c83c3b3152ae3591e1bfe7a183ac7dc17c27e8b 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef ARMV4_5_H
 #define ARMV4_5_H
 
-#include "target.h"
+#include <target/target.h>
 #include <helper/command.h>
 
 
index ee5bd421cdff8410b0e8f55afd5d7db006c85b3d..98186aff93cf507e8432ca15d14f31b8b428d5a8 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef MIPS32_H
 #define MIPS32_H
 
-#include "target.h"
+#include <target/target.h>
 #include <target/mips32_pracc.h>