kopia lustrzana https://github.com/Hamlib/Hamlib
Apply fixes suggested by iwyu
Removes unused includes and adds missing includes.pull/1808/head
rodzic
7fe36ebdd6
commit
2fab137fc5
|
@ -18,12 +18,15 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "amplifier.h"
|
||||
#include "kpa.h"
|
||||
#include "hamlib/port.h"
|
||||
#include "hamlib/amp_state.h"
|
||||
#include "iofunc.h"
|
||||
|
||||
struct fault_list
|
||||
{
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#define _AMP_ELECRAFT_H 1
|
||||
|
||||
#include <hamlib/amplifier.h>
|
||||
#include <iofunc.h>
|
||||
|
||||
// Is this big enough?
|
||||
#define KPABUFSZ 100
|
||||
|
|
|
@ -25,16 +25,16 @@
|
|||
// SYSTEM INCLUDES
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// HAMLIB INCLUDES
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#include "config.h"
|
||||
#include <hamlib/rig.h>
|
||||
#include "serial.h"
|
||||
#include "misc.h"
|
||||
|
|
|
@ -3,9 +3,8 @@
|
|||
* idk, copyright and GPL here
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <hamlib/rig.h>
|
||||
#include <register.h>
|
||||
|
|
|
@ -3,9 +3,7 @@
|
|||
* idk, copyright and GPL here
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <hamlib/rig.h>
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -19,9 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h> /* String function definitions */
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
|
@ -33,8 +32,6 @@
|
|||
#include "cache.h"
|
||||
#include "tones.h"
|
||||
#include "bandplan.h"
|
||||
#include "cal.h"
|
||||
|
||||
|
||||
typedef struct pmr171_data_s
|
||||
{
|
||||
|
|
|
@ -19,9 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h> /* String function definitions */
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
|
@ -33,7 +32,6 @@
|
|||
#include "cache.h"
|
||||
#include "tones.h"
|
||||
#include "bandplan.h"
|
||||
#include "cal.h"
|
||||
|
||||
typedef struct q900_data_s
|
||||
{
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "icom_defs.h"
|
||||
#include "frame.h"
|
||||
#include "misc.h"
|
||||
#include "cache.h"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <hamlib/rig.h>
|
||||
|
|
|
@ -512,8 +512,6 @@ static const char *dwtdll_get_info(RIG *rig)
|
|||
# include <libusb-1.0/libusb.h>
|
||||
#endif
|
||||
|
||||
#include "token.h"
|
||||
|
||||
|
||||
#define USB_VID_CT 0x1539 /* AFG Engineering */
|
||||
#define USB_PID_CT_DWT 0x1730 /* Digital World Traveller */
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "hamlib/rig.h"
|
||||
#include "misc.h"
|
||||
|
||||
#define BACKEND_VER "20210830"
|
||||
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "hamlib/rig.h"
|
||||
#include "iofunc.h"
|
||||
#include "misc.h"
|
||||
#include "num_stdio.h"
|
||||
|
||||
#include "xk852.h"
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h> /* String function definitions */
|
||||
|
||||
#include "hamlib/rig.h"
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
|
|
@ -24,11 +24,12 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
#include <string.h>
|
||||
|
||||
#include "hamlib/rig.h"
|
||||
#include "misc.h"
|
||||
#include "newcat.h"
|
||||
#include "bandplan.h"
|
||||
#include "idx_builtin.h"
|
||||
#include "newcat.h"
|
||||
#include "yaesu.h"
|
||||
#include "ft5000.h"
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "iofunc.h"
|
||||
#include "misc.h"
|
||||
#include "yaesu.h"
|
||||
#include "tones.h"
|
||||
#include "cache.h"
|
||||
|
||||
#define FT736_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM|RIG_MODE_FMN|RIG_MODE_CWN)
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
|
||||
#include "hamlib/rig.h"
|
||||
#include "iofunc.h"
|
||||
#include "misc.h"
|
||||
#include "yaesu.h"
|
||||
|
||||
#define VR5000_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_AM|RIG_MODE_FM|RIG_MODE_WFM)
|
||||
|
|
|
@ -25,14 +25,9 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h> /* String function definitions */
|
||||
#include <unistd.h> /* UNIX standard function definitions */
|
||||
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
#include "hamlib/rotator.h"
|
||||
#include "hamlib/port.h"
|
||||
#include "hamlib/rot_state.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include <hamlib/config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
#include <hamlib/config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
#include <strings.h>
|
||||
|
||||
#include <hamlib/rig.h>
|
||||
#include "hamlib/port.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
#include <hamlib/config.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
|
||||
#include <hamlib/config.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <hamlib/rig.h>
|
||||
#include <hamlib/config.h>
|
||||
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
#include <unistd.h> /* UNIX standard function definitions */
|
||||
#include <fcntl.h> /* File control definitions */
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#include <hamlib/config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#ifndef _PARALLEL_H
|
||||
#define _PARALLEL_H 1
|
||||
|
||||
#include "config.h"
|
||||
#include <hamlib/rig.h>
|
||||
#include "iofunc.h"
|
||||
|
||||
#ifdef HAVE_PARALLEL
|
||||
#ifdef HAVE_LINUX_PARPORT_H
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "mutex.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <hamlib/config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
|
||||
|
|
|
@ -33,10 +33,10 @@
|
|||
|
||||
#include <hamlib/config.h>
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h> /* String function definitions */
|
||||
#include <strings.h>
|
||||
|
||||
#include <hamlib/rig.h>
|
||||
#include "hamlib/port.h"
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
# if defined(HAVE_READLINE_READLINE_H)
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <hamlib/rig.h>
|
||||
|
||||
#ifdef HAVE_XML2
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <hamlib/rig.h>
|
||||
#include <misc.h>
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <rig_tests.h>
|
||||
|
||||
// If true adds some debug statements to see flow of rigctl parsing
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <getopt.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
# if defined(HAVE_READLINE_READLINE_H)
|
||||
|
|
Ładowanie…
Reference in New Issue