Replace all include guard ifdefs with "#pragma once"

This commit is contained in:
lioncash 2014-02-10 13:54:46 -05:00 committed by Lioncash
parent a0a65a2906
commit d2038049f5
462 changed files with 676 additions and 2308 deletions

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _AOSOUNDSTREAM_H_ #pragma once
#define _AOSOUNDSTREAM_H_
#include "SoundStream.h" #include "SoundStream.h"
#include "Thread.h" #include "Thread.h"
@ -53,5 +52,3 @@ public:
AOSound(CMixer *mixer) : SoundStream(mixer) {} AOSound(CMixer *mixer) : SoundStream(mixer) {}
#endif #endif
}; };
#endif //_AOSOUNDSTREAM_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ALSA_SOUND_STREAM_H #pragma once
#define _ALSA_SOUND_STREAM_H
#if defined(HAVE_ALSA) && HAVE_ALSA #if defined(HAVE_ALSA) && HAVE_ALSA
#include <alsa/asoundlib.h> #include <alsa/asoundlib.h>
@ -52,6 +51,3 @@ public:
AlsaSound(CMixer *mixer) : SoundStream(mixer) {} AlsaSound(CMixer *mixer) : SoundStream(mixer) {}
#endif #endif
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _AUDIO_COMMON_H_ #pragma once
#define _AUDIO_COMMON_H_
#include "Common.h" #include "Common.h"
#include "SoundStream.h" #include "SoundStream.h"
@ -47,5 +46,3 @@ namespace AudioCommon
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true); void PauseAndLock(bool doLock, bool unpauseOnUnlock=true);
void UpdateSoundStream(); void UpdateSoundStream();
} }
#endif // _AUDIO_COMMON_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _COREAUDIO_SOUND_STREAM_H #pragma once
#define _COREAUDIO_SOUND_STREAM_H
#ifdef __APPLE__ #ifdef __APPLE__
#include <AudioUnit/AudioUnit.h> #include <AudioUnit/AudioUnit.h>
@ -46,5 +45,3 @@ public:
CoreAudioSound(CMixer *mixer) : SoundStream(mixer) {} CoreAudioSound(CMixer *mixer) : SoundStream(mixer) {}
#endif #endif
}; };
#endif

View File

@ -2,10 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DPL2DECODER_H_ #pragma once
#define _DPL2DECODER_H_
void dpl2decode(float *samples, int numsamples, float *out); void dpl2decode(float *samples, int numsamples, float *out);
void dpl2reset(); void dpl2reset();
#endif // _DPL2DECODER_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSOUNDSTREAM_H_ #pragma once
#define _DSOUNDSTREAM_H_
#include "SoundStream.h" #include "SoundStream.h"
#include "Thread.h" #include "Thread.h"
@ -76,5 +75,3 @@ public:
{} {}
#endif #endif
}; };
#endif //_DSOUNDSTREAM_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _MIXER_H_ #pragma once
#define _MIXER_H_
#include "WaveFile.h" #include "WaveFile.h"
#include "StdMutex.h" #include "StdMutex.h"
@ -106,5 +105,3 @@ protected:
private: private:
}; };
#endif // _MIXER_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _NULLSOUNDSTREAM_H_ #pragma once
#define _NULLSOUNDSTREAM_H_
#include <stdlib.h> #include <stdlib.h>
#include "SoundStream.h" #include "SoundStream.h"
@ -31,5 +30,3 @@ public:
virtual bool usesMixer() const { return true; } virtual bool usesMixer() const { return true; }
virtual void Update(); virtual void Update();
}; };
#endif //_NULLSOUNDSTREAM_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _OPENALSTREAM_H_ #pragma once
#define _OPENALSTREAM_H_
#include "SoundStream.h" #include "SoundStream.h"
#include "Thread.h" #include "Thread.h"
@ -79,5 +78,3 @@ public:
{} {}
#endif // HAVE_OPENAL #endif // HAVE_OPENAL
}; };
#endif // OPENALSTREAM

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _OPENSLSTREAM_H_ #pragma once
#define _OPENSLSTREAM_H_
#include "Thread.h" #include "Thread.h"
#include "SoundStream.h" #include "SoundStream.h"
@ -31,5 +30,3 @@ public:
OpenSLESStream(CMixer *mixer, void *hWnd = NULL): SoundStream(mixer) {} OpenSLESStream(CMixer *mixer, void *hWnd = NULL): SoundStream(mixer) {}
#endif // HAVE_OPENSL #endif // HAVE_OPENSL
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _PULSE_AUDIO_STREAM_H #pragma once
#define _PULSE_AUDIO_STREAM_H
#if defined(HAVE_PULSEAUDIO) && HAVE_PULSEAUDIO #if defined(HAVE_PULSEAUDIO) && HAVE_PULSEAUDIO
#include <pulse/pulseaudio.h> #include <pulse/pulseaudio.h>
@ -61,5 +60,3 @@ public:
PulseAudio(CMixer *mixer) : SoundStream(mixer) {} PulseAudio(CMixer *mixer) : SoundStream(mixer) {}
#endif #endif
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _SOUNDSTREAM_H_ #pragma once
#define _SOUNDSTREAM_H_
#include "Common.h" #include "Common.h"
#include "Mixer.h" #include "Mixer.h"
@ -55,5 +54,3 @@ public:
} }
} }
}; };
#endif // _SOUNDSTREAM_H_

View File

@ -12,8 +12,7 @@
// If Stop is not called when it destructs, the destructor will call Stop(). // If Stop is not called when it destructs, the destructor will call Stop().
// --------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------
#ifndef _WAVEFILE_H_ #pragma once
#define _WAVEFILE_H_
#include "FileUtil.h" #include "FileUtil.h"
@ -41,5 +40,3 @@ public:
void AddStereoSamplesBE(const short *sample_data, u32 count); // big endian void AddStereoSamplesBE(const short *sample_data, u32 count); // big endian
u32 GetAudioSize() const { return audio_size; } u32 GetAudioSize() const { return audio_size; }
}; };
#endif // _WAVEFILE_H_

View File

@ -1,5 +1,4 @@
#ifndef ALDEVICELIST_H #pragma once
#define ALDEVICELIST_H
#include "CommonTypes.h" #include "CommonTypes.h"
#ifdef _WIN32 #ifdef _WIN32
@ -47,5 +46,3 @@ public:
private: private:
u32 GetMaxNumSources(); u32 GetMaxNumSources();
}; };
#endif // ALDEVICELIST_H

View File

@ -1,24 +1,10 @@
// Copyright (C) 2003 Dolphin Project. // Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// This program is free software: you can redistribute it and/or modify // Refer to the license.txt file included.
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
// WARNING - THIS LIBRARY IS NOT THREAD SAFE!!! // WARNING - THIS LIBRARY IS NOT THREAD SAFE!!!
#ifndef _DOLPHIN_ARM_CODEGEN_ #pragma once
#define _DOLPHIN_ARM_CODEGEN_
#include "Common.h" #include "Common.h"
#include "MemoryUtil.h" #include "MemoryUtil.h"
@ -796,5 +782,3 @@ extern const VFPEnc VFPOps[16][2];
extern const char *VFPOpNames[16]; extern const char *VFPOpNames[16];
} // namespace } // namespace
#endif // _DOLPHIN_INTEL_CODEGEN_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ATOMIC_H_ #pragma once
#define _ATOMIC_H_
#ifdef _WIN32 #ifdef _WIN32
@ -15,5 +14,3 @@
#include "Atomic_GCC.h" #include "Atomic_GCC.h"
#endif #endif
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ATOMIC_GCC_H_ #pragma once
#define _ATOMIC_GCC_H_
#include "Common.h" #include "Common.h"
@ -86,5 +85,3 @@ inline T* AtomicExchangeAcquire(T* volatile& loc, U newval) {
} }
} }
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ATOMIC_WIN32_H_ #pragma once
#define _ATOMIC_WIN32_H_
#include "Common.h" #include "Common.h"
#include <intrin.h> #include <intrin.h>
@ -79,5 +78,3 @@ inline T* AtomicExchangeAcquire(T* volatile& loc, U newval) {
} }
} }
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DEBUGGER_BREAKPOINTS_H #pragma once
#define _DEBUGGER_BREAKPOINTS_H
#include <vector> #include <vector>
#include <string> #include <string>
@ -97,6 +96,3 @@ public:
void Clear() { m_MemChecks.clear(); }; void Clear() { m_MemChecks.clear(); };
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef _CDUTILS_H_ #pragma once
#define _CDUTILS_H_
#include <vector> #include <vector>
#include <string> #include <string>
@ -9,5 +8,3 @@ std::vector<std::string> cdio_get_devices();
// Returns true if device is cdrom/dvd // Returns true if device is cdrom/dvd
bool cdio_is_cdrom(std::string device); bool cdio_is_cdrom(std::string device);
#endif // _CDUTILS_H_

View File

@ -4,8 +4,7 @@
// Detect the cpu, so we'll know which optimizations to use // Detect the cpu, so we'll know which optimizations to use
#ifndef _CPUDETECT_H_ #pragma once
#define _CPUDETECT_H_
#include <string> #include <string>
@ -85,5 +84,3 @@ private:
}; };
extern CPUInfo cpu_info; extern CPUInfo cpu_info;
#endif // _CPUDETECT_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _POINTERWRAP_H_
#define _POINTERWRAP_H_
// Extremely simple serialization framework. // Extremely simple serialization framework.
@ -431,5 +429,3 @@ private:
u32 ExpectedSize; u32 ExpectedSize;
}; };
}; };
#endif // _POINTERWRAP_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _COLORUTIL_H_ #pragma once
#define _COLORUTIL_H_
namespace ColorUtil namespace ColorUtil
{ {
@ -12,5 +11,3 @@ void decode5A3image(u32* dst, u16* src, int width, int height);
void decodeCI8image(u32* dst, u8* src, u16* pal, int width, int height); void decodeCI8image(u32* dst, u8* src, u16* pal, int width, int height);
} // namespace } // namespace
#endif // _COLORUTIL_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _COMMON_H_ #pragma once
#define _COMMON_H_
// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file // DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
// since it slows down the build a lot. // since it slows down the build a lot.
@ -174,5 +173,3 @@ enum EMUSTATE_CHANGE
}; };
#include "CommonFuncs.h" #include "CommonFuncs.h"
#endif // _COMMON_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _COMMONFUNCS_H_ #pragma once
#define _COMMONFUNCS_H_
#ifdef _WIN32 #ifdef _WIN32
#define SLEEP(x) Sleep(x) #define SLEEP(x) Sleep(x)
@ -253,5 +252,3 @@ inline T FromBigEndian(T data)
} }
} // Namespace Common } // Namespace Common
#endif // _COMMONFUNCS_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _COMMON_PATHS_H_ #pragma once
#define _COMMON_PATHS_H_
// Make sure we pick up USER_DIR if set in config.h // Make sure we pick up USER_DIR if set in config.h
#include "Common.h" #include "Common.h"
@ -119,5 +118,3 @@
// Subdirs in Sys // Subdirs in Sys
#define GC_SYS_DIR "GC" #define GC_SYS_DIR "GC"
#define WII_SYS_DIR "Wii" #define WII_SYS_DIR "Wii"
#endif // _COMMON_PATHS_H_

View File

@ -7,8 +7,7 @@
// other parts of the code. Any definitions that are only used by the core should be // other parts of the code. Any definitions that are only used by the core should be
// placed in "Common.h" instead. // placed in "Common.h" instead.
#ifndef _COMMONTYPES_H_ #pragma once
#define _COMMONTYPES_H_
#include <cstdint> #include <cstdint>
#include <cstddef> #include <cstddef>
@ -47,5 +46,3 @@ typedef int64_t s64;
#define LONG int #define LONG int
#endif // _WIN32 #endif // _WIN32
#endif // _COMMONTYPES_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _CONSOLELISTENER_H #pragma once
#define _CONSOLELISTENER_H
#include "LogManager.h" #include "LogManager.h"
@ -37,5 +36,3 @@ private:
#endif #endif
bool bUseColor; bool bUseColor;
}; };
#endif // _CONSOLELISTENER_H

View File

@ -1,5 +1,4 @@
#ifndef _DEBUGINTERFACE_H #pragma once
#define _DEBUGINTERFACE_H
#include <string> #include <string>
@ -34,5 +33,3 @@ public:
virtual int getColor(unsigned int /*address*/){return 0xFFFFFFFF;} virtual int getColor(unsigned int /*address*/){return 0xFFFFFFFF;}
virtual std::string getDescription(unsigned int /*address*/) = 0; virtual std::string getDescription(unsigned int /*address*/) = 0;
}; };
#endif

View File

@ -12,8 +12,7 @@
// //
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
#ifndef _EXTENDEDTRACE_H_INCLUDED_ #pragma once
#define _EXTENDEDTRACE_H_INCLUDED_
#if defined(WIN32) #if defined(WIN32)
@ -49,4 +48,3 @@ extern char g_uefbuf[UEFBUFSIZE];
#endif // WIN32 #endif // WIN32
#endif // _EXTENDEDTRACE_H_INCLUDED_

View File

@ -1,21 +1,9 @@
// Copyright (C) 2003 Dolphin Project. // Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
// This program is free software: you can redistribute it and/or modify #pragma once
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#ifndef FPU_ROUND_MODE_H_
#define FPU_ROUND_MODE_H_
#include "CommonTypes.h" #include "CommonTypes.h"
namespace FPURoundMode namespace FPURoundMode
@ -49,4 +37,3 @@ namespace FPURoundMode
void LoadSIMDState(); void LoadSIMDState();
void LoadDefaultSIMDState(); void LoadDefaultSIMDState();
} }
#endif

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef _FIFO_QUEUE_H_
#define _FIFO_QUEUE_H_
// a simple lockless thread-safe, // a simple lockless thread-safe,
// single reader, single writer queue // single reader, single writer queue
@ -116,5 +114,3 @@ private:
}; };
} }
#endif

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _FILESEARCH_H_
#define _FILESEARCH_H_
#include <string> #include <string>
#include <vector> #include <vector>
@ -24,5 +22,3 @@ private:
XStringVector m_FileNames; XStringVector m_FileNames;
}; };
#endif // _FILESEARCH_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _FILEUTIL_H_
#define _FILEUTIL_H_
#include <fstream> #include <fstream>
#include <cstdio> #include <cstdio>
@ -237,5 +235,3 @@ void OpenFStream(T& fstream, const std::string& filename, std::ios_base::openmod
fstream.open(filename.c_str(), openmode); fstream.open(filename.c_str(), openmode);
#endif #endif
} }
#endif

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _FIXED_SIZE_QUEUE_H_
#define _FIXED_SIZE_QUEUE_H_
// STL-look-a-like interface, but name is mixed case to distinguish it clearly from the // STL-look-a-like interface, but name is mixed case to distinguish it clearly from the
// real STL classes. // real STL classes.
@ -70,6 +68,3 @@ public:
return count; return count;
} }
}; };
#endif // _FIXED_SIZE_QUEUE_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _HASH_H_
#define _HASH_H_
#include "Common.h" #include "Common.h"
@ -17,4 +15,3 @@ u64 GetHashHiresTexture(const u8 *src, int len, u32 samples);
u64 GetMurmurHash3(const u8 *src, int len, u32 samples); u64 GetMurmurHash3(const u8 *src, int len, u32 samples);
u64 GetHash64(const u8 *src, int len, u32 samples); u64 GetHash64(const u8 *src, int len, u32 samples);
void SetHash64Function(bool useHiresTextures); void SetHash64Function(bool useHiresTextures);
#endif // _HASH_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _INIFILE_H_
#define _INIFILE_H_
#include <map> #include <map>
#include <string> #include <string>
@ -159,5 +157,3 @@ private:
std::string* GetLine(const char* section, const char* key); std::string* GetLine(const char* section, const char* key);
void CreateSection(const char* section); void CreateSection(const char* section);
}; };
#endif // _INIFILE_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _LINEAR_DISKCACHE
#define _LINEAR_DISKCACHE
#include "Common.h" #include "Common.h"
#include <fstream> #include <fstream>
@ -184,5 +182,3 @@ private:
std::fstream m_file; std::fstream m_file;
u32 m_num_entries; u32 m_num_entries;
}; };
#endif // _LINEAR_DISKCACHE

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _LOG_H_ #pragma once
#define _LOG_H_
#define NOTICE_LEVEL 1 // VERY important information that is NOT errors. Like startup and OSReports. #define NOTICE_LEVEL 1 // VERY important information that is NOT errors. Like startup and OSReports.
#define ERROR_LEVEL 2 // Critical errors #define ERROR_LEVEL 2 // Critical errors
@ -155,5 +154,3 @@ void GenericLog(LOGTYPES_LEVELS level, LOGTYPES_TYPE type,
#else // GEKKO #else // GEKKO
#define _assert_msg_(_t_, _a_, _fmt_, ...) #define _assert_msg_(_t_, _a_, _fmt_, ...)
#endif #endif
#endif // _LOG_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _LOGMANAGER_H_ #pragma once
#define _LOGMANAGER_H_
#include "Log.h" #include "Log.h"
#include "StringUtil.h" #include "StringUtil.h"
@ -165,5 +164,3 @@ public:
static void Init(); static void Init();
static void Shutdown(); static void Shutdown();
}; };
#endif // _LOGMANAGER_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _MATH_UTIL_H_
#define _MATH_UTIL_H_
#include "Common.h" #include "Common.h"
@ -206,5 +204,3 @@ public:
float data[16]; float data[16];
}; };
#endif // _MATH_UTIL_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _MEMARENA_H_
#define _MEMARENA_H_
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
@ -54,5 +52,3 @@ struct MemoryView
// a passed-in list of MemoryView structures. // a passed-in list of MemoryView structures.
u8 *MemoryMap_Setup(const MemoryView *views, int num_views, u32 flags, MemArena *arena); u8 *MemoryMap_Setup(const MemoryView *views, int num_views, u32 flags, MemArena *arena);
void MemoryMap_Shutdown(const MemoryView *views, int num_views, u32 flags, MemArena *arena); void MemoryMap_Shutdown(const MemoryView *views, int num_views, u32 flags, MemArena *arena);
#endif // _MEMARENA_H_

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
#ifndef _MEMORYUTIL_H
#define _MEMORYUTIL_H
#include <string> #include <string>
@ -22,5 +20,3 @@ void UnWriteProtectMemory(void* ptr, size_t size, bool allowExecute = false);
std::string MemUsage(); std::string MemUsage();
inline int GetPageSize() { return 4096; } inline int GetPageSize() { return 4096; }
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _MSGHANDLER_H_ #pragma once
#define _MSGHANDLER_H_
#include <string> #include <string>
@ -69,5 +68,3 @@ void SetEnableAlert(bool enable);
#define AskYesNoT(format, ...) ; #define AskYesNoT(format, ...) ;
#define CriticalAlertT(format, ...) ; #define CriticalAlertT(format, ...) ;
#endif #endif
#endif // _MSGHANDLER_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef __NANDPATHS_H__ #pragma once
#define __NANDPATHS_H__
#include <string> #include <string>
#include "CommonTypes.h" #include "CommonTypes.h"
@ -23,5 +22,3 @@ namespace Common
bool CheckTitleTIK(u64 _titleID); bool CheckTitleTIK(u64 _titleID);
void ReadReplacements(replace_v& replacements); void ReadReplacements(replace_v& replacements);
} }
#endif

View File

@ -1,19 +1,8 @@
// Copyright (C) 2003 Dolphin Project. // Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
// This program is free software: you can redistribute it and/or modify #pragma once
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official Git repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#include "CommonTypes.h" #include "CommonTypes.h"

View File

@ -1,6 +1,8 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef CONDITION_VARIABLE_H_ #pragma once
#define CONDITION_VARIABLE_H_
#define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z)) #define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z))
#define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) #define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
@ -172,4 +174,3 @@ private:
} }
#endif #endif
#endif

View File

@ -1,6 +1,8 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef MUTEX_H_ #pragma once
#define MUTEX_H_
#define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z)) #define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z))
#define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) #define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
@ -368,4 +370,3 @@ void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y)
} }
#endif #endif
#endif

View File

@ -1,6 +1,8 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef STD_THREAD_H_ #pragma once
#define STD_THREAD_H_
#define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z)) #define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z))
#define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) #define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
@ -320,4 +322,3 @@ inline thread::id get_id()
#undef THREAD_HANDLE #undef THREAD_HANDLE
#endif #endif
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _STRINGUTIL_H_ #pragma once
#define _STRINGUTIL_H_
#include <stdarg.h> #include <stdarg.h>
@ -114,5 +113,3 @@ inline std::string UTF8ToTStr(const std::string& str)
#endif #endif
#endif #endif
#endif // _STRINGUTIL_H_

View File

@ -5,8 +5,7 @@
// This file contains a generic symbol map implementation. For CPU-specific // This file contains a generic symbol map implementation. For CPU-specific
// magic, derive and extend. // magic, derive and extend.
#ifndef _SYMBOL_DB_H #pragma once
#define _SYMBOL_DB_H
#include <string> #include <string>
#include <map> #include <map>
@ -105,5 +104,3 @@ public:
void List(); void List();
void Index(); void Index();
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef __SYSCONF_MANAGER_h__ #pragma once
#define __SYSCONF_MANAGER_h__
#include <string> #include <string>
#include <vector> #include <vector>
@ -176,5 +175,3 @@ private:
std::vector<SSysConfEntry> m_Entries; std::vector<SSysConfEntry> m_Entries;
bool m_IsValid; bool m_IsValid;
}; };
#endif // __SYSCONF_MANAGER_h__

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _THREAD_H_ #pragma once
#define _THREAD_H_
#include "StdConditionVariable.h" #include "StdConditionVariable.h"
#include "StdMutex.h" #include "StdMutex.h"
@ -122,5 +121,3 @@ inline void YieldCPU()
void SetCurrentThreadName(const char *name); void SetCurrentThreadName(const char *name);
} // namespace Common } // namespace Common
#endif // _THREAD_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _TIMER_H_ #pragma once
#define _TIMER_H_
#include "CommonTypes.h" #include "CommonTypes.h"
#include <string> #include <string>
@ -42,5 +41,3 @@ private:
}; };
} // Namespace Common } // Namespace Common
#endif // _TIMER_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _JIT_ABI_H_ #pragma once
#define _JIT_ABI_H_
#include "Common.h" #include "Common.h"
@ -76,7 +75,3 @@
#endif // WIN32 #endif // WIN32
#endif // X86 #endif // X86
#endif // _JIT_ABI_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _X64ANALYZER_H_ #pragma once
#define _X64ANALYZER_H_
#include "CommonTypes.h" #include "CommonTypes.h"
@ -40,5 +39,3 @@ enum AccessType
}; };
bool DisassembleMov(const unsigned char *codePtr, InstructionInfo *info); bool DisassembleMov(const unsigned char *codePtr, InstructionInfo *info);
#endif // _X64ANALYZER_H_

View File

@ -4,8 +4,7 @@
// WARNING - THIS LIBRARY IS NOT THREAD SAFE!!! // WARNING - THIS LIBRARY IS NOT THREAD SAFE!!!
#ifndef _DOLPHIN_INTEL_CODEGEN_ #pragma once
#define _DOLPHIN_INTEL_CODEGEN_
#include "Common.h" #include "Common.h"
#include "MemoryUtil.h" #include "MemoryUtil.h"
@ -774,5 +773,3 @@ public:
}; };
} // namespace } // namespace
#endif // _DOLPHIN_INTEL_CODEGEN_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ARDECRYPT_H_ #pragma once
#define _ARDECRYPT_H_
#include <vector> #include <vector>
#include "Common.h" #include "Common.h"
@ -15,5 +14,3 @@ namespace ActionReplay
void DecryptARCode(std::vector<std::string> vCodes, std::vector<AREntry> &ops); void DecryptARCode(std::vector<std::string> vCodes, std::vector<AREntry> &ops);
} //namespace } //namespace
#endif //_ARDECRYPT_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ACTIONREPLAY_H_ #pragma once
#define _ACTIONREPLAY_H_
#include "IniFile.h" #include "IniFile.h"
@ -38,5 +37,3 @@ void EnableSelfLogging(bool enable);
const std::vector<std::string> &GetSelfLog(); const std::vector<std::string> &GetSelfLog();
bool IsSelfLogging(); bool IsSelfLogging();
} // namespace } // namespace
#endif // _ACTIONREPLAY_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _BOOT_H #pragma once
#define _BOOT_H
#include <cstdlib> #include <cstdlib>
#include <string> #include <string>
@ -58,5 +57,3 @@ private:
static bool SetupWiiMemory(IVolume::ECountry country); static bool SetupWiiMemory(IVolume::ECountry country);
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _BOOT_DOL_H #pragma once
#define _BOOT_DOL_H
#include "CommonTypes.h" #include "CommonTypes.h"
@ -53,5 +52,3 @@ private:
// Copy sections to internal buffers // Copy sections to internal buffers
void Initialize(u8* _pBuffer, u32 _Size); void Initialize(u8* _pBuffer, u32 _Size);
}; };
#endif

View File

@ -1,19 +1,6 @@
// Copyright (C) 2003 Dolphin Project. // Copyright 2014 Dolphin Emulator Project
// Licensed under GPLv2
// This program is free software: you can redistribute it and/or modify // Refer to the license.txt file included.
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#pragma once #pragma once

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ELFREADER_H #pragma once
#define _ELFREADER_H
#include "ElfTypes.h" #include "ElfTypes.h"
@ -74,6 +73,3 @@ public:
return bRelocate; return bRelocate;
} }
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _ELFTYPES_H #pragma once
#define _ELFTYPES_H
// ELF Header Constants // ELF Header Constants
@ -280,6 +279,3 @@ struct Elf32_Dyn
Elf32_Addr d_ptr; Elf32_Addr d_ptr;
} d_un; } d_un;
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _BOOTMANAGER_H #pragma once
#define _BOOTMANAGER_H
#include <string> #include <string>
@ -15,5 +14,3 @@ bool BootCore(const std::string& _rFilename);
void Stop(); void Stop();
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _CONFIGMANAGER_H #pragma once
#define _CONFIGMANAGER_H
#include <string> #include <string>
#include <vector> #include <vector>
@ -104,6 +103,3 @@ private:
static SConfig* m_Instance; static SConfig* m_Instance;
}; };
#endif // endif config manager

View File

@ -5,10 +5,6 @@
// Simple debugging console currently residing in the Logging window. Not used much. // Simple debugging console currently residing in the Logging window. Not used much.
#ifndef _CONSOLE_H #pragma once
#define _CONSOLE_H
void Console_Submit(const char *cmd); void Console_Submit(const char *cmd);
#endif

View File

@ -9,8 +9,7 @@
// This is another part of the emu that needs cleaning - Core.cpp really has // This is another part of the emu that needs cleaning - Core.cpp really has
// too much random junk inside. // too much random junk inside.
#ifndef _CORE_H #pragma once
#define _CORE_H
#include <vector> #include <vector>
#include <string> #include <string>
@ -87,6 +86,3 @@ void UpdateTitle();
bool PauseAndLock(bool doLock, bool unpauseOnUnlock=true); bool PauseAndLock(bool doLock, bool unpauseOnUnlock=true);
} // namespace } // namespace
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _COREPARAMETER_H #pragma once
#define _COREPARAMETER_H
#include "IniFile.h" #include "IniFile.h"
#include <string> #include <string>
@ -213,5 +212,3 @@ struct SCoreStartupParameter
IniFile LoadLocalGameIni() const; IniFile LoadLocalGameIni() const;
IniFile LoadGameIni() const; IniFile LoadGameIni() const;
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _CORETIMING_H #pragma once
#define _CORETIMING_H
// This is a system to schedule events into the emulated machine's future. Time is measured // This is a system to schedule events into the emulated machine's future. Time is measured
// in main CPU clock cycles. // in main CPU clock cycles.
@ -84,5 +83,3 @@ extern int downcount;
extern int slicelength; extern int slicelength;
}; // end of namespace }; // end of namespace
#endif

View File

@ -2,12 +2,9 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSP_ACCELERATOR_H #pragma once
#define _DSP_ACCELERATOR_H
u16 dsp_read_accelerator(); u16 dsp_read_accelerator();
u16 dsp_read_aram_d3(); u16 dsp_read_aram_d3();
void dsp_write_aram_d3(u16 value); void dsp_write_aram_d3(u16 value);
#endif

View File

@ -2,13 +2,13 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#pragma once
// Basic code analysis.
#include "DSPInterpreter.h" #include "DSPInterpreter.h"
namespace DSPAnalyzer { // Basic code analysis.
namespace DSPAnalyzer
{
#define ISPACE 65536 #define ISPACE 65536
// Useful things to detect: // Useful things to detect:

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSP_BREAKPOINTS #pragma once
#define _DSP_BREAKPOINTS
#include "Common.h" #include "Common.h"
@ -60,5 +59,3 @@ public:
private: private:
u8 b[65536]; u8 b[65536];
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSPCODEUTIL_H #pragma once
#define _DSPCODEUTIL_H
#include <string> #include <string>
#include <vector> #include <vector>
@ -26,5 +25,3 @@ void BinaryStringBEToCode(const std::string &str, std::vector<u16> &code);
// Load code (big endian binary). // Load code (big endian binary).
bool LoadBinary(const char *filename, std::vector<u16> &code); bool LoadBinary(const char *filename, std::vector<u16> &code);
bool SaveBinary(const std::vector<u16> &code, const char *filename); bool SaveBinary(const std::vector<u16> &code, const char *filename);
#endif // _DSPCODEUTIL_H

View File

@ -2,10 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef __DSPCOMMON_H #pragma once
#define __DSPCOMMON_H
#include "CommonTypes.h" #include "CommonTypes.h"
typedef u16 UDSPInstruction; typedef u16 UDSPInstruction;
#endif

View File

@ -23,8 +23,7 @@
====================================================================*/ ====================================================================*/
#ifndef _DSPCORE_H #pragma once
#define _DSPCORE_H
#include "Thread.h" #include "Thread.h"
@ -301,5 +300,3 @@ void DSPCore_Step();
u16 DSPCore_ReadRegister(int reg); u16 DSPCore_ReadRegister(int reg);
void DSPCore_WriteRegister(int reg, u16 val); void DSPCore_WriteRegister(int reg, u16 val);
#endif // _DSPCORE_H

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSPEMITTER_H #pragma once
#define _DSPEMITTER_H
#include <list> #include <list>
@ -286,7 +285,3 @@ private:
void get_ax_h(int _reg, Gen::X64Reg acc = Gen::EAX); void get_ax_h(int _reg, Gen::X64Reg acc = Gen::EAX);
void get_long_acc(int _reg, Gen::X64Reg acc = Gen::EAX); void get_long_acc(int _reg, Gen::X64Reg acc = Gen::EAX);
}; };
#endif // _DSPEMITTER_H

View File

@ -23,8 +23,7 @@
====================================================================*/ ====================================================================*/
#ifndef _GDSP_INTERFACE_H #pragma once
#define _GDSP_INTERFACE_H
#include "Common.h" #include "Common.h"
@ -41,5 +40,3 @@ void gdsp_ifx_init();
void gdsp_ifx_write(u32 addr, u32 val); void gdsp_ifx_write(u32 addr, u32 val);
u16 gdsp_ifx_read(u16 addr); u16 gdsp_ifx_read(u16 addr);
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSPHOST_H #pragma once
#define _DSPHOST_H
// The user of the DSPCore library must supply a few functions so that the // The user of the DSPCore library must supply a few functions so that the
// emulation core can access the environment it runs in. If the emulation // emulation core can access the environment it runs in. If the emulation
@ -18,5 +17,3 @@ bool DSPHost_Wii();
void DSPHost_InterruptRequest(); void DSPHost_InterruptRequest();
void DSPHost_CodeLoaded(const u8 *ptr, int size); void DSPHost_CodeLoaded(const u8 *ptr, int size);
void DSPHost_UpdateDebugger(); void DSPHost_UpdateDebugger();
#endif

View File

@ -4,8 +4,7 @@
// //
// Additional copyrights go to Duddie and Tratax (c) 2004 // Additional copyrights go to Duddie and Tratax (c) 2004
#ifndef _GDSP_CONDITION_CODES_H #pragma once
#define _GDSP_CONDITION_CODES_H
// Anything to do with SR and conditions goes here. // Anything to do with SR and conditions goes here.
@ -38,5 +37,3 @@ inline bool isOverS32(s64 acc) {
} }
} // namespace } // namespace
#endif // _GDSP_CONDITION_CODES_H

View File

@ -23,8 +23,7 @@
====================================================================*/ ====================================================================*/
#ifndef _GDSP_EXT_OP_H #pragma once
#define _GDSP_EXT_OP_H
#include "DSPTables.h" #include "DSPTables.h"
@ -64,5 +63,3 @@ void nop(const UDSPInstruction opc);
} // end namespace Ext } // end namespace Ext
} // end namespace DSPinterpeter } // end namespace DSPinterpeter
#endif

View File

@ -23,8 +23,7 @@
====================================================================*/ ====================================================================*/
#ifndef _DSP_INT_UTIL_H #pragma once
#define _DSP_INT_UTIL_H
#include "Common.h" #include "Common.h"
@ -381,5 +380,3 @@ inline s16 dsp_get_ax_h(int _reg)
{ {
return (s16)g_dsp.r.ax[_reg].h; return (s16)g_dsp.r.ax[_reg].h;
} }
#endif

View File

@ -2,15 +2,14 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSPINTERPRETER_H #pragma once
#define _DSPINTERPRETER_H
#include "DSPTables.h" #include "DSPTables.h"
#define DSP_REG_MASK 0x1f #define DSP_REG_MASK 0x1f
namespace DSPInterpreter { namespace DSPInterpreter
{
void Step(); void Step();
// See: DspIntBranch.cpp // See: DspIntBranch.cpp
@ -152,5 +151,3 @@ void tstprod(const UDSPInstruction opc);
void abs(const UDSPInstruction opc); void abs(const UDSPInstruction opc);
} // namespace } // namespace
#endif // _DSPINTERPRETER_H

View File

@ -23,8 +23,7 @@
====================================================================*/ ====================================================================*/
#ifndef _GDSP_MEMORY_H #pragma once
#define _GDSP_MEMORY_H
#include "Common.h" #include "Common.h"
#include "DSPInterpreter.h" #include "DSPInterpreter.h"
@ -51,5 +50,3 @@ inline void dsp_skip_inst()
{ {
g_dsp.pc += opTable[dsp_peek_code()]->size; g_dsp.pc += opTable[dsp_peek_code()]->size;
} }
#endif

View File

@ -23,12 +23,9 @@
====================================================================*/ ====================================================================*/
#ifndef _DSP_STACKS_H #pragma once
#define _DSP_STACKS_H
#include "Common.h" #include "Common.h"
void dsp_reg_store_stack(int stack_reg, u16 val); void dsp_reg_store_stack(int stack_reg, u16 val);
u16 dsp_reg_load_stack(int stack_reg); u16 dsp_reg_load_stack(int stack_reg);
#endif

View File

@ -4,8 +4,7 @@
// Additional copyrights go to Duddie (c) 2005 (duddie@walla.com) // Additional copyrights go to Duddie (c) 2005 (duddie@walla.com)
#ifndef _DSPTABLES_H #pragma once
#define _DSPTABLES_H
//nclude "Common.h" //nclude "Common.h"
#include "DSPEmitter.h" #include "DSPEmitter.h"
@ -145,5 +144,3 @@ inline void ExecuteInstruction(const UDSPInstruction inst)
applyWriteBackLog(); applyWriteBackLog();
} }
} }
#endif // _DSPTABLES_H

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSPJITREGCACHE_H #pragma once
#define _DSPJITREGCACHE_H
#include "x64Emitter.h" #include "x64Emitter.h"
@ -186,5 +185,3 @@ public:
//unreserve the given host reg //unreserve the given host reg
void putXReg(Gen::X64Reg reg); void putXReg(Gen::X64Reg reg);
}; };
#endif /*_DSPJITREGCACHE_H*/

View File

@ -2,7 +2,4 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef __DSPJITUTIL_H__ #pragma once
#define __DSPJITUTIL_H__
#endif /*__DSPJITUTIL_H__*/

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _LABELMAP_H #pragma once
#define _LABELMAP_H
#include <string> #include <string>
#include <vector> #include <vector>
@ -38,5 +37,3 @@ public:
bool GetLabelValue(const std::string &label, u16 *value, LabelType type = LABEL_ANY) const; bool GetLabelValue(const std::string &label, u16 *value, LabelType type = LABEL_ANY) const;
void Clear(); void Clear();
}; };
#endif // _LABELMAP_H

View File

@ -22,8 +22,7 @@
====================================================================*/ ====================================================================*/
#ifndef _DSP_ASSEMBLE_H #pragma once
#define _DSP_ASSEMBLE_H
#include <string> #include <string>
#include <map> #include <map>
@ -135,5 +134,3 @@ private:
int m_current_param; int m_current_param;
const AssemblerSettings settings_; const AssemblerSettings settings_;
}; };
#endif // _DSP_ASSEMBLE_H

View File

@ -22,8 +22,7 @@
====================================================================*/ ====================================================================*/
#ifndef _DSP_DISASSEMBLE_H #pragma once
#define _DSP_DISASSEMBLE_H
#include <map> #include <map>
#include <vector> #include <vector>
@ -82,6 +81,3 @@ private:
LabelMap labels; LabelMap labels;
}; };
#endif // _DSP_DISASSEMBLE_H

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DSPEMULATOR_H_ #pragma once
#define _DSPEMULATOR_H_
#include "ChunkFile.h" #include "ChunkFile.h"
#include "SoundStream.h" #include "SoundStream.h"
@ -39,5 +38,3 @@ protected:
}; };
DSPEmulator *CreateDSPEmulator(bool HLE); DSPEmulator *CreateDSPEmulator(bool HLE);
#endif // _DSPEMULATOR_H_

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _DEBUGGER_SYMBOLMAP_H #pragma once
#define _DEBUGGER_SYMBOLMAP_H
#include <vector> #include <vector>
#include <string> #include <string>
@ -27,6 +26,3 @@ void AddAutoBreakpoints();
} // end of namespace Debugger } // end of namespace Debugger
#endif

View File

@ -6,8 +6,7 @@
// Purpose: uncompress the dumps from costis GC-Debugger tool // Purpose: uncompress the dumps from costis GC-Debugger tool
// //
// //
#ifndef _DUMP_H #pragma once
#define _DUMP_H
#include "Common.h" #include "Common.h"
@ -36,5 +35,3 @@ private:
u32 Read32(u32 _pos); u32 Read32(u32 _pos);
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef GCELF_H #pragma once
#define GCELF_H
// ELF File Types // ELF File Types
#define ET_NONE 0 // No file type #define ET_NONE 0 // No file type
@ -111,6 +110,3 @@ typedef struct
} Rela_Header; } Rela_Header;
const char ELFID[4] = {0x7F, 'E', 'L', 'F'}; const char ELFID[4] = {0x7F, 'E', 'L', 'F'};
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _PPCDEBUGINTERFACE_H #pragma once
#define _PPCDEBUGINTERFACE_H
#include <string> #include <string>
@ -43,6 +42,3 @@ public:
virtual std::string getDescription(unsigned int address) override; virtual std::string getDescription(unsigned int address) override;
virtual void showJitResults(u32 address) override; virtual void showJitResults(u32 address) override;
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _FIFOANALYZER_H #pragma once
#define _FIFOANALYZER_H
#include "Common.h" #include "Common.h"
@ -37,5 +36,3 @@ namespace FifoAnalyzer
u32 CalculateVertexSize(int vatIndex, const CPMemory &cpMem); u32 CalculateVertexSize(int vatIndex, const CPMemory &cpMem);
void CalculateVertexElementSizes(int sizes[], int vatIndex, const CPMemory &cpMem); void CalculateVertexElementSizes(int sizes[], int vatIndex, const CPMemory &cpMem);
} }
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _FIFODATAFILE_H_ #pragma once
#define _FIFODATAFILE_H_
#include "Common.h" #include "Common.h"
#include <vector> #include <vector>
@ -95,5 +94,3 @@ private:
std::vector<FifoFrameInfo> m_Frames; std::vector<FifoFrameInfo> m_Frames;
}; };
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _FIFOFILESTRUCT_H_ #pragma once
#define _FIFOFILESTRUCT_H_
#include "Common.h" #include "Common.h"
@ -68,5 +67,3 @@ struct FileMemoryUpdate
#pragma pack(pop) #pragma pack(pop)
} }
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef _FIFOPLAYBACKANALYZER_H_ #pragma once
#define _FIFOPLAYBACKANALYZER_H_
#include "FifoAnalyzer.h" #include "FifoAnalyzer.h"
#include "FifoDataFile.h" #include "FifoDataFile.h"
@ -47,5 +46,3 @@ private:
BPMemory m_BpMem; BPMemory m_BpMem;
FifoAnalyzer::CPMemory m_CpMem; FifoAnalyzer::CPMemory m_CpMem;
}; };
#endif

Some files were not shown because too many files have changed in this diff Show More