aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 04:25:09 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 04:25:09 +0000
commit0b6c73ae8398964268d2df6f87347d9c59b04858 (patch)
treef07d077474898d0026e8d181061a0955a83491a6
parent164cb6d04eb582207575c4b8f42c8d1eb4aa2480 (diff)
downloadriscv-openocd-0b6c73ae8398964268d2df6f87347d9c59b04858.zip
riscv-openocd-0b6c73ae8398964268d2df6f87347d9c59b04858.tar.gz
riscv-openocd-0b6c73ae8398964268d2df6f87347d9c59b04858.tar.bz2
Audit and eliminate redundant #include directives in src/{pld,svf,xsvf}.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1710 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/pld/pld.c13
-rw-r--r--src/pld/virtex2.c7
-rw-r--r--src/pld/virtex2.h4
-rw-r--r--src/pld/xilinx_bit.c8
-rw-r--r--src/svf/svf.c12
-rw-r--r--src/xsvf/xsvf.c13
6 files changed, 3 insertions, 54 deletions
diff --git a/src/pld/pld.c b/src/pld/pld.c
index 3957140..48638b9 100644
--- a/src/pld/pld.c
+++ b/src/pld/pld.c
@@ -21,23 +21,10 @@
#include "config.h"
#endif
-#include "replacements.h"
-
#include "pld.h"
-
-#include "jtag.h"
-#include "command.h"
#include "log.h"
#include "time_support.h"
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h>
-
-#include <sys/time.h>
-#include <time.h>
/* pld drivers
*/
diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c
index ae03572..d9c2676 100644
--- a/src/pld/virtex2.c
+++ b/src/pld/virtex2.c
@@ -22,14 +22,9 @@
#endif
#include "virtex2.h"
-
-#include "pld.h"
#include "xilinx_bit.h"
-#include "command.h"
-#include "log.h"
-#include "jtag.h"
+#include "pld.h"
-#include <stdlib.h>
int virtex2_register_commands(struct command_context_s *cmd_ctx);
int virtex2_pld_device_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct pld_device_s *pld_device);
diff --git a/src/pld/virtex2.h b/src/pld/virtex2.h
index 7bc6c5e..65ad74a 100644
--- a/src/pld/virtex2.h
+++ b/src/pld/virtex2.h
@@ -20,9 +20,7 @@
#ifndef VIRTEX2_H
#define VIRTEX2_H
-#include "types.h"
-#include "pld.h"
-#include "xilinx_bit.h"
+#include "jtag.h"
typedef struct virtex2_pld_device_s
{
diff --git a/src/pld/xilinx_bit.c b/src/pld/xilinx_bit.c
index 35cf2f9..ef3c1e6 100644
--- a/src/pld/xilinx_bit.c
+++ b/src/pld/xilinx_bit.c
@@ -22,19 +22,11 @@
#endif
#include "xilinx_bit.h"
-
#include "pld.h"
#include "log.h"
-#include <stdlib.h>
-#include <unistd.h>
#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/time.h>
-#include <time.h>
int read_section(FILE *input_file, int length_size, char section, u32 *buffer_length, u8 **buffer)
{
diff --git a/src/svf/svf.c b/src/svf/svf.c
index ea60671..a68cfae 100644
--- a/src/svf/svf.c
+++ b/src/svf/svf.c
@@ -33,21 +33,9 @@
#endif
#include "svf.h"
-
#include "jtag.h"
-#include "command.h"
-#include "log.h"
#include "time_support.h"
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h>
-
-#include <sys/time.h>
-#include <time.h>
// SVF command
typedef enum
diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c
index e9b0a00..b62de34 100644
--- a/src/xsvf/xsvf.c
+++ b/src/xsvf/xsvf.c
@@ -42,20 +42,9 @@
#endif
#include "xsvf.h"
-
#include "jtag.h"
-#include "command.h"
-#include "log.h"
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h>
-#include <assert.h>
-#include <sys/time.h>
-#include <time.h>
+#include <assert.h>
/* XSVF commands, from appendix B of xapp503.pdf */