mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Common: Move headers over to using pragma once
Just makes the headers more consistent.
This commit is contained in:
parent
4ec30d98e1
commit
f0f7e48ef4
19 changed files with 25 additions and 83 deletions
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _JIT_ABI_H_
|
||||
#define _JIT_ABI_H_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
|
@ -77,7 +76,3 @@
|
|||
#endif // WIN32
|
||||
|
||||
#endif // X86
|
||||
|
||||
#endif // _JIT_ABI_H_
|
||||
|
||||
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _DOLPHIN_ARM_CODEGEN_
|
||||
#define _DOLPHIN_ARM_CODEGEN_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
@ -901,5 +900,3 @@ extern const VFPEnc VFPOps[16][2];
|
|||
extern const char *VFPOpNames[16];
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _ATOMIC_GCC_H_
|
||||
#define _ATOMIC_GCC_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef BLACKBERRY
|
||||
#include <atomic.h>
|
||||
|
@ -93,5 +92,3 @@ inline void AtomicStoreRelease(volatile u32& dest, u32 value) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _ATOMIC_WIN32_H_
|
||||
#define _ATOMIC_WIN32_H_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#ifndef _XBOX
|
||||
|
@ -85,5 +84,3 @@ inline void AtomicStoreRelease(volatile u32& dest, u32 value) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _ATOMIC_H_
|
||||
#define _ATOMIC_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
|
@ -28,5 +27,3 @@
|
|||
#include "Atomic_GCC.h"
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
// Detect the cpu, so we'll know which optimizations to use
|
||||
#ifndef _CPUDETECT_H_
|
||||
#define _CPUDETECT_H_
|
||||
#pragma once
|
||||
|
||||
// Every architecture has its own define. This needs to be added to.
|
||||
#if defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7S__)
|
||||
|
@ -102,5 +101,3 @@ private:
|
|||
};
|
||||
|
||||
extern CPUInfo cpu_info;
|
||||
|
||||
#endif // _CPUDETECT_H_
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _COMMON_H_
|
||||
#define _COMMON_H_
|
||||
#pragma once
|
||||
|
||||
// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
|
||||
// since it slows down the build a lot.
|
||||
|
@ -138,5 +137,3 @@ private:
|
|||
#endif
|
||||
|
||||
#include "Swap.h"
|
||||
|
||||
#endif // _COMMON_H_
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _CONSOLELISTENER_H
|
||||
#define _CONSOLELISTENER_H
|
||||
#pragma once
|
||||
|
||||
#include "LogManager.h"
|
||||
|
||||
|
@ -72,5 +71,3 @@ private:
|
|||
bool bHidden;
|
||||
bool bUseColor;
|
||||
};
|
||||
|
||||
#endif // _CONSOLELISTENER_H
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _FILEUTIL_H_
|
||||
#define _FILEUTIL_H_
|
||||
#pragma once
|
||||
|
||||
#include <fstream>
|
||||
#include <cstdio>
|
||||
|
@ -168,10 +167,10 @@ public:
|
|||
|
||||
// clear error state
|
||||
void Clear() {
|
||||
m_good = true;
|
||||
m_good = true;
|
||||
#undef clearerr
|
||||
std::clearerr(m_file);
|
||||
}
|
||||
std::clearerr(m_file);
|
||||
}
|
||||
|
||||
private:
|
||||
IOFile& operator=(const IOFile&) /*= delete*/;
|
||||
|
@ -181,5 +180,3 @@ private:
|
|||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _FIXED_SIZE_QUEUE_H_
|
||||
#define _FIXED_SIZE_QUEUE_H_
|
||||
#pragma once
|
||||
|
||||
#include <cstring>
|
||||
#include "ChunkFile.h"
|
||||
|
@ -225,5 +224,3 @@ private:
|
|||
volatile int curWriteBlock;
|
||||
};
|
||||
|
||||
#endif // _FIXED_SIZE_QUEUE_H_
|
||||
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _MEMARENA_H_
|
||||
#define _MEMARENA_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "CommonWindows.h"
|
||||
|
@ -46,5 +45,3 @@ private:
|
|||
int fd;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // _MEMARENA_H_
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _MEMORYUTIL_H
|
||||
#define _MEMORYUTIL_H
|
||||
#pragma once
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/mman.h>
|
||||
|
@ -83,5 +82,3 @@ private:
|
|||
T *buf_;
|
||||
size_t size_;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _MSGHANDLER_H_
|
||||
#define _MSGHANDLER_H_
|
||||
#pragma once
|
||||
|
||||
// Message alerts
|
||||
enum MSG_TYPE {
|
||||
|
@ -46,5 +45,3 @@ void SetEnableAlert(bool enable);
|
|||
#define PanicAlert(format, ...) ;
|
||||
#define PanicYesNo(format, ...) ;
|
||||
#endif
|
||||
|
||||
#endif // _MSGHANDLER_H_
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
|
||||
#ifndef MUTEX_H_
|
||||
#define MUTEX_H_
|
||||
#pragma once
|
||||
|
||||
#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__)
|
||||
|
||||
// Note: __MAC_10_7 is defined on 10.7+.
|
||||
|
@ -351,4 +350,3 @@ void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y)
|
|||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _STRINGUTIL_H_
|
||||
#define _STRINGUTIL_H_
|
||||
#pragma once
|
||||
|
||||
#include <base/stringutil.h>
|
||||
|
||||
|
@ -38,5 +37,3 @@ inline void CharArrayFromFormat(char (& out)[Count], const char* format, ...)
|
|||
|
||||
// "C:/Windows/winhelp.exe" to "C:/Windows/", "winhelp", ".exe"
|
||||
bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _pFilename, std::string* _pExtension);
|
||||
|
||||
#endif // _STRINGUTIL_H_
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _THUNK_H_
|
||||
#define _THUNK_H_
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
|
||||
|
@ -98,5 +97,3 @@ private:
|
|||
int ThunkStackOffset();
|
||||
int ThunkBytesNeeded();
|
||||
};
|
||||
|
||||
#endif // _THUNK_H_
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _TIMER_H_
|
||||
#define _TIMER_H_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include <string>
|
||||
|
@ -57,5 +56,3 @@ private:
|
|||
};
|
||||
|
||||
} // Namespace Common
|
||||
|
||||
#endif // _TIMER_H_
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
// http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.aixassem/doc/alangref/linkage_convent.htm
|
||||
// http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.aixassem/doc/alangref/instruction_set.htm
|
||||
|
||||
#ifndef _DOLPHIN_PPC_CODEGEN_
|
||||
#define _DOLPHIN_PPC_CODEGEN_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "MemoryUtil.h"
|
||||
|
@ -517,5 +516,3 @@ namespace PpcGen
|
|||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // _DOLPHIN_INTEL_CODEGEN_
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _X64ANALYZER_H_
|
||||
#define _X64ANALYZER_H_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
|
@ -46,7 +45,7 @@ struct ModRM
|
|||
}
|
||||
};
|
||||
|
||||
enum{
|
||||
enum {
|
||||
MOVZX_BYTE = 0xB6, //movzx on byte
|
||||
MOVZX_SHORT = 0xB7, //movzx on short
|
||||
MOVSX_BYTE = 0xBE, //movsx on byte
|
||||
|
@ -56,11 +55,9 @@ enum{
|
|||
MOVE_REG_TO_MEM = 0x89, //move reg to memory
|
||||
};
|
||||
|
||||
enum AccessType{
|
||||
enum AccessType {
|
||||
OP_ACCESS_READ = 0,
|
||||
OP_ACCESS_WRITE = 1
|
||||
};
|
||||
|
||||
bool DisassembleMov(const unsigned char *codePtr, InstructionInfo &info, int accessType);
|
||||
|
||||
#endif // _X64ANALYZER_H_
|
||||
|
|
Loading…
Add table
Reference in a new issue