Skip to content

Commit 37d5185

Browse files
committed
more cleanups
1 parent 7739c9d commit 37d5185

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+53
-48
lines changed

d_main.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
#include <fcntl.h>
55
#include <sys/types.h>
66
#include <sys/stat.h>
7-
#include "d_think.h"
87
#include "doomdef.h"
8+
#include "d_think.h"
9+
#include "p_pspr.h"
910
#include "doomtype.h"
1011
#include "doomstat.h"
1112
#include "d_englsh.h"

d_player.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define __D_PLAYER__
33

44
#include "d_items.h"
5-
#include "p_pspr.h"
65
#include "p_mobj.h"
76
#include "d_main.h"
87

doomdef.h

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#ifndef __DOOMDEF__
22
#define __DOOMDEF__
33

4-
#ifndef __GNUC__
5-
#define __attribute__(x)
6-
#endif
7-
84
#define MAX_SCREENWIDTH 2048
95
#define MAX_SCREENHEIGHT 1536
106
#define MAXPLAYERS 4

doomstat.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56

67
GameMode_t gamemode = indetermined;

doomtype.h

-27
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,6 @@ typedef unsigned long long uint_64_t;
1818

1919
#include <limits.h>
2020

21-
typedef enum
22-
{
23-
24-
doom_12_compatibility,
25-
doom_1666_compatibility,
26-
doom2_19_compatibility,
27-
ultdoom_compatibility,
28-
finaldoom_compatibility,
29-
dosdoom_compatibility,
30-
tasdoom_compatibility,
31-
boom_compatibility_compatibility,
32-
boom_201_compatibility,
33-
boom_202_compatibility,
34-
lxdoom_1_compatibility,
35-
mbf_compatibility,
36-
prboom_1_compatibility,
37-
prboom_2_compatibility,
38-
prboom_3_compatibility,
39-
prboom_4_compatibility,
40-
prboom_5_compatibility,
41-
prboom_6_compatibility,
42-
MAX_COMPATIBILITY_LEVEL,
43-
boom_compatibility = boom_201_compatibility,
44-
best_compatibility = prboom_6_compatibility
45-
46-
} complevel_t;
47-
4821
enum patch_translation_e
4922
{
5023

f_finale.c

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <ctype.h>
55
#include "doomdef.h"
66
#include "d_think.h"
7+
#include "p_pspr.h"
78
#include "doomstat.h"
89
#include "d_event.h"
910
#include "v_video.h"

f_finale.h

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#ifndef __F_FINALE__
22
#define __F_FINALE__
33

4-
#include "doomtype.h"
5-
#include "d_event.h"
6-
74
boolean F_Responder(event_t *ev);
85

96
void F_Ticker(void);

g_game.c

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <fcntl.h>
66
#include "doomdef.h"
77
#include "d_think.h"
8+
#include "p_pspr.h"
89
#include "doomstat.h"
910
#include "f_finale.h"
1011
#include "m_misc.h"

g_game.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef __G_GAME__
22
#define __G_GAME__
33

4-
#include "doomdef.h"
5-
64
#define GAME_OPTION_SIZE 64
75

86
boolean G_Responder(event_t *ev);

hu_stuff.c

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <ctype.h>
55
#include "doomdef.h"
66
#include "d_think.h"
7+
#include "p_pspr.h"
78
#include "doomstat.h"
89
#include "hu_stuff.h"
910
#include "i_video.h"

hu_stuff.h

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "d_event.h"
55
#include "r_defs.h"
6-
#include "v_video.h"
76

87
#define HU_FONTSTART '!'
98
#define HU_FONTEND 0x7f

m_cheat.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <ctype.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "g_game.h"
78
#include "r_data.h"

m_menu.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <stdio.h>
22
#include <fcntl.h>
3-
#include "d_think.h"
43
#include "doomdef.h"
4+
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "d_englsh.h"
78
#include "d_main.h"

m_misc.c

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <sys/stat.h>
88
#include "doomdef.h"
99
#include "d_think.h"
10+
#include "p_pspr.h"
1011
#include "doomstat.h"
1112
#include "g_game.h"
1213
#include "m_menu.h"

m_random.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "m_random.h"
67

p_ceilng.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "r_main.h"
78
#include "p_spec.h"

p_doors.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "p_spec.h"
78
#include "p_tick.h"

p_enemy.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "m_random.h"
67
#include "r_main.h"

p_floor.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "r_main.h"
78
#include "p_map.h"

p_genlin.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "r_main.h"
78
#include "p_spec.h"

p_inter.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "d_event.h"
67
#include "d_englsh.h"

p_lights.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
6-
#include "doomdef.h"
77
#include "m_random.h"
88
#include "r_main.h"
99
#include "p_spec.h"

p_map.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "r_main.h"
67
#include "p_mobj.h"

p_maputl.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "r_main.h"
67
#include "p_maputl.h"

p_mobj.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <stdlib.h>
22
#include <string.h>
3-
#include "d_think.h"
43
#include "doomdef.h"
4+
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "m_random.h"
78
#include "r_main.h"

p_plats.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "m_random.h"
78
#include "r_main.h"

p_pspr.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "r_main.h"
67
#include "p_map.h"

p_setup.c

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <math.h>
55
#include "doomdef.h"
66
#include "d_think.h"
7+
#include "p_pspr.h"
78
#include "doomstat.h"
89
#include "g_game.h"
910
#include "w_wad.h"

p_sight.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "r_main.h"
67
#include "p_map.h"

p_spec.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "p_spec.h"
78
#include "p_tick.h"

p_switch.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "w_wad.h"
67
#include "r_main.h"

p_telept.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <stdlib.h>
22
#include <string.h>
3-
#include "d_think.h"
43
#include "doomdef.h"
4+
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "p_spec.h"
78
#include "p_maputl.h"

p_tick.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "p_user.h"
67
#include "p_spec.h"

p_user.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include "doomdef.h"
33
#include "d_think.h"
4+
#include "p_pspr.h"
45
#include "doomstat.h"
56
#include "d_event.h"
67
#include "r_main.h"

r_bsp.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "r_main.h"
78
#include "r_segs.h"

r_data.c

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <string.h>
44
#include "doomdef.h"
55
#include "d_think.h"
6+
#include "p_pspr.h"
67
#include "doomstat.h"
78
#include "w_wad.h"
89
#include "r_draw.h"

r_draw.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "w_wad.h"
78
#include "r_main.h"

r_main.c

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <math.h>
44
#include "doomdef.h"
55
#include "d_think.h"
6+
#include "p_pspr.h"
67
#include "doomstat.h"
78
#include "d_main.h"
89
#include "w_wad.h"

r_patch.c

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <assert.h>
44
#include "doomdef.h"
55
#include "d_think.h"
6+
#include "p_pspr.h"
67
#include "z_zone.h"
78
#include "doomstat.h"
89
#include "w_wad.h"

r_plane.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "z_zone.h"
67
#include "doomstat.h"
78
#include "w_wad.h"

r_segs.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "r_main.h"
78
#include "r_bsp.h"

r_things.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <string.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "w_wad.h"
78
#include "r_main.h"

s_sound.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <stdio.h>
33
#include "doomdef.h"
44
#include "d_think.h"
5+
#include "p_pspr.h"
56
#include "doomstat.h"
67
#include "s_sound.h"
78
#include "i_sound.h"

sdl/i_sound.c

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "i_system.h"
1414
#include "s_sound.h"
1515
#include "doomdef.h"
16+
#include "p_pspr.h"
1617
#include "doomstat.h"
1718
#include "doomtype.h"
1819
#include "d_main.h"

0 commit comments

Comments
 (0)