Skip to content

Commit

Permalink
Remove some #include directives
Browse files Browse the repository at this point in the history
Using Visual Studio's #include diagnostics feature.
  • Loading branch information
bradharding committed Oct 10, 2024
1 parent df44f40 commit 0a9220b
Show file tree
Hide file tree
Showing 49 changed files with 1 addition and 113 deletions.
1 change: 0 additions & 1 deletion src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*/

#include <math.h>
#include <string.h>

#include "am_map.h"
#include "c_cmds.h"
Expand Down
2 changes: 0 additions & 2 deletions src/c_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include "c_cmds.h"
#include "c_console.h"
#include "d_deh.h"
#include "d_main.h"
#include "doomstat.h"
#include "g_game.h"
#include "hu_stuff.h"
Expand All @@ -58,7 +57,6 @@
#include "m_misc.h"
#include "p_spec.h"
#include "s_sound.h"
#include "st_stuff.h"
#include "v_video.h"
#include "version.h"
#include "w_wad.h"
Expand Down
1 change: 0 additions & 1 deletion src/d_deh.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include "sounds.h"
#include "sprites.h"
#include "states.h"
#include "v_video.h"
#include "version.h"
#include "w_wad.h"
#include "z_zone.h"
Expand Down
1 change: 0 additions & 1 deletion src/d_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "d_main.h"
#include "doomstat.h"
#include "g_game.h"
#include "i_system.h"
#include "i_timer.h"
#include "m_config.h"
#include "m_menu.h"
Expand Down
2 changes: 0 additions & 2 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@

#include <Windows.h>
#include <commdlg.h>
#include <mmsystem.h>
#include <ShellAPI.h>
#endif

#include "am_map.h"
Expand Down
1 change: 0 additions & 1 deletion src/dstrings.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*/

#include "d_deh.h"
#include "dstrings.h"

char **endmsg[] =
{
Expand Down
1 change: 0 additions & 1 deletion src/f_finale.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#include "v_video.h"
#include "w_wad.h"
#include "wi_stuff.h"
#include "z_zone.h"

#define TEXTSPEED (3 * FRACUNIT) // original value
#define TEXTWAIT (250 * FRACUNIT) // original value
Expand Down
2 changes: 0 additions & 2 deletions src/f_wipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
==============================================================================
*/

#include <string.h>

#include "m_random.h"
#include "v_video.h"

Expand Down
7 changes: 0 additions & 7 deletions src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,8 @@
#if defined(_WIN32)
#include <Windows.h>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>

#if defined(_MSC_VER)
#include <direct.h>
#endif

#else
#include <sys/stat.h>
#include <sys/types.h>
Expand All @@ -60,7 +55,6 @@
#include "i_controller.h"
#include "i_system.h"
#include "i_timer.h"
#include "m_cheat.h"
#include "m_config.h"
#include "m_menu.h"
#include "m_misc.h"
Expand All @@ -72,7 +66,6 @@
#include "s_sound.h"
#include "st_stuff.h"
#include "v_video.h"
#include "w_wad.h"
#include "wi_stuff.h"

static void G_DoReborn(void);
Expand Down
4 changes: 0 additions & 4 deletions src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include <ctype.h>

#include "am_map.h"
#include "c_cmds.h"
#include "c_console.h"
#include "d_deh.h"
Expand All @@ -46,17 +45,14 @@
#include "i_swap.h"
#include "i_timer.h"
#include "m_argv.h"
#include "m_cheat.h"
#include "m_config.h"
#include "m_menu.h"
#include "m_misc.h"
#include "p_local.h"
#include "p_setup.h"
#include "sounds.h"
#include "st_stuff.h"
#include "v_video.h"
#include "w_wad.h"
#include "z_zone.h"

#define STSTR_BEHOLD2 "inVuln, bSrk, Inviso, Rad, Allmap or Lite-amp?"

Expand Down
2 changes: 0 additions & 2 deletions src/i_colors.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
==============================================================================
*/

#include <stdlib.h>

#include "doomstat.h"
#include "i_colors.h"
#include "i_swap.h"
#include "w_wad.h"
Expand Down
4 changes: 0 additions & 4 deletions src/i_music.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,15 @@
==============================================================================
*/

#include <string.h>

#include "SDL_mixer.h"

#include "c_console.h"
#include "doomstat.h"
#include "i_winmusic.h"
#include "m_config.h"
#include "m_misc.h"
#include "memio.h"
#include "mus2mid.h"
#include "s_sound.h"
#include "version.h"
#include "w_wad.h"
#include "z_zone.h"

Expand Down
3 changes: 0 additions & 3 deletions src/i_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@
==============================================================================
*/

#include <string.h>

#include "SDL_mixer.h"

#include "c_console.h"
#include "i_system.h"
#include "m_config.h"
#include "s_sound.h"
#include "version.h"
Expand Down
2 changes: 0 additions & 2 deletions src/i_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#if defined(_WIN32)
#include <Windows.h>
#include <ShellAPI.h>
#else
#include <unistd.h>
#endif
Expand All @@ -45,7 +44,6 @@
#include "doomstat.h"
#include "i_controller.h"
#include "i_system.h"
#include "i_timer.h"
#include "m_config.h"
#include "m_misc.h"
#include "s_sound.h"
Expand Down
2 changes: 1 addition & 1 deletion src/i_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
==============================================================================
*/

#include "SDL.h"
#include "SDL_timer.h"

#include "doomdef.h"

Expand Down
2 changes: 0 additions & 2 deletions src/i_winmusic.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
#include "SDL_mixer.h"

#include "c_console.h"
#include "doomtype.h"
#include "m_config.h"
#include "m_misc.h"
#include "midifile.h"

// Macros for use with the Windows MIDIEVENT dwEvent field.
Expand Down
5 changes: 0 additions & 5 deletions src/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
==============================================================================
*/

#include <ctype.h>
#include <stdlib.h>
#include <string.h>

#include "doomstat.h"
#include "i_system.h"
#include "info.h"
#include "p_local.h"
Expand Down
2 changes: 0 additions & 2 deletions src/m_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
==============================================================================
*/

#include <ctype.h>
#include <string.h>

#include "c_cmds.h"
Expand All @@ -42,7 +41,6 @@
#include "d_main.h"
#include "doomstat.h"
#include "g_game.h"
#include "i_controller.h"
#include "m_argv.h"
#include "m_config.h"
#include "m_misc.h"
Expand Down
2 changes: 0 additions & 2 deletions src/m_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
*/

#include <ctype.h>
#include <stdlib.h>
#include <string.h>

#include "doomtype.h"
#include "i_colors.h"
Expand Down
1 change: 0 additions & 1 deletion src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
#include "v_video.h"
#include "version.h"
#include "w_wad.h"
#include "z_zone.h"

#define SPACEWIDTH 7
#define LINEHEIGHT 17
Expand Down
4 changes: 0 additions & 4 deletions src/m_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#pragma warning( disable : 4091 )

#include <Windows.h>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>

#if defined(_MSC_VER)
Expand All @@ -60,8 +58,6 @@
#include "i_system.h"
#include "m_config.h"
#include "m_misc.h"
#include "version.h"
#include "w_file.h"

#if defined(__APPLE__)
#import <Cocoa/Cocoa.h>
Expand Down
2 changes: 0 additions & 2 deletions src/md5.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
*/

#include <stdio.h>
#include <string.h>
#include <sys/types.h>

#include "m_misc.h"
#include "md5.h"
Expand Down
2 changes: 0 additions & 2 deletions src/midifile.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
*/

#if defined(_WIN32)
#include <string.h>

#include "doomtype.h"
#include "i_system.h"
#include "midifile.h"
Expand Down
4 changes: 0 additions & 4 deletions src/mus2mid.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,10 @@
==============================================================================
*/

#include <stdio.h>
#include <string.h>

#include "doomdef.h"
#include "doomtype.h"
#include "i_swap.h"
#include "memio.h"
#include "mus2mid.h"

#define NUM_CHANNELS 16

Expand Down
1 change: 0 additions & 1 deletion src/p_ceiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "doomstat.h"
#include "m_config.h"
#include "p_fix.h"
#include "p_local.h"
#include "p_setup.h"
#include "p_tick.h"
#include "s_sound.h"
Expand Down
1 change: 0 additions & 1 deletion src/p_enemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include "m_config.h"
#include "m_misc.h"
#include "m_random.h"
#include "p_inter.h"
#include "p_local.h"
#include "p_setup.h"
#include "p_tick.h"
Expand Down
1 change: 0 additions & 1 deletion src/p_floor.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*/

#include "doomstat.h"
#include "m_config.h"
#include "p_fix.h"
#include "p_local.h"
#include "p_setup.h"
Expand Down
2 changes: 0 additions & 2 deletions src/p_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
==============================================================================
*/

#include <ctype.h>

#include "am_map.h"
#include "c_cmds.h"
#include "c_console.h"
Expand Down
1 change: 0 additions & 1 deletion src/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
==============================================================================
*/

#include <math.h>
#include <ctype.h>

#include "am_map.h"
Expand Down
2 changes: 0 additions & 2 deletions src/p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@
#include "doomstat.h"
#include "g_game.h"
#include "hu_stuff.h"
#include "i_colors.h"
#include "m_config.h"
#include "m_misc.h"
#include "m_random.h"
#include "p_inter.h"
#include "p_local.h"
#include "p_setup.h"
#include "p_tick.h"
Expand Down
2 changes: 0 additions & 2 deletions src/p_spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
==============================================================================
*/

#include <ctype.h>

#include "c_console.h"
#include "d_deh.h"
#include "doomstat.h"
Expand Down
2 changes: 0 additions & 2 deletions src/p_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
==============================================================================
*/

#include <string.h>

#include "c_console.h"
#include "doomstat.h"
#include "g_game.h"
Expand Down
3 changes: 0 additions & 3 deletions src/r_bsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
==============================================================================
*/

#include <stdlib.h>
#include <string.h>

#include "doomstat.h"
#include "m_bbox.h"
#include "m_config.h"
Expand Down
7 changes: 0 additions & 7 deletions src/r_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,7 @@
==============================================================================
*/

#include <string.h>

#include "c_console.h"
#include "doomstat.h"
#include "i_colors.h"
#include "m_config.h"
#include "m_random.h"
#include "r_local.h"
#include "st_stuff.h"
#include "v_video.h"

Expand Down
Loading

0 comments on commit 0a9220b

Please sign in to comment.