Clean up includes.
This commit is contained in:
@@ -17,8 +17,8 @@ using namespace std;
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <sys/errno.h>
|
#include <cerrno>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include "StdString.h"
|
#include "StdString.h"
|
||||||
#include "InstallerFile.h"
|
#include "InstallerFile.h"
|
||||||
#include "Processor.h"
|
#include "Processor.h"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#import <Security/AuthorizationTags.h>
|
#import <Security/AuthorizationTags.h>
|
||||||
#import <sys/types.h>
|
#import <sys/types.h>
|
||||||
#import <sys/wait.h>
|
#import <sys/wait.h>
|
||||||
#import <string.h>
|
#import <cstring>
|
||||||
#import <unistd.h>
|
#import <unistd.h>
|
||||||
#import <fcntl.h>
|
#import <fcntl.h>
|
||||||
#import "Helper.h"
|
#import "Helper.h"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ using namespace std;
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include "StdString.h"
|
#include "StdString.h"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/errno.h>
|
#include <cerrno.>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/errno.h>
|
#include <cerrno>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Actor.h"
|
#include "Actor.h"
|
||||||
#include <math.h>
|
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
|
|||||||
@@ -12,11 +12,9 @@
|
|||||||
|
|
||||||
#include "ActorScroller.h"
|
#include "ActorScroller.h"
|
||||||
#include "ActorCollision.h"
|
#include "ActorCollision.h"
|
||||||
#include <math.h>
|
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
|
|
||||||
|
|
||||||
ActorScroller::ActorScroller()
|
ActorScroller::ActorScroller()
|
||||||
{
|
{
|
||||||
m_bLoaded = false;
|
m_bLoaded = false;
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include "NoteDisplay.h"
|
#include "NoteDisplay.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include <math.h>
|
|
||||||
#include "RageMath.h"
|
#include "RageMath.h"
|
||||||
|
|
||||||
const float ARROW_SPACING = ARROW_SIZE;// + 2;
|
const float ARROW_SPACING = ARROW_SIZE;// + 2;
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include "RageMath.h"
|
#include "RageMath.h"
|
||||||
#include "SDL_utils.h"
|
#include "SDL_utils.h"
|
||||||
#include <math.h>
|
|
||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "NoteTypes.h"
|
#include "NoteTypes.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include <math.h> // for fmodf
|
|
||||||
#include "DancingCharacters.h"
|
#include "DancingCharacters.h"
|
||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
#include "BeginnerHelper.h"
|
#include "BeginnerHelper.h"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include "SongManager.h"
|
#include "SongManager.h"
|
||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
|
|
||||||
Bookkeeper* BOOKKEEPER = NULL; // global and accessable from anywhere in our program
|
Bookkeeper* BOOKKEEPER = NULL; // global and accessable from anywhere in our program
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
#include "MusicWheel.h"
|
#include "MusicWheel.h"
|
||||||
#include "CharacterHead.h"
|
#include "CharacterHead.h"
|
||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "Character.h"
|
#include "Character.h"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "GameManager.h"
|
#include "GameManager.h"
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "Course.h"
|
#include "Course.h"
|
||||||
#include "SongManager.h"
|
#include "SongManager.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "StyleDef.h"
|
#include "StyleDef.h"
|
||||||
#include "ActorUtil.h"
|
#include "ActorUtil.h"
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#define SEPARATE_COURSE_METERS THEME->GetMetricB(m_sName,"SeparateCourseMeters")
|
#define SEPARATE_COURSE_METERS THEME->GetMetricB(m_sName,"SeparateCourseMeters")
|
||||||
#define TEXT_BANNER_NAME THEME->GetMetric (m_sName,"TextBannerName")
|
#define TEXT_BANNER_NAME THEME->GetMetric (m_sName,"TextBannerName")
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "LightsManager.h"
|
#include "LightsManager.h"
|
||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
#include "Bookkeeper.h"
|
#include "Bookkeeper.h"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include "MemoryCardManager.h"
|
#include "MemoryCardManager.h"
|
||||||
#include "StageStats.h"
|
#include "StageStats.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
|
|||||||
@@ -21,8 +21,6 @@
|
|||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "StyleDef.h"
|
#include "StyleDef.h"
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
|
|
||||||
const float GRAPH_EDGE_WIDTH = 2;
|
const float GRAPH_EDGE_WIDTH = 2;
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "RageMath.h"
|
#include "RageMath.h"
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
|
|
||||||
#define LABEL_OFFSET_X( i ) THEME->GetMetricF("GrooveRadar",ssprintf("Label%dOffsetX",i+1))
|
#define LABEL_OFFSET_X( i ) THEME->GetMetricF("GrooveRadar",ssprintf("Label%dOffsetX",i+1))
|
||||||
#define LABEL_OFFSET_Y( i ) THEME->GetMetricF("GrooveRadar",ssprintf("Label%dOffsetY",i+1))
|
#define LABEL_OFFSET_Y( i ) THEME->GetMetricF("GrooveRadar",ssprintf("Label%dOffsetY",i+1))
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include "RageException.h"
|
#include "RageException.h"
|
||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include <math.h>
|
|
||||||
#include "RageMath.h"
|
#include "RageMath.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "Course.h"
|
#include "Course.h"
|
||||||
#include "SongManager.h"
|
#include "SongManager.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <csetjmp>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
|
|
||||||
LuaFunctionList *g_LuaFunctionList = NULL;
|
LuaFunctionList *g_LuaFunctionList = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "ActorUtil.h"
|
#include "ActorUtil.h"
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include "ModelManager.h"
|
#include "ModelManager.h"
|
||||||
|
|
||||||
const float FRAMES_PER_SECOND = 30;
|
const float FRAMES_PER_SECOND = 30;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "RageMath.h"
|
#include "RageMath.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include "Course.h"
|
#include "Course.h"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Don't bother to edit it. I will be editing it as I go.
|
|||||||
|
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include "NetworkSyncManager.h"
|
#include "NetworkSyncManager.h"
|
||||||
|
|
||||||
#include "BPMDisplay.h"
|
#include "BPMDisplay.h"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#include "RageException.h"
|
#include "RageException.h"
|
||||||
#include "ArrowEffects.h"
|
#include "ArrowEffects.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include <math.h>
|
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "NoteTypes.h"
|
#include "NoteTypes.h"
|
||||||
#include "NoteFieldPositioning.h"
|
#include "NoteFieldPositioning.h"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageMath.h"
|
#include "RageMath.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "NoteFieldPositioning.h"
|
#include "NoteFieldPositioning.h"
|
||||||
#include "NoteSkinManager.h"
|
#include "NoteSkinManager.h"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
#include "GameManager.h"
|
#include "GameManager.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
void NotesWriterSM::WriteGlobalTags( RageFile &f, const Song &out )
|
void NotesWriterSM::WriteGlobalTags( RageFile &f, const Song &out )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include <math.h> // for fabs()
|
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include "RageException.h"
|
#include "RageException.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include <math.h>
|
|
||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
|
|
||||||
#define AI_PATH "Data/AI.ini"
|
#define AI_PATH "Data/AI.ini"
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include "PlayerOptions.h"
|
#include "PlayerOptions.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "math.h"
|
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include "SongManager.h"
|
#include "SongManager.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include "Course.h"
|
#include "Course.h"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "CryptManager.h"
|
#include "CryptManager.h"
|
||||||
#include "ProfileHtml.h"
|
#include "ProfileHtml.h"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include "SongManager.h"
|
#include "SongManager.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include "GameManager.h"
|
#include "GameManager.h"
|
||||||
#include "Course.h"
|
#include "Course.h"
|
||||||
#include "Bookkeeper.h"
|
#include "Bookkeeper.h"
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
#include "StepMania.h"
|
#include "StepMania.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
static RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC[RageDisplay::NUM_PIX_FORMATS] = {
|
static RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC[RageDisplay::NUM_PIX_FORMATS] = {
|
||||||
{
|
{
|
||||||
/* R8G8B8A8 */
|
/* R8G8B8A8 */
|
||||||
|
|||||||
@@ -71,8 +71,6 @@ namespace GLExt {
|
|||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
#include "arch/LowLevelWindow/LowLevelWindow.h"
|
#include "arch/LowLevelWindow/LowLevelWindow.h"
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#pragma comment(lib, "opengl32.lib")
|
#pragma comment(lib, "opengl32.lib")
|
||||||
#pragma comment(lib, "glu32.lib")
|
#pragma comment(lib, "glu32.lib")
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
|
|
||||||
class RageException : public exception
|
class RageException : public exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ freely, subject to the following restrictions:
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageUtil_FileDB.h"
|
#include "RageUtil_FileDB.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
#if defined(_WINDOWS) || defined(_XBOX)
|
#if defined(_WINDOWS) || defined(_XBOX)
|
||||||
#include "zlib/zlib.h"
|
#include "zlib/zlib.h"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageThreads.h"
|
#include "RageThreads.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#if defined(LINUX)
|
#if defined(LINUX)
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
#include "RageThreads.h"
|
#include "RageThreads.h"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#if defined(_WINDOWS)
|
#if defined(_WINDOWS)
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include <math.h>
|
|
||||||
#include "arch/ArchHooks/ArchHooks.h"
|
#include "arch/ArchHooks/ArchHooks.h"
|
||||||
|
|
||||||
void RageVec3ClearBounds( RageVector3 &mins, RageVector3 &maxs )
|
void RageVec3ClearBounds( RageVector3 &mins, RageVector3 &maxs )
|
||||||
|
|||||||
@@ -29,8 +29,6 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "arch/ArchHooks/ArchHooks.h"
|
#include "arch/ArchHooks/ArchHooks.h"
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#include "RageSoundReader_Preload.h"
|
#include "RageSoundReader_Preload.h"
|
||||||
#include "RageSoundReader_Resample.h"
|
#include "RageSoundReader_Resample.h"
|
||||||
#include "RageSoundReader_FileReader.h"
|
#include "RageSoundReader_FileReader.h"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "SDL_utils.h"
|
#include "SDL_utils.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "mad-0.15.1b/mad.h"
|
#include "mad-0.15.1b/mad.h"
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
#pragma comment(lib, "vorbis/win32/vorbisfile_static.lib")
|
#pragma comment(lib, "vorbis/win32/vorbisfile_static.lib")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
static size_t OggRageFile_read_func( void *ptr, size_t size, size_t nmemb, void *datasource )
|
static size_t OggRageFile_read_func( void *ptr, size_t size, size_t nmemb, void *datasource )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#include "RageSoundResampler.h"
|
#include "RageSoundResampler.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This class handles sound resampling.
|
* This class handles sound resampling.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include "RageTexture.h"
|
#include "RageTexture.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageTextureManager.h"
|
#include "RageTextureManager.h"
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
RageTexture::RageTexture( RageTextureID name ):
|
RageTexture::RageTexture( RageTextureID name ):
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
#include "SDL_thread.h"
|
#include "SDL_thread.h"
|
||||||
#include "SDL_utils.h"
|
#include "SDL_utils.h"
|
||||||
|
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
/* SDL threads aren't quite enough. We need to be able to suspend or
|
/* SDL threads aren't quite enough. We need to be able to suspend or
|
||||||
|
|||||||
@@ -16,8 +16,7 @@
|
|||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
|
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include <math.h>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
#include "ReceptorArrow.h"
|
#include "ReceptorArrow.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "NoteFieldPositioning.h"
|
#include "NoteFieldPositioning.h"
|
||||||
#include "NoteSkinManager.h"
|
#include "NoteSkinManager.h"
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include "SDL_rotozoom.h"
|
#include "SDL_rotozoom.h"
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "InputMapper.h"
|
#include "InputMapper.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "SDL_keysym.h" // for SDLKeys
|
#include "SDL_keysym.h" // for SDLKeys
|
||||||
#include "ScreenMiniMenu.h"
|
#include "ScreenMiniMenu.h"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "StepMania.h"
|
#include "StepMania.h"
|
||||||
#include "CryptManager.h"
|
#include "CryptManager.h"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
const int NUM_SCORE_DIGITS = 9;
|
const int NUM_SCORE_DIGITS = 9;
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ScreenEz2SelectMusic.h"
|
#include "ScreenEz2SelectMusic.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ScreenManager.h"
|
#include "ScreenManager.h"
|
||||||
#include "RageSounds.h"
|
#include "RageSounds.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "stdlib.h"
|
#include <cstdlib>
|
||||||
/*
|
/*
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
Class: ScreenHowToPlay
|
Class: ScreenHowToPlay
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
#include "ScreenRanking.h"
|
#include "ScreenRanking.h"
|
||||||
#include "Course.h"
|
#include "Course.h"
|
||||||
#include "AnnouncerManager.h"
|
#include "AnnouncerManager.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ProfileManager.h"
|
#include "ProfileManager.h"
|
||||||
#include "NoteFieldPositioning.h"
|
#include "NoteFieldPositioning.h"
|
||||||
#include "StageStats.h"
|
#include "StageStats.h"
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
#include "AnnouncerManager.h"
|
#include "AnnouncerManager.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ProfileManager.h"
|
#include "ProfileManager.h"
|
||||||
#include "StageStats.h"
|
#include "StageStats.h"
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
#include "InputMapper.h"
|
#include "InputMapper.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "CodeDetector.h"
|
#include "CodeDetector.h"
|
||||||
#include <math.h>
|
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include "ScrollBar.h"
|
#include "ScrollBar.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <math.h>
|
#include <cassert>
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#include "Sprite.h"
|
#include "Sprite.h"
|
||||||
#include "RageTextureManager.h"
|
#include "RageTextureManager.h"
|
||||||
|
|||||||
@@ -285,19 +285,15 @@ typedef char TCHAR;
|
|||||||
#ifdef SS_ANSI // Are we doing things the standard, non-Win32 way?...
|
#ifdef SS_ANSI // Are we doing things the standard, non-Win32 way?...
|
||||||
// Not sure if we need all these headers. I believe ANSI says we do.
|
// Not sure if we need all these headers. I believe ANSI says we do.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdarg.h>
|
#include <cctype>
|
||||||
#include <ctype.h>
|
#include <cstdlib>
|
||||||
#include <stdlib.h>
|
|
||||||
#ifndef va_start
|
#ifndef va_start
|
||||||
#include <varargs.h>
|
#include <varargs.h>
|
||||||
#endif
|
#endif
|
||||||
#endif // #ifndef SS_ANSI
|
#endif // #ifndef SS_ANSI
|
||||||
|
|
||||||
// VC++ needs this for va_*. -cdanford
|
#include <cstdarg>
|
||||||
#ifndef SS_ANSI
|
|
||||||
#include <stdarg.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// a very shorthand way of applying the fix for KB problem Q172398
|
// a very shorthand way of applying the fix for KB problem Q172398
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
#include "arch/LoadingWindow/LoadingWindow.h"
|
#include "arch/LoadingWindow/LoadingWindow.h"
|
||||||
#include "time.h"
|
#include <ctime>
|
||||||
|
|
||||||
#include "ProductInfo.h"
|
#include "ProductInfo.h"
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include "Steps.h"
|
#include "Steps.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include "math.h" // for fabs()
|
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "NoteData.h"
|
#include "NoteData.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "time.h"
|
#include <ctime>
|
||||||
|
|
||||||
|
|
||||||
const int NUM_LAST_DAYS = 7;
|
const int NUM_LAST_DAYS = 7;
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
#include "MusicWheel.h"
|
#include "MusicWheel.h"
|
||||||
#include "WheelNotifyIcon.h"
|
#include "WheelNotifyIcon.h"
|
||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include <math.h>
|
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#include <Carbon/Carbon.h>
|
#include <Carbon/Carbon.h>
|
||||||
#undef Random_
|
#undef Random_
|
||||||
#include <mach/thread_act.h>
|
#include <mach/thread_act.h>
|
||||||
#include <signal.h>
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* This is really dumb. I don't know why it is needed all of a sudden */
|
/* This is really dumb. I don't know why it is needed all of a sudden */
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#ifndef scalb
|
#ifndef scalb
|
||||||
#define scalb(x, n) scalbn(x, n)
|
#define scalb(x, n) scalbn(x, n)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageFileManager.h"
|
#include "RageFileManager.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "SDL_endian.h"
|
#include "SDL_endian.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
namespace avcodec
|
namespace avcodec
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include <QuickTime/QuickTime.h>
|
#include <QuickTime/QuickTime.h>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
/* Ugh */
|
/* Ugh */
|
||||||
using namespace QT;
|
using namespace QT;
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
// Includes
|
// Includes
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|||||||
@@ -61,9 +61,9 @@
|
|||||||
#include <IOKit/audio/IOAudioDefines.h>
|
#include <IOKit/audio/IOAudioDefines.h>
|
||||||
#include <IOKit/audio/IOAudioTypes.h>
|
#include <IOKit/audio/IOAudioTypes.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "CADebugMacros.h"
|
#include "CADebugMacros.h"
|
||||||
#include <string.h> // for memset, memcpy
|
#include <cstring> // for memset, memcpy
|
||||||
#include <stdio.h> // for FILE *
|
#include <cstdio> // for FILE *
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// CAStreamBasicDescription
|
// CAStreamBasicDescription
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
|
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
|
||||||
|
|
||||||
#define _BSD_WCHAR_T_DEFINED_
|
#define _BSD_WCHAR_T_DEFINED_
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#if defined(BACKTRACE_METHOD_X86_LINUX)
|
#if defined(BACKTRACE_METHOD_X86_LINUX)
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "BacktraceNames.h"
|
#include "BacktraceNames.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
|
|
||||||
#include "RageLog.h" /* for RageLog::GetAdditionalLog, etc, only */
|
#include "RageLog.h" /* for RageLog::GetAdditionalLog, etc, only */
|
||||||
#include "RageThreads.h"
|
#include "RageThreads.h"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ void CrashHandlerHandleArgs( int argc, char* argv[] );
|
|||||||
void InitializeCrashHandler();
|
void InitializeCrashHandler();
|
||||||
|
|
||||||
#if !defined(DARWIN)
|
#if !defined(DARWIN)
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
void CrashSignalHandler( int signal, siginfo_t *si, const ucontext_t *uc );
|
void CrashSignalHandler( int signal, siginfo_t *si, const ucontext_t *uc );
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#define __USE_GNU
|
#define __USE_GNU
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
#include "SignalHandler.h"
|
#include "SignalHandler.h"
|
||||||
#include "GetSysInfo.h"
|
#include "GetSysInfo.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
static vector<SignalHandler::handler> handlers;
|
static vector<SignalHandler::handler> handlers;
|
||||||
SaveSignals *saved_sigs;
|
SaveSignals *saved_sigs;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef SIGNAL_HANDLER_H
|
#ifndef SIGNAL_HANDLER_H
|
||||||
#define SIGNAL_HANDLER_H
|
#define SIGNAL_HANDLER_H
|
||||||
|
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
|
|
||||||
class SaveSignals
|
class SaveSignals
|
||||||
|
|||||||
@@ -284,8 +284,8 @@ void SHA512_Simple(const void *p, int len, unsigned char *output) {
|
|||||||
|
|
||||||
#ifdef TEST
|
#ifdef TEST
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
unsigned char digest[64];
|
unsigned char digest[64];
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ void NORETURN sm_crash( const char *reason = "Internal error" );
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define a few functions if necessary */
|
/* Define a few functions if necessary */
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#ifdef NEED_POWF
|
#ifdef NEED_POWF
|
||||||
inline float powf (float x, float y) { return float(pow(double(x),double(y))); }
|
inline float powf (float x, float y) { return float(pow(double(x),double(y))); }
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user