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:
parent
afe2f28e65
commit
545f978639
|
@ -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"
|
||||
|
||||
|
|
1
device.c
1
device.c
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include <libusb.h>
|
||||
#include "libsigrok.h"
|
||||
#include "libsigrok-internal.h"
|
||||
#include "config.h"
|
||||
#include "dso.h"
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include "libsigrok.h"
|
||||
#include "libsigrok-internal.h"
|
||||
#include "config.h"
|
||||
#include "dso.h"
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
#include "config.h"
|
||||
#include "libsigrok.h"
|
||||
#include "libsigrok-internal.h"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue