From 9737dfad34ad3d6874545e9c8b5a1e6135e7abbb Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Sun, 13 Sep 2020 21:32:55 -0400 Subject: [PATCH] Add #pragma once to all headers Resolves #19 --- common/common_types.h | 2 ++ common/cross_sockets/xsocket.h | 2 ++ common/goal_constants.h | 2 ++ common/link_types.h | 2 ++ common/listener_common.h | 2 ++ common/symbols.h | 2 ++ common/type_system/Type.h | 2 ++ common/type_system/TypeSpec.h | 2 ++ common/type_system/TypeSystem.h | 2 ++ common/type_system/type_util.h | 2 ++ common/util/BinaryReader.h | 2 ++ common/util/BinaryWriter.h | 2 ++ common/util/DgoWriter.h | 2 ++ common/util/MatchParam.h | 2 ++ common/util/Timer.h | 2 ++ common/versions.h | 2 ++ decompiler/Disasm/Instruction.h | 2 ++ decompiler/Disasm/InstructionDecode.h | 2 ++ decompiler/Disasm/InstructionMatching.h | 2 ++ decompiler/Disasm/OpcodeInfo.h | 2 ++ decompiler/Disasm/Register.h | 2 ++ decompiler/Function/BasicBlocks.h | 2 ++ decompiler/Function/CfgVtx.h | 2 ++ decompiler/Function/Function.h | 2 ++ decompiler/ObjectFile/LinkedObjectFile.h | 2 ++ decompiler/ObjectFile/LinkedObjectFileCreation.h | 2 ++ decompiler/ObjectFile/LinkedWord.h | 2 ++ decompiler/ObjectFile/ObjectFileDB.h | 2 ++ decompiler/TypeSystem/GoalFunction.h | 2 ++ decompiler/TypeSystem/GoalSymbol.h | 2 ++ decompiler/TypeSystem/GoalType.h | 2 ++ decompiler/TypeSystem/TypeInfo.h | 2 ++ decompiler/TypeSystem/TypeSpec.h | 2 ++ decompiler/config.h | 2 ++ decompiler/util/FileIO.h | 2 ++ decompiler/util/LispPrint.h | 2 ++ game/common/dgo_rpc_types.h | 2 ++ game/common/loader_rpc_types.h | 2 ++ game/common/play_rpc_types.h | 2 ++ game/common/player_rpc_types.h | 2 ++ game/common/ramdisk_rpc_types.h | 2 ++ game/kernel/Ptr.h | 2 ++ game/kernel/fileio.h | 2 ++ game/kernel/kboot.h | 2 ++ game/kernel/kdgo.h | 2 ++ game/kernel/kdsnetm.h | 2 ++ game/kernel/klink.h | 2 ++ game/kernel/klisten.h | 2 ++ game/kernel/kmachine.h | 2 ++ game/kernel/kmalloc.h | 2 ++ game/kernel/kmemcard.h | 2 ++ game/kernel/kprint.h | 2 ++ game/kernel/kscheme.h | 2 ++ game/kernel/ksocket.h | 2 ++ game/kernel/ksound.h | 2 ++ game/overlord/dma.h | 2 ++ game/overlord/fake_iso.h | 2 ++ game/overlord/iso.h | 2 ++ game/overlord/iso_api.h | 2 ++ game/overlord/iso_cd.h | 2 ++ game/overlord/iso_queue.h | 2 ++ game/overlord/isocommon.h | 2 ++ game/overlord/overlord.h | 2 ++ game/overlord/ramdisk.h | 2 ++ game/overlord/sbank.h | 2 ++ game/overlord/soundcommon.h | 2 ++ game/overlord/srpc.h | 2 ++ game/overlord/ssound.h | 2 ++ game/overlord/stream.h | 2 ++ game/runtime.h | 2 ++ game/sce/deci2.h | 2 ++ game/sce/iop.h | 2 ++ game/sce/libcdvd_ee.h | 2 ++ game/sce/libscf.h | 2 ++ game/sce/sif_ee.h | 2 ++ game/sce/stubs.h | 2 ++ game/system/Deci2Server.h | 2 ++ game/system/IOP_Kernel.h | 2 ++ game/system/SystemThread.h | 2 ++ game/system/Timer.h | 2 ++ game/system/deci_common.h | 2 ++ game/system/iop_thread.h | 2 ++ goalc/compiler/CodeGenerator.h | 2 +- goalc/compiler/Compiler.h | 2 ++ goalc/compiler/CompilerSettings.h | 2 ++ goalc/compiler/Env.h | 2 ++ goalc/compiler/IR.h | 2 ++ goalc/compiler/Label.h | 2 ++ goalc/compiler/Lambda.h | 2 ++ goalc/compiler/StaticObject.h | 2 ++ goalc/compiler/Val.h | 2 ++ goalc/emitter/CodeTester.h | 2 ++ goalc/emitter/IGen.h | 2 ++ goalc/emitter/Instruction.h | 2 ++ goalc/emitter/ObjectFileData.h | 2 ++ goalc/emitter/ObjectGenerator.h | 2 ++ goalc/emitter/Register.h | 2 ++ goalc/goos/Interpreter.h | 2 ++ goalc/goos/Object.h | 2 ++ goalc/goos/Reader.h | 2 ++ goalc/goos/TextDB.h | 2 ++ goalc/listener/Listener.h | 2 ++ goalc/logger/Logger.h | 2 ++ goalc/regalloc/Allocator.h | 2 +- goalc/regalloc/Assignment.h | 2 ++ goalc/regalloc/IRegister.h | 2 ++ goalc/regalloc/LiveInfo.h | 2 +- goalc/regalloc/StackOp.h | 2 ++ goalc/regalloc/allocate.h | 2 ++ test/all_jak1_symbols.h | 2 ++ 110 files changed, 217 insertions(+), 3 deletions(-) diff --git a/common/common_types.h b/common/common_types.h index b4da746aaf..2ce985659a 100644 --- a/common/common_types.h +++ b/common/common_types.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file common_types.h * Common Integer Types. diff --git a/common/cross_sockets/xsocket.h b/common/cross_sockets/xsocket.h index d0e4bb1c16..d643f89b12 100644 --- a/common/cross_sockets/xsocket.h +++ b/common/cross_sockets/xsocket.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef __linux #include #include diff --git a/common/goal_constants.h b/common/goal_constants.h index 88d6896e2f..6fe677a659 100644 --- a/common/goal_constants.h +++ b/common/goal_constants.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_GOAL_CONSTANTS_H #define JAK_GOAL_CONSTANTS_H diff --git a/common/link_types.h b/common/link_types.h index ec70f63624..9572fda96b 100644 --- a/common/link_types.h +++ b/common/link_types.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file link_types.h * Types used in the linking data, shared between the object file generator and the kernel's linker. diff --git a/common/listener_common.h b/common/listener_common.h index a589919ba6..d2c0d5a3cc 100644 --- a/common/listener_common.h +++ b/common/listener_common.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file listener_common.h * Common types shared between the compiler and the runtime for the listener connection. diff --git a/common/symbols.h b/common/symbols.h index a16cfcf543..fb2c3ab42f 100644 --- a/common/symbols.h +++ b/common/symbols.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file symbols.h * The location of fixed symbols in the GOAL symbol table. diff --git a/common/type_system/Type.h b/common/type_system/Type.h index a8c3474a3e..b9f8610e06 100644 --- a/common/type_system/Type.h +++ b/common/type_system/Type.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_TYPE_H #define JAK_TYPE_H diff --git a/common/type_system/TypeSpec.h b/common/type_system/TypeSpec.h index acb2bb9a2d..91aaebf3ba 100644 --- a/common/type_system/TypeSpec.h +++ b/common/type_system/TypeSpec.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file TypeSpec.h */ diff --git a/common/type_system/TypeSystem.h b/common/type_system/TypeSystem.h index b5612992ec..cf565008db 100644 --- a/common/type_system/TypeSystem.h +++ b/common/type_system/TypeSystem.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_TYPESYSTEM_H #define JAK_TYPESYSTEM_H diff --git a/common/type_system/type_util.h b/common/type_system/type_util.h index fcefbdd2ad..1375b1b203 100644 --- a/common/type_system/type_util.h +++ b/common/type_system/type_util.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_TYPE_UTIL_H #define JAK_TYPE_UTIL_H diff --git a/common/util/BinaryReader.h b/common/util/BinaryReader.h index c0e3c9746a..f6e4e135d2 100644 --- a/common/util/BinaryReader.h +++ b/common/util/BinaryReader.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_BINARYREADER_H #define JAK_V2_BINARYREADER_H diff --git a/common/util/BinaryWriter.h b/common/util/BinaryWriter.h index 8140e1ac59..d58fdedf22 100644 --- a/common/util/BinaryWriter.h +++ b/common/util/BinaryWriter.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_BINARYWRITER_H #define JAK_BINARYWRITER_H diff --git a/common/util/DgoWriter.h b/common/util/DgoWriter.h index 1781694b68..c59d1b7b0b 100644 --- a/common/util/DgoWriter.h +++ b/common/util/DgoWriter.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DGOWRITER_H #define JAK_DGOWRITER_H diff --git a/common/util/MatchParam.h b/common/util/MatchParam.h index 5c954ea725..0a2140ebff 100644 --- a/common/util/MatchParam.h +++ b/common/util/MatchParam.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK1_MATCHPARAM_H #define JAK1_MATCHPARAM_H diff --git a/common/util/Timer.h b/common/util/Timer.h index 5972020339..b2f3b1dc71 100644 --- a/common/util/Timer.h +++ b/common/util/Timer.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_TIMER_H #define JAK_V2_TIMER_H diff --git a/common/versions.h b/common/versions.h index 5ecb742ac8..a3098572a9 100644 --- a/common/versions.h +++ b/common/versions.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file versions.h * Version numbers for GOAL Language, Kernel, etc... diff --git a/decompiler/Disasm/Instruction.h b/decompiler/Disasm/Instruction.h index bdf999bcd9..ca3ab99a37 100644 --- a/decompiler/Disasm/Instruction.h +++ b/decompiler/Disasm/Instruction.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Instruction.h * An EE instruction, represented as an operation, plus a list of source/destination atoms. diff --git a/decompiler/Disasm/InstructionDecode.h b/decompiler/Disasm/InstructionDecode.h index 7cefc76e1d..137234eb2b 100644 --- a/decompiler/Disasm/InstructionDecode.h +++ b/decompiler/Disasm/InstructionDecode.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file InstructionDecode.h * The Instruction Decoder - converts a LinkedWord into a Instruction. diff --git a/decompiler/Disasm/InstructionMatching.h b/decompiler/Disasm/InstructionMatching.h index 54375d27a8..3fe9232e34 100644 --- a/decompiler/Disasm/InstructionMatching.h +++ b/decompiler/Disasm/InstructionMatching.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_INSTRUCTIONMATCHING_H #define JAK_DISASSEMBLER_INSTRUCTIONMATCHING_H diff --git a/decompiler/Disasm/OpcodeInfo.h b/decompiler/Disasm/OpcodeInfo.h index fd035a140c..23413bbcad 100644 --- a/decompiler/Disasm/OpcodeInfo.h +++ b/decompiler/Disasm/OpcodeInfo.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file OpcodeInfo.h * Decoding info for each opcode. diff --git a/decompiler/Disasm/Register.h b/decompiler/Disasm/Register.h index 2a8196800d..d6b48c3b16 100644 --- a/decompiler/Disasm/Register.h +++ b/decompiler/Disasm/Register.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Register.h * Representation of an EE register. diff --git a/decompiler/Function/BasicBlocks.h b/decompiler/Function/BasicBlocks.h index 3605fe96ec..42b1a1fedc 100644 --- a/decompiler/Function/BasicBlocks.h +++ b/decompiler/Function/BasicBlocks.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_BASICBLOCKS_H #define JAK_DISASSEMBLER_BASICBLOCKS_H diff --git a/decompiler/Function/CfgVtx.h b/decompiler/Function/CfgVtx.h index bf82158eb7..a19abb30cf 100644 --- a/decompiler/Function/CfgVtx.h +++ b/decompiler/Function/CfgVtx.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_CFGVTX_H #define JAK_DISASSEMBLER_CFGVTX_H diff --git a/decompiler/Function/Function.h b/decompiler/Function/Function.h index c972496229..f3fbdf96cb 100644 --- a/decompiler/Function/Function.h +++ b/decompiler/Function/Function.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef NEXT_FUNCTION_H #define NEXT_FUNCTION_H diff --git a/decompiler/ObjectFile/LinkedObjectFile.h b/decompiler/ObjectFile/LinkedObjectFile.h index f897b86475..7b535efbf9 100644 --- a/decompiler/ObjectFile/LinkedObjectFile.h +++ b/decompiler/ObjectFile/LinkedObjectFile.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file LinkedObjectFile.h * An object file's data with linking information included. diff --git a/decompiler/ObjectFile/LinkedObjectFileCreation.h b/decompiler/ObjectFile/LinkedObjectFileCreation.h index 245356b176..7faf3b602c 100644 --- a/decompiler/ObjectFile/LinkedObjectFileCreation.h +++ b/decompiler/ObjectFile/LinkedObjectFileCreation.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file LinkedObjectFileCreation.h * Create a LinkedObjectFile from raw object file data. diff --git a/decompiler/ObjectFile/LinkedWord.h b/decompiler/ObjectFile/LinkedWord.h index 559079c3a5..d1e3ff5b99 100644 --- a/decompiler/ObjectFile/LinkedWord.h +++ b/decompiler/ObjectFile/LinkedWord.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file LinkedWord.h * A word (4 bytes), possibly with some linking info. diff --git a/decompiler/ObjectFile/ObjectFileDB.h b/decompiler/ObjectFile/ObjectFileDB.h index 6a7fabda61..286005e93d 100644 --- a/decompiler/ObjectFile/ObjectFileDB.h +++ b/decompiler/ObjectFile/ObjectFileDB.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file ObjectFileDB.h * A "database" of object files found in DGO files. diff --git a/decompiler/TypeSystem/GoalFunction.h b/decompiler/TypeSystem/GoalFunction.h index 9f593a3ff7..c682ebc593 100644 --- a/decompiler/TypeSystem/GoalFunction.h +++ b/decompiler/TypeSystem/GoalFunction.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_GOALFUNCTION_H #define JAK_DISASSEMBLER_GOALFUNCTION_H diff --git a/decompiler/TypeSystem/GoalSymbol.h b/decompiler/TypeSystem/GoalSymbol.h index f4481f5d1e..5def7a1830 100644 --- a/decompiler/TypeSystem/GoalSymbol.h +++ b/decompiler/TypeSystem/GoalSymbol.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_GOALSYMBOL_H #define JAK_DISASSEMBLER_GOALSYMBOL_H diff --git a/decompiler/TypeSystem/GoalType.h b/decompiler/TypeSystem/GoalType.h index 553f3c91a8..56853fcbef 100644 --- a/decompiler/TypeSystem/GoalType.h +++ b/decompiler/TypeSystem/GoalType.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_GOALTYPE_H #define JAK_DISASSEMBLER_GOALTYPE_H diff --git a/decompiler/TypeSystem/TypeInfo.h b/decompiler/TypeSystem/TypeInfo.h index 4044d5aa07..3c67bae707 100644 --- a/decompiler/TypeSystem/TypeInfo.h +++ b/decompiler/TypeSystem/TypeInfo.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_TYPEINFO_H #define JAK_DISASSEMBLER_TYPEINFO_H diff --git a/decompiler/TypeSystem/TypeSpec.h b/decompiler/TypeSystem/TypeSpec.h index 6657362302..3ce0afa5e6 100644 --- a/decompiler/TypeSystem/TypeSpec.h +++ b/decompiler/TypeSystem/TypeSpec.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DISASSEMBLER_TYPESPEC_H #define JAK_DISASSEMBLER_TYPESPEC_H diff --git a/decompiler/config.h b/decompiler/config.h index bc8a401a50..c2c455741a 100644 --- a/decompiler/config.h +++ b/decompiler/config.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK2_DISASSEMBLER_CONFIG_H #define JAK2_DISASSEMBLER_CONFIG_H diff --git a/decompiler/util/FileIO.h b/decompiler/util/FileIO.h index 5893997f25..74354ce4ca 100644 --- a/decompiler/util/FileIO.h +++ b/decompiler/util/FileIO.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_FILEIO_H #define JAK_V2_FILEIO_H diff --git a/decompiler/util/LispPrint.h b/decompiler/util/LispPrint.h index 28eaf1f5db..a1b964dbdd 100644 --- a/decompiler/util/LispPrint.h +++ b/decompiler/util/LispPrint.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK2_DISASSEMBLER_LISPPRINT_H #define JAK2_DISASSEMBLER_LISPPRINT_H diff --git a/game/common/dgo_rpc_types.h b/game/common/dgo_rpc_types.h index 0a83f162ba..6675a66328 100644 --- a/game/common/dgo_rpc_types.h +++ b/game/common/dgo_rpc_types.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file dgo_rpc_types.h * Types used for the DGO Remote Procedure Call between the EE and the IOP diff --git a/game/common/loader_rpc_types.h b/game/common/loader_rpc_types.h index f4f8f1d7bb..f3a2968595 100644 --- a/game/common/loader_rpc_types.h +++ b/game/common/loader_rpc_types.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file loader_rpc_types.h * Types used for the Loader Remote Procedure Call between the EE and the IOP diff --git a/game/common/play_rpc_types.h b/game/common/play_rpc_types.h index 119d4cf04e..a467926dd0 100644 --- a/game/common/play_rpc_types.h +++ b/game/common/play_rpc_types.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file play_rpc_types.h * Types used for the play Remote Procedure Call between the EE and the IOP. diff --git a/game/common/player_rpc_types.h b/game/common/player_rpc_types.h index ef80030ed7..2c2d0f1fb5 100644 --- a/game/common/player_rpc_types.h +++ b/game/common/player_rpc_types.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file player_rpc_types.h * Types used for the player Remote Procedure Call between the EE and the IOP. diff --git a/game/common/ramdisk_rpc_types.h b/game/common/ramdisk_rpc_types.h index aa488d7a5d..23870b6d36 100644 --- a/game/common/ramdisk_rpc_types.h +++ b/game/common/ramdisk_rpc_types.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file ramdisk_rpc_types.h * Types used for the RamDisk Remote Procedure Call between the EE and the IOP diff --git a/game/kernel/Ptr.h b/game/kernel/Ptr.h index 9764de9fb4..225a23f579 100644 --- a/game/kernel/Ptr.h +++ b/game/kernel/Ptr.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Ptr.h * Representation of a GOAL pointer which can be converted to/from a C pointer. diff --git a/game/kernel/fileio.h b/game/kernel/fileio.h index d481c25d64..abd2b27e58 100644 --- a/game/kernel/fileio.h +++ b/game/kernel/fileio.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file fileio.h * GOAL Low-Level File I/O and String Utilities diff --git a/game/kernel/kboot.h b/game/kernel/kboot.h index 3ac75533e8..e9ac165d55 100644 --- a/game/kernel/kboot.h +++ b/game/kernel/kboot.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kboot.h * GOAL Boot. Contains the "main" function to launch GOAL runtime. diff --git a/game/kernel/kdgo.h b/game/kernel/kdgo.h index 69e8dcae2a..0135d7e555 100644 --- a/game/kernel/kdgo.h +++ b/game/kernel/kdgo.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kdgo.h * Loading DGO Files. Also has some general SIF RPC stuff used for RPCs other than DGO loading. diff --git a/game/kernel/kdsnetm.h b/game/kernel/kdsnetm.h index bdbef66096..7326f74f23 100644 --- a/game/kernel/kdsnetm.h +++ b/game/kernel/kdsnetm.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kdsnetm.h * Low-level DECI2 wrapper for ksocket diff --git a/game/kernel/klink.h b/game/kernel/klink.h index 2ba1eea78f..76f82e485f 100644 --- a/game/kernel/klink.h +++ b/game/kernel/klink.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file klink.cpp * GOAL Linker for x86-64 diff --git a/game/kernel/klisten.h b/game/kernel/klisten.h index faf656859c..f8781e33b6 100644 --- a/game/kernel/klisten.h +++ b/game/kernel/klisten.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file klisten.h * Implementation of the Listener protocol diff --git a/game/kernel/kmachine.h b/game/kernel/kmachine.h index 01ab86b10a..f60148326e 100644 --- a/game/kernel/kmachine.h +++ b/game/kernel/kmachine.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kmachine.h * GOAL Machine. Contains low-level hardware interfaces for GOAL. diff --git a/game/kernel/kmalloc.h b/game/kernel/kmalloc.h index 4969567277..4efbaea194 100644 --- a/game/kernel/kmalloc.h +++ b/game/kernel/kmalloc.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kmalloc.h * GOAL Kernel memory allocator. diff --git a/game/kernel/kmemcard.h b/game/kernel/kmemcard.h index e22474b24c..c19f52997e 100644 --- a/game/kernel/kmemcard.h +++ b/game/kernel/kmemcard.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kmemcard.h * Memory card interface. Very messy code. diff --git a/game/kernel/kprint.h b/game/kernel/kprint.h index 0c4d178b80..6364ab3e2c 100644 --- a/game/kernel/kprint.h +++ b/game/kernel/kprint.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kprint.h * GOAL Print. Contains GOAL I/O, Print, Format... diff --git a/game/kernel/kscheme.h b/game/kernel/kscheme.h index 5fa1bbf33e..69cfc1518e 100644 --- a/game/kernel/kscheme.h +++ b/game/kernel/kscheme.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file kscheme.h * Implementation of GOAL runtime. diff --git a/game/kernel/ksocket.h b/game/kernel/ksocket.h index 648033e83a..41397ff1a7 100644 --- a/game/kernel/ksocket.h +++ b/game/kernel/ksocket.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file ksocket.h * GOAL Socket connection to listener using DECI2/DSNET diff --git a/game/kernel/ksound.h b/game/kernel/ksound.h index 3dd047953b..865de08950 100644 --- a/game/kernel/ksound.h +++ b/game/kernel/ksound.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file ksound.h * There's not much here. My guess is this was set up as framework to match the kmachine.cpp format, diff --git a/game/overlord/dma.h b/game/overlord/dma.h index a973b7d499..aca9c0fb21 100644 --- a/game/overlord/dma.h +++ b/game/overlord/dma.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file dma.h * DMA Related functions for Overlord. diff --git a/game/overlord/fake_iso.h b/game/overlord/fake_iso.h index a120484ada..20c403b9ee 100644 --- a/game/overlord/fake_iso.h +++ b/game/overlord/fake_iso.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file fake_iso.h * This provides an implementation of IsoFs for reading a "fake iso". diff --git a/game/overlord/iso.h b/game/overlord/iso.h index 08477dbcbe..38d26fd370 100644 --- a/game/overlord/iso.h +++ b/game/overlord/iso.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file iso.h * CD/DVD Reading. diff --git a/game/overlord/iso_api.h b/game/overlord/iso_api.h index f3255f9214..caaadb4953 100644 --- a/game/overlord/iso_api.h +++ b/game/overlord/iso_api.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_ISO_API_H #define JAK_V2_ISO_API_H #include "isocommon.h" diff --git a/game/overlord/iso_cd.h b/game/overlord/iso_cd.h index 99a3e9b26e..922d207ea3 100644 --- a/game/overlord/iso_cd.h +++ b/game/overlord/iso_cd.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file iso_cd.cpp * IsoFs API for accessing the CD/DVD drive. diff --git a/game/overlord/iso_queue.h b/game/overlord/iso_queue.h index 283b6c4ef7..fcaa1a9ec0 100644 --- a/game/overlord/iso_queue.h +++ b/game/overlord/iso_queue.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_ISO_QUEUE_H #define JAK_V2_ISO_QUEUE_H diff --git a/game/overlord/isocommon.h b/game/overlord/isocommon.h index 1617b9a0dc..b5e29169fe 100644 --- a/game/overlord/isocommon.h +++ b/game/overlord/isocommon.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file isocommon.h * Common ISO utilities. diff --git a/game/overlord/overlord.h b/game/overlord/overlord.h index 18e3f14468..0648b29ca5 100644 --- a/game/overlord/overlord.h +++ b/game/overlord/overlord.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_OVERLORD_H #define JAK_V2_OVERLORD_H diff --git a/game/overlord/ramdisk.h b/game/overlord/ramdisk.h index 0fad7da8f3..bb64d0a76c 100644 --- a/game/overlord/ramdisk.h +++ b/game/overlord/ramdisk.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file ramdisk.cpp * A RAMDISK RPC for storing files in the extra RAM left over on the IOP. diff --git a/game/overlord/sbank.h b/game/overlord/sbank.h index 6ea2b8cbe5..557a8ba764 100644 --- a/game/overlord/sbank.h +++ b/game/overlord/sbank.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_SBANK_H #define JAK_V2_SBANK_H diff --git a/game/overlord/soundcommon.h b/game/overlord/soundcommon.h index 34bf6a8b76..20857c1dca 100644 --- a/game/overlord/soundcommon.h +++ b/game/overlord/soundcommon.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_SOUNDCOMMON_H #define JAK_V2_SOUNDCOMMON_H diff --git a/game/overlord/srpc.h b/game/overlord/srpc.h index 6cf282f62f..61d60095da 100644 --- a/game/overlord/srpc.h +++ b/game/overlord/srpc.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_SRPC_H #define JAK_V2_SRPC_H diff --git a/game/overlord/ssound.h b/game/overlord/ssound.h index e7451c135a..d467a70b74 100644 --- a/game/overlord/ssound.h +++ b/game/overlord/ssound.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_SSOUND_H #define JAK_V2_SSOUND_H diff --git a/game/overlord/stream.h b/game/overlord/stream.h index 6382244ea9..a06ac74e66 100644 --- a/game/overlord/stream.h +++ b/game/overlord/stream.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_V2_STREAM_H #define JAK_V2_STREAM_H diff --git a/game/runtime.h b/game/runtime.h index f2121d2c4b..3f526bd563 100644 --- a/game/runtime.h +++ b/game/runtime.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file runtime.h * Setup and launcher for the runtime. diff --git a/game/sce/deci2.h b/game/sce/deci2.h index bc29fc057a..b4149cde7c 100644 --- a/game/sce/deci2.h +++ b/game/sce/deci2.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file deci2.h * Implementation of SCE DECI2 library. diff --git a/game/sce/iop.h b/game/sce/iop.h index 5b65a0d5e0..f0ced35b3d 100644 --- a/game/sce/iop.h +++ b/game/sce/iop.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK1_IOP_H #define JAK1_IOP_H diff --git a/game/sce/libcdvd_ee.h b/game/sce/libcdvd_ee.h index 95625dda76..1fea511f7c 100644 --- a/game/sce/libcdvd_ee.h +++ b/game/sce/libcdvd_ee.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file libcdvd_ee.h * Stub implementation of the EE CD/DVD library diff --git a/game/sce/libscf.h b/game/sce/libscf.h index 662c005cde..f8e8c4b7df 100644 --- a/game/sce/libscf.h +++ b/game/sce/libscf.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK1_LIBSCF_H #define JAK1_LIBSCF_H diff --git a/game/sce/sif_ee.h b/game/sce/sif_ee.h index 3d3186e1b7..a027035905 100644 --- a/game/sce/sif_ee.h +++ b/game/sce/sif_ee.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK1_SIF_EE_H #define JAK1_SIF_EE_H diff --git a/game/sce/stubs.h b/game/sce/stubs.h index af4110d243..91d1b66b3a 100644 --- a/game/sce/stubs.h +++ b/game/sce/stubs.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK1_STUBS_H #define JAK1_STUBS_H diff --git a/game/system/Deci2Server.h b/game/system/Deci2Server.h index c8ddbaa1da..1bd164ffe6 100644 --- a/game/system/Deci2Server.h +++ b/game/system/Deci2Server.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Deci2Server.h * Basic implementation of a DECI2 server. diff --git a/game/system/IOP_Kernel.h b/game/system/IOP_Kernel.h index 488718ffce..c25d312322 100644 --- a/game/system/IOP_Kernel.h +++ b/game/system/IOP_Kernel.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_IOP_KERNEL_H #define JAK_IOP_KERNEL_H diff --git a/game/system/SystemThread.h b/game/system/SystemThread.h index 0a01af1837..f4caa2f47f 100644 --- a/game/system/SystemThread.h +++ b/game/system/SystemThread.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file SystemThread.h * Threads for the runtime. diff --git a/game/system/Timer.h b/game/system/Timer.h index fed4c826ce..cc7242bdad 100644 --- a/game/system/Timer.h +++ b/game/system/Timer.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef RUNTIME_TIMER_H #define RUNTIME_TIMER_H diff --git a/game/system/deci_common.h b/game/system/deci_common.h index 94760abca6..4adbcbace8 100644 --- a/game/system/deci_common.h +++ b/game/system/deci_common.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_DECIM_COMMON_H #define JAK_DECIM_COMMON_H #include "common/common_types.h" diff --git a/game/system/iop_thread.h b/game/system/iop_thread.h index 3b10645d6e..bd42fc127c 100644 --- a/game/system/iop_thread.h +++ b/game/system/iop_thread.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK1_IOP_THREAD_H #define JAK1_IOP_THREAD_H diff --git a/goalc/compiler/CodeGenerator.h b/goalc/compiler/CodeGenerator.h index a680447453..125ee3b677 100644 --- a/goalc/compiler/CodeGenerator.h +++ b/goalc/compiler/CodeGenerator.h @@ -1,4 +1,4 @@ - +#pragma once #ifndef JAK_CODEGENERATOR_H #define JAK_CODEGENERATOR_H diff --git a/goalc/compiler/Compiler.h b/goalc/compiler/Compiler.h index 2241a52e35..0df877bbbb 100644 --- a/goalc/compiler/Compiler.h +++ b/goalc/compiler/Compiler.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_COMPILER_H #define JAK_COMPILER_H diff --git a/goalc/compiler/CompilerSettings.h b/goalc/compiler/CompilerSettings.h index 6bf4badd45..0788653e57 100644 --- a/goalc/compiler/CompilerSettings.h +++ b/goalc/compiler/CompilerSettings.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_COMPILERSETTINGS_H #define JAK_COMPILERSETTINGS_H diff --git a/goalc/compiler/Env.h b/goalc/compiler/Env.h index 7f522bb3ac..3d7f6113a3 100644 --- a/goalc/compiler/Env.h +++ b/goalc/compiler/Env.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Env.h * The Env tree. The stores all of the nested scopes/contexts during compilation and also diff --git a/goalc/compiler/IR.h b/goalc/compiler/IR.h index 874289b150..75eac893e7 100644 --- a/goalc/compiler/IR.h +++ b/goalc/compiler/IR.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_IR_H #define JAK_IR_H diff --git a/goalc/compiler/Label.h b/goalc/compiler/Label.h index 61336994ab..d879846e18 100644 --- a/goalc/compiler/Label.h +++ b/goalc/compiler/Label.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_LABEL_H #define JAK_LABEL_H diff --git a/goalc/compiler/Lambda.h b/goalc/compiler/Lambda.h index 6fa1fc4e47..37762b549b 100644 --- a/goalc/compiler/Lambda.h +++ b/goalc/compiler/Lambda.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_LAMBDA_H #define JAK_LAMBDA_H diff --git a/goalc/compiler/StaticObject.h b/goalc/compiler/StaticObject.h index 4b116b6cb7..6e768ab1c6 100644 --- a/goalc/compiler/StaticObject.h +++ b/goalc/compiler/StaticObject.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_STATICOBJECT_H #define JAK_STATICOBJECT_H diff --git a/goalc/compiler/Val.h b/goalc/compiler/Val.h index 66190abc62..846f975620 100644 --- a/goalc/compiler/Val.h +++ b/goalc/compiler/Val.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Val.h * The GOAL Value. A value represents a place (where the value is stored) and a type. diff --git a/goalc/emitter/CodeTester.h b/goalc/emitter/CodeTester.h index ee174ac659..6c30b6930f 100644 --- a/goalc/emitter/CodeTester.h +++ b/goalc/emitter/CodeTester.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file CodeTester.h * The CodeTester is a utility to run the output of the compiler as part of a unit test. diff --git a/goalc/emitter/IGen.h b/goalc/emitter/IGen.h index 481e19f7b7..6d19fbcd88 100644 --- a/goalc/emitter/IGen.h +++ b/goalc/emitter/IGen.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_IGEN_H #define JAK_IGEN_H diff --git a/goalc/emitter/Instruction.h b/goalc/emitter/Instruction.h index cba31f888e..b4e19d6b35 100644 --- a/goalc/emitter/Instruction.h +++ b/goalc/emitter/Instruction.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_INSTRUCTION_H #define JAK_INSTRUCTION_H diff --git a/goalc/emitter/ObjectFileData.h b/goalc/emitter/ObjectFileData.h index 71f95414e7..8ae8565438 100644 --- a/goalc/emitter/ObjectFileData.h +++ b/goalc/emitter/ObjectFileData.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_OBJECTFILEDATA_H #define JAK_OBJECTFILEDATA_H diff --git a/goalc/emitter/ObjectGenerator.h b/goalc/emitter/ObjectGenerator.h index c8be6c6fd4..b6ec26c66f 100644 --- a/goalc/emitter/ObjectGenerator.h +++ b/goalc/emitter/ObjectGenerator.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_OBJECTGENERATOR_H #define JAK_OBJECTGENERATOR_H diff --git a/goalc/emitter/Register.h b/goalc/emitter/Register.h index 14a51132c7..94c83cd5ab 100644 --- a/goalc/emitter/Register.h +++ b/goalc/emitter/Register.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Register.h * Representation of an x86-64 Register. diff --git a/goalc/goos/Interpreter.h b/goalc/goos/Interpreter.h index ebc78906ab..6a643ce584 100644 --- a/goalc/goos/Interpreter.h +++ b/goalc/goos/Interpreter.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Interpreter.h * The GOOS Interpreter diff --git a/goalc/goos/Object.h b/goalc/goos/Object.h index 44fc1c9eef..70cd05e4ee 100644 --- a/goalc/goos/Object.h +++ b/goalc/goos/Object.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Object.h * An "Object" represents a scheme object. diff --git a/goalc/goos/Reader.h b/goalc/goos/Reader.h index 36920a737a..e234c07a5a 100644 --- a/goalc/goos/Reader.h +++ b/goalc/goos/Reader.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Reader.h * diff --git a/goalc/goos/TextDB.h b/goalc/goos/TextDB.h index 6abf8f7f60..cc86e2cd9d 100644 --- a/goalc/goos/TextDB.h +++ b/goalc/goos/TextDB.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file TextDB.h * The Text Database for storing source code text. diff --git a/goalc/listener/Listener.h b/goalc/listener/Listener.h index 0c16d3028a..437c38a033 100644 --- a/goalc/listener/Listener.h +++ b/goalc/listener/Listener.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file Listener.h * The Listener can connect to a Deci2Server for debugging. diff --git a/goalc/logger/Logger.h b/goalc/logger/Logger.h index 301e8a0912..d6fe5b0d4e 100644 --- a/goalc/logger/Logger.h +++ b/goalc/logger/Logger.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_LOGGER_H #define JAK_LOGGER_H diff --git a/goalc/regalloc/Allocator.h b/goalc/regalloc/Allocator.h index f6d0540a22..5e750da0f3 100644 --- a/goalc/regalloc/Allocator.h +++ b/goalc/regalloc/Allocator.h @@ -1,4 +1,4 @@ - +#pragma once #ifndef JAK_ALLOCATOR_H #define JAK_ALLOCATOR_H diff --git a/goalc/regalloc/Assignment.h b/goalc/regalloc/Assignment.h index fea9994a5b..eecd8821e9 100644 --- a/goalc/regalloc/Assignment.h +++ b/goalc/regalloc/Assignment.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK_ASSIGNMENT_H #define JAK_ASSIGNMENT_H diff --git a/goalc/regalloc/IRegister.h b/goalc/regalloc/IRegister.h index 71fefeea5c..51d07decb0 100644 --- a/goalc/regalloc/IRegister.h +++ b/goalc/regalloc/IRegister.h @@ -1,3 +1,5 @@ +#pragma once + /*! * IRegister is the Register for the Intermediate Representation. */ diff --git a/goalc/regalloc/LiveInfo.h b/goalc/regalloc/LiveInfo.h index 2af1007534..07095fa595 100644 --- a/goalc/regalloc/LiveInfo.h +++ b/goalc/regalloc/LiveInfo.h @@ -1,4 +1,4 @@ - +#pragma once #ifndef JAK_LIVEINFO_H #define JAK_LIVEINFO_H diff --git a/goalc/regalloc/StackOp.h b/goalc/regalloc/StackOp.h index fff5b7940f..8a0d363e14 100644 --- a/goalc/regalloc/StackOp.h +++ b/goalc/regalloc/StackOp.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file StackOp.h * An operation that's added to an Instruction so that it loads/stores things from the stack if diff --git a/goalc/regalloc/allocate.h b/goalc/regalloc/allocate.h index 46c3423cf4..63698467c9 100644 --- a/goalc/regalloc/allocate.h +++ b/goalc/regalloc/allocate.h @@ -1,3 +1,5 @@ +#pragma once + /*! * @file allocate.h * Interface for the register allocator. diff --git a/test/all_jak1_symbols.h b/test/all_jak1_symbols.h index ae8e5e8726..12702fa442 100644 --- a/test/all_jak1_symbols.h +++ b/test/all_jak1_symbols.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef JAK1_ALL_JAK1_SYMBOLS_H #define JAK1_ALL_JAK1_SYMBOLS_H