config.h usage cleanups.

- Drop config.h #include from files that don't actually use any of
   its contents (at the moment).

 - Add comment for those that do need it.
This commit is contained in:
Uwe Hermann 2012-10-24 00:41:21 +02:00
parent afe2f28e65
commit 545f978639
21 changed files with 9 additions and 18 deletions

View File

@ -19,6 +19,7 @@
*/
#include <glib.h>
#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"

View File

@ -19,6 +19,7 @@
#include <stdio.h>
#include <glib.h>
#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"

View File

@ -20,7 +20,6 @@
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "agilent-dmm.h"
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -20,7 +20,6 @@
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "agilent-dmm.h"
#include <stdlib.h>
#include <string.h>

View File

@ -20,7 +20,6 @@
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "fluke-dmm.h"
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -20,7 +20,6 @@
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "fluke-dmm.h"
#include <stdlib.h>
#include <math.h>

View File

@ -23,7 +23,6 @@
#include <string.h>
#include <inttypes.h>
#include <libusb.h>
#include "config.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "fx2lafw.h"

View File

@ -31,7 +31,6 @@
#include <libusb.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "dso.h"

View File

@ -21,7 +21,6 @@
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "dso.h"
#include <string.h>
#include <glib.h>

View File

@ -21,7 +21,6 @@
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "radioshack-dmm.h"
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -21,7 +21,6 @@
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "config.h"
#include "radioshack-dmm.h"
#include <stdlib.h>
#include <math.h>

View File

@ -24,7 +24,6 @@
#include <inttypes.h>
#include <glib.h>
#include <libusb.h>
#include "config.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "analyzer.h"

View File

@ -23,6 +23,7 @@
#include <dirent.h>
#include <string.h>
#include <glib.h>
#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"

View File

@ -96,8 +96,8 @@ SR_PRIV struct sr_probe *sr_probe_new(int index, int type,
SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int index, int status,
const char *vendor, const char *model, const char *version);
SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi);
#ifdef HAVE_LIBUSB_1_0
#ifdef HAVE_LIBUSB_1_0
/* USB-specific instances */
SR_PRIV struct sr_usb_dev_inst *sr_usb_dev_inst_new(uint8_t bus,
uint8_t address, struct libusb_device_handle *hdl);

View File

@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <math.h>

View File

@ -21,7 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "config.h" /* Needed for PACKAGE_STRING and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"

View File

@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"

View File

@ -21,7 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "config.h" /* Needed for PACKAGE_STRING and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"

View File

@ -22,7 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "config.h" /* Needed for PACKAGE_STRING and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "text.h"

View File

@ -22,7 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "config.h" /* Needed for PACKAGE and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"

View File

@ -23,7 +23,7 @@
#include <zip.h>
#include <glib.h>
#include <glib/gstdio.h>
#include "config.h"
#include "config.h" /* Needed for PACKAGE_VERSION and others. */
#include "libsigrok.h"
#include "libsigrok-internal.h"