Various #include file cosmetic fixes.

Generally include system headers before local headers, unless there's
a technical reason to use another order.
This commit is contained in:
Uwe Hermann 2015-03-23 20:18:39 +01:00
parent 98fec29ecb
commit 515ab0889e
27 changed files with 47 additions and 63 deletions

View File

@ -18,13 +18,13 @@
*/
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "agilent-dmm.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "agilent-dmm.h"
static void dispatch(const struct sr_dev_inst *sdi)
{

View File

@ -17,15 +17,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "gpio.h"
#include <glib.h>
#include <glib/gstdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "gpio.h"
#define LOG_PREFIX "gpio"

View File

@ -21,14 +21,11 @@
#define BEAGLELOGIC_H_
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <unistd.h>
/* BeagleLogic device node name */

View File

@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "protocol.h"
/* Define data packet size independent of packet (bufunitsize bytes) size
* from the BeagleLogic kernel module */

View File

@ -18,14 +18,14 @@
*/
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "protocol.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "protocol.h"
/* The Colead SL-5868P uses this. */
#define SERIALCOMM "2400/8n1"

View File

@ -19,11 +19,11 @@
#include <stdlib.h>
#include <glib.h>
#include <errno.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "protocol.h"
#include <errno.h>
#include <string.h>
static void process_packet(const struct sr_dev_inst *sdi)
{

View File

@ -19,12 +19,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "dso.h"
#include <string.h>
#include <glib.h>
#include <libusb.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "dso.h"
extern struct sr_dev_driver hantek_dso_driver_info;

View File

@ -27,7 +27,6 @@
#include <errno.h>
#include <math.h>
#include <string.h>
#include "protocol.h"
/* Forward declarations */

View File

@ -25,7 +25,6 @@
#include <errno.h>
#include <string.h>
#include "protocol.h"
/** Send data packets for current measurements. */

View File

@ -23,7 +23,6 @@
* @internal
*/
#ifndef LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
#define LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
@ -32,7 +31,6 @@
#include "libsigrok.h"
#include "libsigrok-internal.h"
SR_PRIV int lps_process_status(struct sr_dev_inst* sdi, int stat);
SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char* fmt, ...);

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include <libserialport.h>
#include "protocol.h"
#define SERIALCOMM "115200/8n1"

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include <libserialport.h>
#include "protocol.h"
extern SR_PRIV struct sr_dev_driver ols_driver_info;

View File

@ -20,11 +20,6 @@
#ifndef LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
#define LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
#define USB_VENDOR_ID 0x0403
#define USB_DEVICE_ID 0x6010
#define USB_VENDOR_NAME "Saanlima"
#define USB_IPRODUCT "Pipistrello LX45"
#include <stdint.h>
#include <string.h>
#include <glib.h>
@ -34,6 +29,11 @@
#define LOG_PREFIX "p-ols"
#define USB_VENDOR_ID 0x0403
#define USB_DEVICE_ID 0x6010
#define USB_VENDOR_NAME "Saanlima"
#define USB_IPRODUCT "Pipistrello LX45"
#define FTDI_BUF_SIZE (16 * 1024)
#define NUM_CHANNELS 32

View File

@ -19,8 +19,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include <stdint.h>
#include <string.h>
#include <glib.h>
@ -30,6 +28,7 @@
#include <math.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "protocol.h"
#define FPGA_FIRMWARE_18 FIRMWARE_DIR"/saleae-logic16-fpga-18.bitstream"
#define FPGA_FIRMWARE_33 FIRMWARE_DIR"/saleae-logic16-fpga-33.bitstream"

View File

@ -17,13 +17,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <glib.h>
#include <libusb.h>
#include <stdlib.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "protocol.h"
static const uint32_t scanopts[] = {
SR_CONF_CONN,

View File

@ -17,11 +17,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "lwla.h"
#include "protocol.h"
#include "libsigrok-internal.h"
#include <errno.h>
#include <glib/gstdio.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "protocol.h"
#include "lwla.h"
#define BITSTREAM_MAX_SIZE (256 * 1024) /* bitstream size limit for safety */
#define BITSTREAM_HEADER_SIZE 4 /* transfer header size in bytes */

View File

@ -20,10 +20,10 @@
#ifndef LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
#define LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
#include "libsigrok.h"
#include <stdint.h>
#include <libusb.h>
#include <glib.h>
#include "libsigrok.h"
struct sr_usb_dev_inst;

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include <string.h>
#include "protocol.h"
/* Bit mask for the RLE repeat-count-follows flag. */
#define RLE_FLAG_LEN_FOLLOWS ((uint64_t)1 << 35)

View File

@ -22,11 +22,11 @@
#define LOG_PREFIX "sysclk-lwla"
#include "lwla.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <stdint.h>
#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include "lwla.h"
/* For now, only the LWLA1034 is supported.
*/

View File

@ -17,9 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include <string.h>
#include "protocol.h"
static const uint32_t devopts[] = {
SR_CONF_THERMOMETER,

View File

@ -17,10 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "protocol.h"
#include <string.h>
#include <math.h>
#include "protocol.h"
extern struct sr_dev_driver uni_t_ut32x_driver_info;

View File

@ -17,11 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <glib.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi"

View File

@ -17,11 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <gpib/ib.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_gpib"

View File

@ -18,12 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_serial"

View File

@ -22,10 +22,6 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <glib.h>
#include <string.h>
#include <unistd.h>
@ -36,6 +32,8 @@
#include <netdb.h>
#endif
#include <errno.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_tcp"

View File

@ -17,11 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
#include <visa.h>
#include <string.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"
#define LOG_PREFIX "scpi_visa"

View File

@ -22,7 +22,6 @@
#include <rpc/rpc.h>
#include <string.h>
#include "vxi.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"