From: Zachary T Welch Date: Thu, 3 Dec 2009 12:14:25 +0000 (-0800) Subject: change #include "command.h" to X-Git-Tag: v0.4.0-rc1~201 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=264d24495d7ff0048bd5c49736042ed66b90f7a6;p=openocd 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. --- diff --git a/src/helper/configuration.h b/src/helper/configuration.h index ce9159c3..caa80eec 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 f2d19d16..ebcb8a15 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 cadd88e8..f6fb4b60 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 1ae775cc..cd92ff0a 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 7229a6c0..9b6237bc 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 1aa0d8ac..ae5ed087 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 2153a2dd..7ce37113 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);