Some #include fixes
Finally figured out how to get include-what-you-use working
This commit is contained in:
parent
0fb147aa0d
commit
c80b593a3f
41 changed files with 28 additions and 55 deletions
|
@ -5,14 +5,17 @@
|
||||||
* http://sam.zoy.org/wtfpl/COPYING for more details. */
|
* http://sam.zoy.org/wtfpl/COPYING for more details. */
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cstring>
|
|
||||||
#include "FL/Fl.H"
|
#include "FL/Fl.H"
|
||||||
#include "FL/Fl_Window.H"
|
#include "FL/Fl_Window.H"
|
||||||
#include "FL/Fl_Radio_Round_Button.H"
|
#include "FL/Fl_Radio_Round_Button.H"
|
||||||
#include "FL/Fl_Choice.H"
|
#include "FL/Fl_Choice.H"
|
||||||
#include "FL/Fl_Check_Button.H"
|
#include "FL/Fl_Check_Button.H"
|
||||||
|
#include <FL/Fl_Button.H>
|
||||||
|
#include <FL/Fl_Group.H>
|
||||||
|
#include <FL/Fl_Menu_Item.H>
|
||||||
|
#include <FL/Fl_Round_Button.H>
|
||||||
|
#include <FL/Enumerations.H>
|
||||||
|
|
||||||
#define MAGIC "DOUKUTSU20041206"
|
#define MAGIC "DOUKUTSU20041206"
|
||||||
#define FONT "Courier New"
|
#define FONT "Courier New"
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
#include "Back.h"
|
#include "Back.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#include "CommonDefines.h"
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
#include "File.h"
|
#include "File.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
#include "MyChar.h"
|
#include "MyChar.h"
|
||||||
|
#include "NpChar.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
|
|
||||||
void ActBossChar_Ironhead(void)
|
void ActBossChar_Ironhead(void)
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include "Boss.h"
|
#include "Boss.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
#include "Map.h"
|
#include "Map.h"
|
||||||
|
#include "NpChar.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
|
|
||||||
void ActBossChar_Press(void)
|
void ActBossChar_Press(void)
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
#include "BulHit.h"
|
#include "BulHit.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
#include "Map.h"
|
#include "Map.h"
|
||||||
#include "MyChar.h"
|
|
||||||
#include "NpChar.h"
|
#include "NpChar.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "File.h"
|
#include "File.h"
|
||||||
#include "Tags.h"
|
#include "Tags.h"
|
||||||
#include "Types.h"
|
|
||||||
|
|
||||||
static const char* const config_filename = "Config.dat"; // Not the original name
|
static const char* const config_filename = "Config.dat"; // Not the original name
|
||||||
static const char* const config_magic = "DOUKUTSU20041206"; // Not the original name
|
static const char* const config_magic = "DOUKUTSU20041206"; // Not the original name
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include "Font.h"
|
#include "Font.h"
|
||||||
#include "Resource.h"
|
#include "Resource.h"
|
||||||
#include "Tags.h"
|
#include "Tags.h"
|
||||||
#include "Types.h"
|
|
||||||
|
|
||||||
struct SURFACE
|
struct SURFACE
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#include "CommonDefines.h"
|
||||||
|
|
||||||
struct CREDIT
|
struct CREDIT
|
||||||
{
|
{
|
||||||
int size;
|
int size;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
#include "Game.h"
|
|
||||||
|
|
||||||
#define FADE_WIDTH (((WINDOW_WIDTH - 1) / 16) + 1)
|
#define FADE_WIDTH (((WINDOW_WIDTH - 1) / 16) + 1)
|
||||||
#define FADE_HEIGHT (((WINDOW_HEIGHT - 1) / 16) + 1)
|
#define FADE_HEIGHT (((WINDOW_HEIGHT - 1) / 16) + 1)
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "Boss.h"
|
#include "Boss.h"
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <SDL_timer.h>
|
#include <SDL_timer.h>
|
||||||
|
|
||||||
|
@ -15,6 +14,7 @@
|
||||||
#include "BulHit.h"
|
#include "BulHit.h"
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
|
#include "CommonDefines.h"
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
#include "Ending.h"
|
#include "Ending.h"
|
||||||
#include "Escape.h"
|
#include "Escape.h"
|
||||||
|
@ -35,7 +35,6 @@
|
||||||
#include "NpChar.h"
|
#include "NpChar.h"
|
||||||
#include "NpcHit.h"
|
#include "NpcHit.h"
|
||||||
#include "NpcTbl.h"
|
#include "NpcTbl.h"
|
||||||
#include "Organya.h"
|
|
||||||
#include "Profile.h"
|
#include "Profile.h"
|
||||||
#include "SelStage.h"
|
#include "SelStage.h"
|
||||||
#include "Shoot.h"
|
#include "Shoot.h"
|
||||||
|
|
|
@ -7,10 +7,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "CommonDefines.h"
|
|
||||||
#include "Tags.h"
|
|
||||||
#include "Types.h"
|
|
||||||
|
|
||||||
#define JOYSTICK_DEADZONE 10000
|
#define JOYSTICK_DEADZONE 10000
|
||||||
|
|
||||||
SDL_Joystick *joystick; // This was probably a name that was given by Simon, but it fits the rest of Pixel's names so it's fine.
|
SDL_Joystick *joystick; // This was probably a name that was given by Simon, but it fits the rest of Pixel's names so it's fine.
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include "Resource.h"
|
#include "Resource.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
#include "Triangle.h"
|
#include "Triangle.h"
|
||||||
#include "Types.h"
|
|
||||||
|
|
||||||
// These two are defined in Draw.cpp. This is a bit of a hack.
|
// These two are defined in Draw.cpp. This is a bit of a hack.
|
||||||
extern SDL_Window *gWindow;
|
extern SDL_Window *gWindow;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "Map.h"
|
#include "Map.h"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
#include "Escape.h"
|
#include "Escape.h"
|
||||||
#include "Game.h"
|
|
||||||
#include "KeyControl.h"
|
#include "KeyControl.h"
|
||||||
#include "Main.h"
|
#include "Main.h"
|
||||||
#include "Map.h"
|
#include "Map.h"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include "MycParam.h"
|
#include "MycParam.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
|
#include "Draw.h"
|
||||||
#include "Flash.h"
|
#include "Flash.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
@ -10,7 +9,6 @@
|
||||||
#include "MyChar.h"
|
#include "MyChar.h"
|
||||||
#include "NpChar.h"
|
#include "NpChar.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
#include "Triangle.h"
|
|
||||||
|
|
||||||
// Grate
|
// Grate
|
||||||
void ActNpc100(NPCHAR *npc)
|
void ActNpc100(NPCHAR *npc)
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
|
@ -2,10 +2,7 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Bullet.h"
|
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Frame.h"
|
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
#include "MyChar.h"
|
#include "MyChar.h"
|
||||||
#include "NpChar.h"
|
#include "NpChar.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Boss.h"
|
#include "Boss.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Boss.h"
|
#include "Boss.h"
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
#include "NpcAct.h"
|
#include "NpcAct.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
@ -12,7 +13,6 @@
|
||||||
#include "MyChar.h"
|
#include "MyChar.h"
|
||||||
#include "NpChar.h"
|
#include "NpChar.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
#include "Triangle.h"
|
|
||||||
|
|
||||||
// Curly (carried, shooting)
|
// Curly (carried, shooting)
|
||||||
void ActNpc320(NPCHAR *npc)
|
void ActNpc320(NPCHAR *npc)
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Back.h"
|
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
|
#include "Draw.h"
|
||||||
#include "Flash.h"
|
#include "Flash.h"
|
||||||
#include "Flags.h"
|
#include "Flags.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Draw.h"
|
|
||||||
#include "NpChar.h"
|
#include "NpChar.h"
|
||||||
|
|
||||||
struct NPC_TBL_RECT
|
struct NPC_TBL_RECT
|
||||||
|
|
|
@ -4,16 +4,12 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <SDL_thread.h>
|
#include "SDL.h"
|
||||||
#include <SDL_timer.h>
|
|
||||||
#include <SDL_events.h>
|
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "CommonDefines.h"
|
|
||||||
#include "Resource.h"
|
#include "Resource.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
#include "Tags.h"
|
|
||||||
|
|
||||||
#define PANDUMMY 0xFF
|
#define PANDUMMY 0xFF
|
||||||
#define VOLDUMMY 0xFF
|
#define VOLDUMMY 0xFF
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include "PixTone.h"
|
#include "PixTone.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#include "CommonDefines.h"
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
#include "Escape.h"
|
#include "Escape.h"
|
||||||
#include "KeyControl.h"
|
#include "KeyControl.h"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include "Shoot.h"
|
#include "Shoot.h"
|
||||||
|
|
||||||
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "ArmsItem.h"
|
#include "ArmsItem.h"
|
||||||
#include "Bullet.h"
|
#include "Bullet.h"
|
||||||
#include "Caret.h"
|
#include "Caret.h"
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <math.h>
|
||||||
#include <cmath>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string>
|
#include <stdlib.h>
|
||||||
#include <cstring>
|
#include <string.h>
|
||||||
|
|
||||||
#include <SDL.h>
|
#include "SDL.h"
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include "MyChar.h"
|
#include "MyChar.h"
|
||||||
#include "NpChar.h"
|
#include "NpChar.h"
|
||||||
#include "Organya.h"
|
#include "Organya.h"
|
||||||
#include "Tags.h"
|
|
||||||
#include "TextScr.h"
|
#include "TextScr.h"
|
||||||
#include "ValueView.h"
|
#include "ValueView.h"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
#include "Game.h"
|
|
||||||
#include "ValueView.h"
|
#include "ValueView.h"
|
||||||
|
|
||||||
#define VALUEVIEW_MAX 0x10
|
#define VALUEVIEW_MAX 0x10
|
||||||
|
|
Loading…
Add table
Reference in a new issue