mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Core: Replace old include guard with pragma once
This commit is contained in:
committed by
lightningterror
parent
efc09a7b47
commit
15d8b891d6
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDVD_INTERNAL_H__
|
||||
#define __CDVD_INTERNAL_H__
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
Interrupts - values are flag bits.
|
||||
@@ -289,5 +288,3 @@ static u8 biosLangDefaults[8][16] =
|
||||
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // Free (Japanese, no examples to use)
|
||||
{0x30, 0x2B, 0x80, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4B}, // China (Simplified Chinese)
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,9 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDVD_DISC_READER_H__
|
||||
#define __CDVD_DISC_READER_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define NOMINMAX
|
||||
@@ -101,4 +99,3 @@ s32 cdvdDirectReadSector(u32 sector, s32 mode, u8* buffer);
|
||||
s32 cdvdGetMediaType();
|
||||
s32 cdvdRefreshData();
|
||||
void cdvdParseTOC();
|
||||
#endif /* __CDVD_DISC_READER_H__ */
|
||||
+1
-4
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDROM_H__
|
||||
#define __CDROM_H__
|
||||
#pragma once
|
||||
|
||||
#include "CDVDaccess.h"
|
||||
|
||||
@@ -99,5 +98,3 @@ void cdrWrite0(u8 rt);
|
||||
void cdrWrite1(u8 rt);
|
||||
void cdrWrite2(u8 rt);
|
||||
void cdrWrite3(u8 rt);
|
||||
|
||||
#endif /* __CDROM_H__ */
|
||||
|
||||
@@ -95,8 +95,7 @@ Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
|
||||
index in a file.
|
||||
*/
|
||||
|
||||
#ifndef __ZLIB_INDEXED_H__
|
||||
#define __ZLIB_INDEXED_H__
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -504,5 +503,3 @@ extract_ret:
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* __ZLIB_INDEXED_H__ */
|
||||
|
||||
+1
-5
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __COP0_H__
|
||||
#define __COP0_H__
|
||||
#pragma once
|
||||
|
||||
extern void WriteCP0Status(u32 value);
|
||||
extern void WriteCP0Config(u32 value);
|
||||
@@ -25,6 +24,3 @@ extern void MapTLB(int i);
|
||||
|
||||
extern void COP0_UpdatePCCR();
|
||||
extern void COP0_DiagnosticPCCR();
|
||||
|
||||
|
||||
#endif /* __COP0_H__ */
|
||||
|
||||
+1
-4
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CACHE_H__
|
||||
#define __CACHE_H__
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "SingleRegisterTypes.h"
|
||||
@@ -30,5 +29,3 @@ u16 readCache16(u32 mem);
|
||||
u32 readCache32(u32 mem);
|
||||
RETURNS_R64 readCache64(u32 mem);
|
||||
RETURNS_R128 readCache128(u32 mem);
|
||||
|
||||
#endif /* __CACHE_H__ */
|
||||
|
||||
+1
-3
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __DEV9_H__
|
||||
#define __DEV9_H__
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
@@ -722,4 +721,3 @@ void DEV9CheckChanges(const Pcsx2Config& old_config);
|
||||
#ifdef _WIN32
|
||||
#pragma warning(error : 4013)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+1
-4
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __ELF_H__
|
||||
#define __ELF_H__
|
||||
#pragma once
|
||||
|
||||
#include "common/SafeArray.h"
|
||||
#include "common/SafeArray.inl"
|
||||
@@ -164,5 +163,3 @@ extern u32 ElfEntry;
|
||||
extern std::pair<u32,u32> ElfTextRange;
|
||||
extern std::string LastELF;
|
||||
extern bool isPSXElf;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
// just result in the linker having to remove a whole lot of redundant/unused decoder
|
||||
// tables and static functions. -- air
|
||||
|
||||
#ifndef __VLC_H__
|
||||
#define __VLC_H__
|
||||
#pragma once
|
||||
|
||||
static __fi int GETWORD()
|
||||
{
|
||||
@@ -662,5 +661,3 @@ alignas(16) static const DCTtabSet DCT =
|
||||
{30,1,16}, {29,1,16}, {28,1,16}, {27,1,16} }
|
||||
|
||||
};
|
||||
|
||||
#endif//__VLC_H__
|
||||
|
||||
+1
-4
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __PSXBIOS_H__
|
||||
#define __PSXBIOS_H__
|
||||
#pragma once
|
||||
|
||||
#define IOP_ENOENT 2
|
||||
#define IOP_EIO 5
|
||||
@@ -87,5 +86,3 @@ namespace R3000A
|
||||
} // namespace R3000A
|
||||
|
||||
extern void Hle_SetElfPath(const char* elfFileName);
|
||||
|
||||
#endif /* __PSXBIOS_H__ */
|
||||
|
||||
+1
-4
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __PSXCOUNTERS_H__
|
||||
#define __PSXCOUNTERS_H__
|
||||
#pragma once
|
||||
|
||||
struct psxCounter {
|
||||
u64 count, target;
|
||||
@@ -44,5 +43,3 @@ extern void psxVBlankStart();
|
||||
extern void psxVBlankEnd();
|
||||
extern void psxCheckStartGate16(int i);
|
||||
extern void psxCheckEndGate16(int i);
|
||||
|
||||
#endif /* __PSXCOUNTERS_H__ */
|
||||
|
||||
+1
-4
@@ -14,8 +14,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __GTE_H__
|
||||
#define __GTE_H__
|
||||
#pragma once
|
||||
|
||||
void gteMFC2();
|
||||
void gteCFC2();
|
||||
@@ -46,5 +45,3 @@ void gteRTPT();
|
||||
void gteGPF();
|
||||
void gteGPL();
|
||||
void gteNCCT();
|
||||
|
||||
#endif /* __GTE_H__ */
|
||||
+1
-6
@@ -13,9 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __PSXSIO2_H__
|
||||
#define __PSXSIO2_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#define BUFSIZE 8448
|
||||
|
||||
@@ -91,6 +89,3 @@ void psxDma12(u32 madr, u32 bcr, u32 chcr);
|
||||
|
||||
void psxDMA11Interrupt();
|
||||
void psxDMA12Interrupt();
|
||||
|
||||
#endif /* __PSXSIO2_H__ */
|
||||
|
||||
|
||||
+1
-5
@@ -16,9 +16,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef __MDEC_H__
|
||||
#define __MDEC_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
// mdec status:
|
||||
#define MDEC_BUSY 0x20000000
|
||||
@@ -100,5 +98,3 @@ void iqtab_init(int *iqtab,unsigned char *iq_y);
|
||||
void round_init(void);
|
||||
void yuv2rgb24(int *blk,unsigned char *image);
|
||||
void yuv2rgb15(int *blk,u16 *image);
|
||||
|
||||
#endif /* __MDEC_H__ */
|
||||
|
||||
+1
-4
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __R3000A_H__
|
||||
#define __R3000A_H__
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -215,5 +214,3 @@ extern void (*psxCP2BSC[32])();
|
||||
|
||||
extern void psxBiosReset();
|
||||
extern bool psxBiosCall();
|
||||
|
||||
#endif /* __R3000A_H__ */
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
* You should have received a copy of the GNU General Public License along with PCSX2.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef _R5900_OPCODETABLES_H
|
||||
#define _R5900_OPCODETABLES_H
|
||||
#pragma once
|
||||
|
||||
#include "common/Pcsx2Defs.h"
|
||||
|
||||
@@ -931,5 +930,3 @@ void VRGET();
|
||||
void VRINIT();
|
||||
void VRXOR();
|
||||
//*******************END OF SPECIAL2 *********************
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __DECI2_H__
|
||||
#define __DECI2_H__
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "deci2_dcmp.h"
|
||||
@@ -61,5 +60,3 @@ extern s32 connected;
|
||||
|
||||
int writeData(const u8 *result);
|
||||
void exchangeSD(DECI2_HEADER *h);
|
||||
|
||||
#endif//__DECI2_H__
|
||||
|
||||
@@ -13,13 +13,10 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __DECI2DBGP_H__
|
||||
#define __DECI2DBGP_H__
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "deci2.h"
|
||||
|
||||
void D2_DBGP(const u8 *inbuffer, u8 *outbuffer, char *message, char *eepc, char *ioppc, char *eecy, char *iopcy);
|
||||
void sendBREAK(u8 source, u16 id, u8 code, u8 result, u8 count);
|
||||
|
||||
#endif//__DECI2DBGP_H__
|
||||
|
||||
@@ -13,13 +13,10 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __DECI2DCMP_H__
|
||||
#define __DECI2DCMP_H__
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "deci2.h"
|
||||
|
||||
void D2_DCMP(const u8 *inbuffer, u8 *outbuffer, char *message);
|
||||
void sendDCMP(u16 protocol, u8 source, u8 destination, u8 type, u8 code, char *data, int size);
|
||||
|
||||
#endif//__DECI2DCMP_H__
|
||||
|
||||
@@ -13,12 +13,9 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __DECI2DRFP_H__
|
||||
#define __DECI2DRFP_H__
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "deci2.h"
|
||||
|
||||
void D2_(char *inbuffer, char *outbuffer, char *message);
|
||||
|
||||
#endif//__DECI2DRFP_H__
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user