diff options
Diffstat (limited to 'include/CompilerKit')
| -rw-r--r-- | include/CompilerKit/AST.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/CodeGenerator.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Detail/32x0.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Detail/64x0.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Detail/AMD64.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Detail/Aarch64.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Detail/Power64.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/ErrorID.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/ErrorOr.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/PEF.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Ref.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Utilities/Assembler.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Utilities/Compiler.h | 5 | ||||
| -rw-r--r-- | include/CompilerKit/Utilities/DLL.h | 5 |
14 files changed, 56 insertions, 14 deletions
diff --git a/include/CompilerKit/AST.h b/include/CompilerKit/AST.h index 2d63a1f..8f6b8fb 100644 --- a/include/CompilerKit/AST.h +++ b/include/CompilerKit/AST.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_AST_H +#define NECTAR_COMPILERKIT_AST_H #include <CompilerKit/CodeGenerator.h> #include <vector> @@ -169,3 +170,5 @@ class ICompilerFrontend { } // namespace CompilerKit #include <CompilerKit/AST.inl> + +#endif // NECTAR_COMPILERKIT_AST_H diff --git a/include/CompilerKit/CodeGenerator.h b/include/CompilerKit/CodeGenerator.h index 28e9534..02202c3 100644 --- a/include/CompilerKit/CodeGenerator.h +++ b/include/CompilerKit/CodeGenerator.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_CODEGENERATOR_H +#define NECTAR_COMPILERKIT_CODEGENERATOR_H #include <CompilerKit/Detail/Config.h> #include <CompilerKit/Macros.h> @@ -235,3 +236,5 @@ class EncoderPowerPC final : public IAssemblyEncoder { #endif // __ASM_NEED_32x0__ } // namespace CompilerKit +#endif // NECTAR_COMPILERKIT_CODEGENERATOR_H + diff --git a/include/CompilerKit/Detail/32x0.h b/include/CompilerKit/Detail/32x0.h index 0bd43ee..eb68a5b 100644 --- a/include/CompilerKit/Detail/32x0.h +++ b/include/CompilerKit/Detail/32x0.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_DETAIL_32X0_H +#define NECTAR_COMPILERKIT_DETAIL_32X0_H #include <CompilerKit/Detail/Config.h> #include <vector> @@ -93,3 +94,5 @@ inline std::vector<CpuCode32x0> kOpcodes32x0 = { //////////////////////////////// +#endif // NECTAR_COMPILERKIT_DETAIL_32X0_H + diff --git a/include/CompilerKit/Detail/64x0.h b/include/CompilerKit/Detail/64x0.h index b7fca8a..374ac76 100644 --- a/include/CompilerKit/Detail/64x0.h +++ b/include/CompilerKit/Detail/64x0.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_DETAIL_64X0_H +#define NECTAR_COMPILERKIT_DETAIL_64X0_H #include <CompilerKit/Detail/Config.h> #include <vector> @@ -99,3 +100,5 @@ inline std::vector<CpuOpcode64x0> kOpcodes64x0 = { //////////////////////////////// +#endif // NECTAR_COMPILERKIT_DETAIL_64X0_H + diff --git a/include/CompilerKit/Detail/AMD64.h b/include/CompilerKit/Detail/AMD64.h index 4bc469a..fcf7867 100644 --- a/include/CompilerKit/Detail/AMD64.h +++ b/include/CompilerKit/Detail/AMD64.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_DETAIL_AMD64_H +#define NECTAR_COMPILERKIT_DETAIL_AMD64_H #include <CompilerKit/Detail/Config.h> #include <vector> @@ -49,3 +50,5 @@ inline std::vector<CpuOpcodeAMD64> kOpcodesAMD64 = { #define kAsmRegisterLimit 16 +#endif // NECTAR_COMPILERKIT_DETAIL_AMD64_H + diff --git a/include/CompilerKit/Detail/Aarch64.h b/include/CompilerKit/Detail/Aarch64.h index fdfd2d9..e12262b 100644 --- a/include/CompilerKit/Detail/Aarch64.h +++ b/include/CompilerKit/Detail/Aarch64.h @@ -4,7 +4,8 @@ Copyright (C) 2024-2025 Amlal El Mahrouss, licensed under the Apache 2.0 license ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_DETAIL_AARCH64_H +#define NECTAR_COMPILERKIT_DETAIL_AARCH64_H #include <CompilerKit/Detail/Config.h> #include <stdint.h> @@ -40,3 +41,5 @@ typedef struct { #define kAsmRegisterPrefix "x" #define kOpcodeARM64Count (1000) +#endif // NECTAR_COMPILERKIT_DETAIL_AARCH64_H + diff --git a/include/CompilerKit/Detail/Power64.h b/include/CompilerKit/Detail/Power64.h index c3c15c4..48d09dc 100644 --- a/include/CompilerKit/Detail/Power64.h +++ b/include/CompilerKit/Detail/Power64.h @@ -8,7 +8,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_DETAIL_POWER64_H +#define NECTAR_COMPILERKIT_DETAIL_POWER64_H #include <stdint.h> @@ -1556,3 +1557,5 @@ inline CpuOpcodePPC kOpcodesPowerPC[] = { /* return address register */ #define kAsmRetRegister 19 +#endif // NECTAR_COMPILERKIT_DETAIL_POWER64_H + diff --git a/include/CompilerKit/ErrorID.h b/include/CompilerKit/ErrorID.h index 1424014..0a2e666 100644 --- a/include/CompilerKit/ErrorID.h +++ b/include/CompilerKit/ErrorID.h @@ -7,7 +7,8 @@ * ======================================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_ERRORID_H +#define NECTAR_COMPILERKIT_ERRORID_H #include <CompilerKit/Detail/Config.h> @@ -28,3 +29,5 @@ #define NECTAR_FAT_ERROR -37 #define NECTAR_INVALID_ARCH -38 +#endif // NECTAR_COMPILERKIT_ERRORID_H + diff --git a/include/CompilerKit/ErrorOr.h b/include/CompilerKit/ErrorOr.h index 8bb1b96..7891c4e 100644 --- a/include/CompilerKit/ErrorOr.h +++ b/include/CompilerKit/ErrorOr.h @@ -7,7 +7,8 @@ * ======================================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_ERROROR_H +#define NECTAR_COMPILERKIT_ERROROR_H /// =========================================================== /// /// @file ErrorOr.h @@ -57,3 +58,5 @@ using ErrorOrAny = ErrorOr<VoidPtr>; using ErrorOrString = ErrorOr<STLString>; } // namespace CompilerKit +#endif // NECTAR_COMPILERKIT_ERROROR_H + diff --git a/include/CompilerKit/PEF.h b/include/CompilerKit/PEF.h index ae3979c..9655dd9 100644 --- a/include/CompilerKit/PEF.h +++ b/include/CompilerKit/PEF.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_PEF_H +#define NECTAR_COMPILERKIT_PEF_H #include <CompilerKit/Detail/Config.h> #include <fstream> @@ -137,3 +138,5 @@ inline std::ifstream& operator>>(std::ifstream& fp, CompilerKit::PEFCommandHeade return fp; } +#endif // NECTAR_COMPILERKIT_PEF_H + diff --git a/include/CompilerKit/Ref.h b/include/CompilerKit/Ref.h index 400f9f8..5717a3a 100644 --- a/include/CompilerKit/Ref.h +++ b/include/CompilerKit/Ref.h @@ -8,7 +8,8 @@ * ======================================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_REF_H +#define NECTAR_COMPILERKIT_REF_H #include <CompilerKit/Detail/Config.h> @@ -97,3 +98,5 @@ using StrongAny = StrongRef<VoidPtr>; using WeakAny = WeakRef<VoidPtr>; } // namespace CompilerKit +#endif // NECTAR_COMPILERKIT_REF_H + diff --git a/include/CompilerKit/Utilities/Assembler.h b/include/CompilerKit/Utilities/Assembler.h index e13f1af..e43d451 100644 --- a/include/CompilerKit/Utilities/Assembler.h +++ b/include/CompilerKit/Utilities/Assembler.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_UTILITIES_ASSEMBLER_H +#define NECTAR_COMPILERKIT_UTILITIES_ASSEMBLER_H #include <CompilerKit/AST.h> #include <CompilerKit/CodeGenerator.h> @@ -94,3 +95,5 @@ inline NumberCast32 GetNumber32(STLString lineBuffer, STLString numberKey) { } } } // namespace CompilerKit + +#endif // NECTAR_COMPILERKIT_UTILITIES_ASSEMBLER_H diff --git a/include/CompilerKit/Utilities/Compiler.h b/include/CompilerKit/Utilities/Compiler.h index 94060ea..8d00de0 100644 --- a/include/CompilerKit/Utilities/Compiler.h +++ b/include/CompilerKit/Utilities/Compiler.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_UTILITIES_COMPILER_H +#define NECTAR_COMPILERKIT_UTILITIES_COMPILER_H #include <CompilerKit/AST.h> #include <CompilerKit/CodeGenerator.h> @@ -120,3 +121,5 @@ inline void drvi_crash_handler(std::int32_t id) { } } // namespace CompilerKit::Detail +#endif // NECTAR_COMPILERKIT_UTILITIES_COMPILER_H + diff --git a/include/CompilerKit/Utilities/DLL.h b/include/CompilerKit/Utilities/DLL.h index c6fcd49..1f84bb8 100644 --- a/include/CompilerKit/Utilities/DLL.h +++ b/include/CompilerKit/Utilities/DLL.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef NECTAR_COMPILERKIT_UTILITIES_DLL_H +#define NECTAR_COMPILERKIT_UTILITIES_DLL_H #include <CompilerKit/Detail/Config.h> #include <dlfcn.h> @@ -68,3 +69,5 @@ class DLLLoader final { }; } // namespace CompilerKit +#endif // NECTAR_COMPILERKIT_UTILITIES_DLL_H + |
