|
From: <zw...@ma...> - 2009-05-11 06:25:19
|
Author: zwelch
Date: 2009-05-11 06:25:09 +0200 (Mon, 11 May 2009)
New Revision: 1710
Modified:
trunk/src/pld/pld.c
trunk/src/pld/virtex2.c
trunk/src/pld/virtex2.h
trunk/src/pld/xilinx_bit.c
trunk/src/svf/svf.c
trunk/src/xsvf/xsvf.c
Log:
Audit and eliminate redundant #include directives in src/{pld,svf,xsvf}.
Modified: trunk/src/pld/pld.c
===================================================================
--- trunk/src/pld/pld.c 2009-05-11 04:22:15 UTC (rev 1709)
+++ trunk/src/pld/pld.c 2009-05-11 04:25:09 UTC (rev 1710)
@@ -21,24 +21,11 @@
#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
*/
extern pld_driver_t virtex2_pld;
Modified: trunk/src/pld/virtex2.c
===================================================================
--- trunk/src/pld/virtex2.c 2009-05-11 04:22:15 UTC (rev 1709)
+++ trunk/src/pld/virtex2.c 2009-05-11 04:25:09 UTC (rev 1710)
@@ -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);
Modified: trunk/src/pld/virtex2.h
===================================================================
--- trunk/src/pld/virtex2.h 2009-05-11 04:22:15 UTC (rev 1709)
+++ trunk/src/pld/virtex2.h 2009-05-11 04:25:09 UTC (rev 1710)
@@ -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
{
Modified: trunk/src/pld/xilinx_bit.c
===================================================================
--- trunk/src/pld/xilinx_bit.c 2009-05-11 04:22:15 UTC (rev 1709)
+++ trunk/src/pld/xilinx_bit.c 2009-05-11 04:25:09 UTC (rev 1710)
@@ -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)
{
Modified: trunk/src/svf/svf.c
===================================================================
--- trunk/src/svf/svf.c 2009-05-11 04:22:15 UTC (rev 1709)
+++ trunk/src/svf/svf.c 2009-05-11 04:25:09 UTC (rev 1710)
@@ -33,22 +33,10 @@
#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
{
Modified: trunk/src/xsvf/xsvf.c
===================================================================
--- trunk/src/xsvf/xsvf.c 2009-05-11 04:22:15 UTC (rev 1709)
+++ trunk/src/xsvf/xsvf.c 2009-05-11 04:25:09 UTC (rev 1710)
@@ -42,22 +42,11 @@
#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>
-
/* XSVF commands, from appendix B of xapp503.pdf */
#define XCOMPLETE 0x00
#define XTDOMASK 0x01
|