From 264d24495d7ff0048bd5c49736042ed66b90f7a6 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Thu, 3 Dec 2009 04:14:25 -0800 Subject: [PATCH] change #include "command.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "command.h" the following form should be used. #include The exception is from .c files in the same directory. --- src/helper/configuration.h | 2 +- src/helper/log.h | 2 +- src/jtag/drivers/driver.c | 2 +- src/pld/pld.h | 2 +- src/target/armv4_5.h | 2 +- src/target/armv7a.c | 2 +- src/xsvf/xsvf.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/helper/configuration.h b/src/helper/configuration.h index ce9159c3d7..caa80eec59 100644 --- a/src/helper/configuration.h +++ b/src/helper/configuration.h @@ -23,7 +23,7 @@ #ifndef CONFIGURATION_H #define CONFIGURATION_H -#include "command.h" +#include int parse_cmdline_args(struct command_context *cmd_ctx, int argc, char *argv[]); diff --git a/src/helper/log.h b/src/helper/log.h index f2d19d16b1..ebcb8a158e 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -26,7 +26,7 @@ #ifndef ERROR_H #define ERROR_H -#include "command.h" +#include /* To achieve C99 printf compatibility in MinGW, gnu_printf should be * used for __attribute__((format( ... ))), with GCC v4.4 or later diff --git a/src/jtag/drivers/driver.c b/src/jtag/drivers/driver.c index cadd88e8f4..f6fb4b6067 100644 --- a/src/jtag/drivers/driver.c +++ b/src/jtag/drivers/driver.c @@ -33,7 +33,7 @@ #include "interface.h" #include "minidriver.h" -#include "command.h" +#include struct jtag_callback_entry { diff --git a/src/pld/pld.h b/src/pld/pld.h index 1ae775cc89..cd92ff0a4d 100644 --- a/src/pld/pld.h +++ b/src/pld/pld.h @@ -20,7 +20,7 @@ #ifndef PLD_H #define PLD_H -#include "command.h" +#include struct pld_device; diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h index 7229a6c0bd..9b6237bce7 100644 --- a/src/target/armv4_5.h +++ b/src/target/armv4_5.h @@ -27,7 +27,7 @@ #define ARMV4_5_H #include "target.h" -#include "command.h" +#include typedef enum armv4_5_mode diff --git a/src/target/armv7a.c b/src/target/armv7a.c index 1aa0d8ac79..ae5ed087a0 100644 --- a/src/target/armv7a.c +++ b/src/target/armv7a.c @@ -27,7 +27,7 @@ #include "register.h" #include -#include "command.h" +#include #include #include diff --git a/src/xsvf/xsvf.h b/src/xsvf/xsvf.h index 2153a2dd3d..7ce3711337 100644 --- a/src/xsvf/xsvf.h +++ b/src/xsvf/xsvf.h @@ -20,7 +20,7 @@ #ifndef XSVF_H #define XSVF_H -#include "command.h" +#include int xsvf_register_commands(struct command_context *cmd_ctx); -- 2.30.2