make header files self-consistent (#16)

* am_map.h: include m_fixed.h for the fixed_t typedef

* d_french.h: fix line continuation

* d_main.h: include doomdef.h for the skill_t typedef

* doomstat.h: remove redundant pitched_sounds declaration

* g_game.h: remove redundant G_CheckDemoStatus() declaration

remove redundant G_InitNew() declaration
remove redundant dprintf() declaration

* m_cheat.h: include doomtype.h for the ULong64 and boolean typedefs

* m_misc.h: include doomdef.h for the ss_types typedef

* p_inter.h: remove redundant god_health, idfa_armor, idfa_armor_class, idkfa_armor and idkfa_armor_class declarations

* p_pspr.h: include doomdef.h for the NUMWEAPONS definition

* p_saveg.h: include doomtype.h for the byte typedef

* p_setup.h: include doomdef.h for the skill_t typedef

* p_spec.h: remove redundant T_FireFlicker() and P_RemoveActiveCeiling() declarations

* p_tick.h: include p_mobj.h for the mobj_t typedef

* r_bsp.h: include r_defs.h for the seg_t, side_t, line_t, sector_t, etc. typedefs

* r_draw.h: remove redundant R_DrawTLColumn() declaration

* r_main.h: remove redundant viewwidth, viewheight, *fullcolormap and **colormaps declarations

* r_segs.h: include r_defs.h for the drawseg_t typedef

* r_things.h: include doomdef.h for the MAX_SCREENWIDTH definition

include m_fixed.h for the fixed_t typedef
include r_defs.h for the column_t, sector_t and vissprite_t typedefs

* s_sound.h: include p_mobj.h for the mobj_t typedef

* st_stuff.h: remove redundant ST_Responder() declaration

* wi_stuff.h: include d_player.h for the wbstartstruct_t typedef
This commit is contained in:
Fabian Greffrath 2020-01-06 09:39:22 +01:00 committed by GitHub
parent 733af4072d
commit ac5cebae6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 23 additions and 26 deletions

View File

@ -30,6 +30,7 @@
#define __AMMAP_H__
#include "d_event.h"
#include "m_fixed.h"
// Used by ST StatusBar stuff.
#define AM_MSGHEADER (('a'<<24)+('m'<<16))

View File

@ -277,7 +277,7 @@
//
// F_Finale.C
//
#define E1TEXT
#define E1TEXT \
"APRES AVOIR VAINCU LES GROS MECHANTS\n"\
"ET NETTOYE LA BASE LUNAIRE, VOUS AVEZ\n"\
"GAGNE, NON? PAS VRAI? OU EST DONC VOTRE\n"\

View File

@ -30,6 +30,7 @@
#ifndef __D_MAIN__
#define __D_MAIN__
#include "doomdef.h"
#include "d_event.h"
extern char **wadfiles; // killough 11/98

View File

@ -303,9 +303,6 @@ extern thinker_t thinkercap; // Both the head and tail of the thinker list
//-----------------------------------------------------------------------------
// v1.1-like pitched sounds
extern int pitched_sounds, default_pitched_sounds; // killough 2/21/98
extern int allow_pushers; // MT_PUSH Things // phares 3/10/98
extern int default_allow_pushers;

View File

@ -39,7 +39,6 @@
boolean G_Responder(event_t *ev);
boolean G_CheckDemoStatus(void);
boolean G_CheckDemoStatus(void);
void G_DeathMatchSpawnPlayer(int playernum);
void G_InitNew(skill_t skill, int episode, int map);
void G_DeferedInitNew(skill_t skill, int episode, int map);
@ -63,13 +62,9 @@ void G_DoReborn(int playernum);
byte *G_ReadOptions(byte *demo_p); // killough 3/1/98
byte *G_WriteOptions(byte *demo_p); // killough 3/1/98
void G_PlayerReborn(int player);
void G_InitNew(skill_t skill, int episode, int map);
void G_DoVictory(void);
ULong64 G_Signature(void); // killough 12/98
// killough 1/18/98: Doom-style printf; killough 4/25/98: add gcc attributes
void dprintf(const char *, ...) __attribute__((format(printf,1,2)));
// killough 5/2/98: moved from m_misc.c:
extern int key_right;

View File

@ -29,6 +29,8 @@
#ifndef __M_CHEAT__
#define __M_CHEAT__
#include "doomtype.h"
// killough 4/16/98: Cheat table structure
extern struct cheat_s {

View File

@ -30,6 +30,7 @@
#define __M_MISC__
#include "doomtype.h"
#include "doomdef.h"
//
// MISC

View File

@ -59,11 +59,6 @@ extern int blue_armor_class;
extern int max_soul;
extern int soul_health;
extern int mega_health;
extern int god_health;
extern int idfa_armor;
extern int idfa_armor_class;
extern int idkfa_armor;
extern int idkfa_armor_class;
extern int bfgcells;
extern int maxammo[], clipammo[];

View File

@ -29,6 +29,8 @@
#ifndef __P_PSPR__
#define __P_PSPR__
#include "doomdef.h"
// Basic data types.
// Needs fixed point, and BAM angles.

View File

@ -29,6 +29,8 @@
#ifndef __P_SAVEG__
#define __P_SAVEG__
#include "doomtype.h"
// Persistent storage/archiving.
// These are the load / save game routines.
void P_ArchivePlayers(void);

View File

@ -29,6 +29,7 @@
#ifndef __P_SETUP__
#define __P_SETUP__
#include "doomdef.h"
#include "p_mobj.h"
void P_SetupLevel(int episode, int map, int playermask, skill_t skill);

View File

@ -864,8 +864,6 @@ void T_Friction(friction_t *); // phares 3/12/98: friction thinker
void T_Pusher(pusher_t *); // phares 3/20/98: Push thinker
void T_FireFlicker(fireflicker_t *); // killough 10/4/98
////////////////////////////////////////////////////////////////
//
// Linedef and sector special handler prototypes
@ -1003,8 +1001,6 @@ void P_RemoveAllActiveCeilings(void); //jff 2/22/98
void P_AddActiveCeiling(ceiling_t *c);
void P_RemoveActiveCeiling(ceiling_t *c);
int P_ActivateInStasisCeiling(line_t *line);
mobj_t *P_GetPushThing(int); // phares 3/23/98

View File

@ -27,6 +27,7 @@
#define __P_TICK__
#include "d_think.h"
#include "p_mobj.h"
// Called by C_Ticker, can call G_PlayerExited.
// Carries out all thinking of monsters and players.

View File

@ -29,6 +29,8 @@
#ifndef __R_BSP__
#define __R_BSP__
#include "r_defs.h"
extern seg_t *curline;
extern side_t *sidedef;
extern line_t *linedef;

View File

@ -87,8 +87,6 @@ void R_FillBackScreen(void);
// If the view size is not full screen, draws a border around it.
void R_DrawViewBorder(void);
void R_DrawTLColumn(void); // drawing translucent textures // phares
extern byte *tranmap; // translucency filter maps 256x256 // phares
extern byte *main_tranmap; // killough 4/11/98
extern byte *ylookup[]; // killough 11/98

View File

@ -38,8 +38,6 @@
extern fixed_t viewcos;
extern fixed_t viewsin;
extern int viewwidth;
extern int viewheight;
extern int viewwindowx;
extern int viewwindowy;
extern int centerx;
@ -69,9 +67,7 @@ extern int loopcount;
// killough 3/20/98: Allow colormaps to be dynamic (e.g. underwater)
extern lighttable_t *(*scalelight)[MAXLIGHTSCALE];
extern lighttable_t *(*zlight)[MAXLIGHTZ];
extern lighttable_t *fullcolormap;
extern int numcolormaps; // killough 4/4/98: dynamic number of maps
extern lighttable_t **colormaps;
// killough 3/20/98, 4/4/98: end dynamic colormaps
extern int extralight;

View File

@ -29,6 +29,8 @@
#ifndef __R_SEGS__
#define __R_SEGS__
#include "r_defs.h"
void R_RenderMaskedSegRange(drawseg_t *ds, int x1, int x2);
void R_StoreWallRange(int start, int stop);

View File

@ -29,6 +29,10 @@
#ifndef __R_THINGS__
#define __R_THINGS__
#include "doomdef.h"
#include "m_fixed.h"
#include "r_defs.h"
// Constant arrays used for psprite clipping and initializing clipping.
extern short negonearray[MAX_SCREENWIDTH]; // killough 2/8/98:

View File

@ -29,6 +29,8 @@
#ifndef __S_SOUND__
#define __S_SOUND__
#include "p_mobj.h"
//
// Initializes sound stuff, including volume
// Sets channels, SFX and music volume,

View File

@ -75,8 +75,6 @@ typedef enum
GetChatState
} st_chatstateenum_t;
boolean ST_Responder(event_t* ev);
// killough 5/2/98: moved from m_misc.c:
extern int health_red; // health amount less than which status is red

View File

@ -32,6 +32,7 @@
//#include "v_video.h"
#include "doomdef.h"
#include "d_player.h"
// States for the intermission