improve all includes using iwyu
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
*/
|
||||
|
||||
#include "classic.h"
|
||||
#include "dynamics.h"
|
||||
#include "events.h"
|
||||
#include "dynamics.h" // for calc_joystick_state
|
||||
#include "events.h" // for handshake_expansion
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h> // for malloc
|
||||
#include <string.h> // for memset
|
||||
|
||||
static void classic_ctrl_pressed_buttons(struct classic_ctrl_t* cc, short now);
|
||||
|
||||
|
||||
@@ -36,11 +36,9 @@
|
||||
*/
|
||||
|
||||
#include "dynamics.h"
|
||||
#include "ir.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <math.h> // for atan2f, atanf, sqrt
|
||||
#include <stdlib.h> // for abs
|
||||
|
||||
|
||||
/**
|
||||
|
||||
27
src/events.c
27
src/events.c
@@ -36,23 +36,24 @@
|
||||
|
||||
#include "wiiuse_internal.h"
|
||||
#include "events.h"
|
||||
#include "io.h"
|
||||
#include "dynamics.h"
|
||||
#include "ir.h"
|
||||
#include "nunchuk.h"
|
||||
#include "classic.h"
|
||||
#include "guitar_hero_3.h"
|
||||
#include "wiiboard.h"
|
||||
|
||||
#include "classic.h" // for classic_ctrl_disconnected, etc
|
||||
#include "dynamics.h" // for calculate_gforce, etc
|
||||
#include "guitar_hero_3.h" // for guitar_hero_3_disconnected, etc
|
||||
#include "ir.h" // for calculate_basic_ir, etc
|
||||
#include "nunchuk.h" // for nunchuk_disconnected, etc
|
||||
#include "wiiboard.h" // for wii_board_disconnected, etc
|
||||
|
||||
#ifndef WIIUSE_WIN32
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <sys/time.h> // for timeval
|
||||
#include <sys/select.h> // for select, fd_set
|
||||
#include <unistd.h> // for read
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <errno.h> // for errno
|
||||
#include <stdio.h> // for printf, perror
|
||||
#include <stdlib.h> // for free, malloc
|
||||
#include <string.h> // for memcpy, memset
|
||||
|
||||
static void idle_cycle(struct wiimote_t* wm);
|
||||
static void clear_dirty_reads(struct wiimote_t* wm);
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
#include "guitar_hero_3.h"
|
||||
|
||||
#include "dynamics.h"
|
||||
#include "events.h"
|
||||
#include "dynamics.h" // for calc_joystick_state
|
||||
#include "events.h" // for handshake_expansion
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h> // for malloc
|
||||
#include <string.h> // for memset
|
||||
|
||||
static void guitar_hero_3_pressed_buttons(struct guitar_hero_3_t* gh3, short now);
|
||||
|
||||
|
||||
2
src/io.c
2
src/io.c
@@ -32,7 +32,7 @@
|
||||
*/
|
||||
#include "io.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdlib.h> // for free, malloc
|
||||
|
||||
|
||||
/**
|
||||
|
||||
17
src/io_nix.c
17
src/io_nix.c
@@ -35,14 +35,17 @@
|
||||
|
||||
#ifdef WIIUSE_BLUEZ
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/hci.h>
|
||||
#include <bluetooth/hci_lib.h>
|
||||
#include <bluetooth/l2cap.h>
|
||||
#include <bluetooth/bluetooth.h> // for ba2str, str2ba
|
||||
#include <bluetooth/hci.h> // for inquiry_info
|
||||
#include <bluetooth/hci_lib.h> // for hci_get_route, hci_inquiry, etc
|
||||
#include <bluetooth/l2cap.h> // for sockaddr_l2
|
||||
|
||||
#include <stdio.h> // for perror
|
||||
#include <string.h> // for memset
|
||||
#include <sys/socket.h> // for connect, socket
|
||||
#include <unistd.h> // for close, write
|
||||
#include <errno.h>
|
||||
|
||||
static int wiiuse_connect_single(struct wiimote_t* wm, char* address);
|
||||
|
||||
|
||||
5
src/ir.c
5
src/ir.c
@@ -33,10 +33,9 @@
|
||||
|
||||
#include "ir.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <math.h> // for atanf, cos, sin, sqrt
|
||||
#ifndef WIIUSE_WIN32
|
||||
#include <unistd.h>
|
||||
#include <unistd.h> // for usleep
|
||||
#endif
|
||||
|
||||
static int get_ir_sens(struct wiimote_t* wm, char** block1, char** block2);
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
|
||||
#include "nunchuk.h"
|
||||
#include "dynamics.h"
|
||||
#include "events.h"
|
||||
#include "dynamics.h" // for calc_joystick_state, etc
|
||||
#include "events.h" // for handshake_expansion
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h> // for malloc
|
||||
#include <string.h> // for memset
|
||||
|
||||
|
||||
static void nunchuk_pressed_buttons(struct nunchuk_t* nc, byte now);
|
||||
|
||||
@@ -33,11 +33,9 @@
|
||||
|
||||
|
||||
#include "wiiboard.h"
|
||||
#include "dynamics.h"
|
||||
#include "events.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h> // for printf
|
||||
#include <string.h> // for memset
|
||||
|
||||
/**
|
||||
* @brief Handle the handshake data from the wiiboard.
|
||||
|
||||
11
src/wiiuse.c
11
src/wiiuse.c
@@ -36,14 +36,11 @@
|
||||
*/
|
||||
|
||||
#include "wiiuse_internal.h"
|
||||
#include "events.h"
|
||||
#include "io.h"
|
||||
#include "io.h" // for wiiuse_handshake, etc
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef WIIUSE_WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <stdio.h> // for printf, FILE
|
||||
#include <stdlib.h> // for malloc, free
|
||||
#include <string.h> // for memcpy, memset
|
||||
|
||||
static int g_banner = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user