]> git.sur5r.net Git - openocd/commitdiff
Audit and eliminate redundant #include directives in src/{pld,svf,xsvf}.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 11 May 2009 04:25:09 +0000 (04:25 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 11 May 2009 04:25:09 +0000 (04:25 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1710 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/pld/pld.c
src/pld/virtex2.c
src/pld/virtex2.h
src/pld/xilinx_bit.c
src/svf/svf.c
src/xsvf/xsvf.c

index 39571400a69fb602b1525bb6a8b5b1fd2a6029f6..48638b925f54a906990d6d1d12f12f7e3f9b2f33 100644 (file)
 #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
  */
index ae03572f151255db7d2cf1061d2dd804f13f2c29..d9c26760c87fc2d39718ddbeeca636233eebb283 100644 (file)
 #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);
index 7bc6c5ebbca6e52855d3a002fea6ed6505f3ccaa..65ad74ab2d650b47d76100a15d3ba5a0499470ee 100644 (file)
@@ -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
 {
index 35cf2f9f95aa40df8903f3a941b715da426dc327..ef3c1e65df9062768ba3d186f0da7fbcf32bb6bc 100644 (file)
 #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) 
 {
index ea60671c1af79aa8edf042e28071e33b6501d6a5..a68cfaec0418ae359840010dc1703dd28684392f 100644 (file)
 #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
index e9b0a00828c80f6cbc2f29052d32e7676c490514..b62de349d5d68466c29e2ba1e879ffffd8bb3e68 100644 (file)
 #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  */