diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-02 20:11:48 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-02 20:12:47 +0200 |
| commit | d96d0d613806fd8d56eb8ae38bc41b89754f03de (patch) | |
| tree | 64496eefce479ce23727a151ee74411607a53659 | |
| parent | 231899b44a7294bb968c2a930c97f76990376f41 (diff) | |
[MHR-??] [META] refactor code.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
| -rw-r--r-- | NDKKit/AsmKit/AsmKit.hxx (renamed from NDKKit/AsmKit/AsmKit.hpp) | 6 | ||||
| -rw-r--r-- | NDKKit/AsmKit/CPU/32x0.hxx (renamed from NDKKit/AsmKit/CPU/32x0.hpp) | 2 | ||||
| -rw-r--r-- | NDKKit/AsmKit/CPU/64x0.hxx (renamed from NDKKit/AsmKit/CPU/64x0.hpp) | 2 | ||||
| -rw-r--r-- | NDKKit/AsmKit/CPU/amd64.hxx (renamed from NDKKit/AsmKit/CPU/amd64.hpp) | 2 | ||||
| -rw-r--r-- | NDKKit/AsmKit/CPU/arm64.hxx (renamed from NDKKit/AsmKit/CPU/arm64.hpp) | 2 | ||||
| -rw-r--r-- | NDKKit/AsmKit/CPU/ppc.hxx (renamed from NDKKit/AsmKit/CPU/ppc.hpp) | 0 | ||||
| -rw-r--r-- | NDKKit/Defines.hxx (renamed from NDKKit/Defines.hpp) | 0 | ||||
| -rw-r--r-- | NDKKit/Macros.hxx (renamed from NDKKit/Macros.hpp) | 0 | ||||
| -rw-r--r-- | NDKKit/NFC/AE.hxx (renamed from NDKKit/NFC/AE.hpp) | 2 | ||||
| -rw-r--r-- | NDKKit/NFC/ELF.hxx (renamed from NDKKit/NFC/ELF.hpp) | 0 | ||||
| -rw-r--r-- | NDKKit/NFC/ErrorID.hxx (renamed from NDKKit/NFC/ErrorID.hpp) | 4 | ||||
| -rw-r--r-- | NDKKit/NFC/ErrorOr.hxx (renamed from NDKKit/NFC/ErrorOr.hpp) | 4 | ||||
| -rw-r--r-- | NDKKit/NFC/PEF.hxx (renamed from NDKKit/NFC/PEF.hpp) | 2 | ||||
| -rw-r--r-- | NDKKit/NFC/Ref.hxx (renamed from NDKKit/NFC/Ref.hpp) | 0 | ||||
| -rw-r--r-- | NDKKit/NFC/String.hxx (renamed from NDKKit/NFC/String.hpp) | 4 | ||||
| -rw-r--r-- | NDKKit/NFC/XCOFF.hxx | 2 | ||||
| -rw-r--r-- | NDKKit/Parser.hxx (renamed from NDKKit/Parser.hpp) | 2 | ||||
| -rw-r--r-- | NDKKit/Sources/32asm.cxx | 8 | ||||
| -rw-r--r-- | NDKKit/Sources/64asm.cxx | 8 | ||||
| -rw-r--r-- | NDKKit/Sources/64x0-cc.cxx | 8 | ||||
| -rw-r--r-- | NDKKit/Sources/AssemblyFactory.cxx | 4 | ||||
| -rw-r--r-- | NDKKit/Sources/Detail/asmutils.hxx | 4 | ||||
| -rw-r--r-- | NDKKit/Sources/Detail/compilerutils.hxx | 4 | ||||
| -rw-r--r-- | NDKKit/Sources/String.cxx | 2 | ||||
| -rw-r--r-- | NDKKit/Sources/bpp.cxx | 4 | ||||
| -rw-r--r-- | NDKKit/Sources/coff2ae.cxx | 6 | ||||
| -rw-r--r-- | NDKKit/Sources/cplusplus.cxx | 6 | ||||
| -rw-r--r-- | NDKKit/Sources/elf2ae.cxx | 6 | ||||
| -rw-r--r-- | NDKKit/Sources/i64asm.cxx | 8 | ||||
| -rw-r--r-- | NDKKit/Sources/link.cxx | 14 | ||||
| -rw-r--r-- | NDKKit/Sources/power-as.cxx | 12 | ||||
| -rw-r--r-- | NDKKit/Sources/power-cc.cxx | 8 | ||||
| -rw-r--r-- | NDKKit/UUID.hxx (renamed from NDKKit/UUID.hpp) | 0 | ||||
| -rw-r--r-- | NDKKit/Version.hxx (renamed from NDKKit/Version.hpp) | 0 |
34 files changed, 68 insertions, 68 deletions
diff --git a/NDKKit/AsmKit/AsmKit.hpp b/NDKKit/AsmKit/AsmKit.hxx index 6074efc..f6e67f2 100644 --- a/NDKKit/AsmKit/AsmKit.hpp +++ b/NDKKit/AsmKit/AsmKit.hxx @@ -6,9 +6,9 @@ #pragma once -#include <NDKKit/Macros.hpp> -#include <NDKKit/Defines.hpp> -#include <NDKKit/NFC/String.hpp> +#include <NDKKit/Macros.hxx> +#include <NDKKit/Defines.hxx> +#include <NDKKit/NFC/String.hxx> namespace CompilerKit { diff --git a/NDKKit/AsmKit/CPU/32x0.hpp b/NDKKit/AsmKit/CPU/32x0.hxx index 7fa02ad..a24d17e 100644 --- a/NDKKit/AsmKit/CPU/32x0.hpp +++ b/NDKKit/AsmKit/CPU/32x0.hxx @@ -6,7 +6,7 @@ #pragma once -#include <NDKKit/Defines.hpp> +#include <NDKKit/Defines.hxx> // @brief 32x0 support. // @file CPU/32x0.hpp diff --git a/NDKKit/AsmKit/CPU/64x0.hpp b/NDKKit/AsmKit/CPU/64x0.hxx index 3bd1f80..d632fcc 100644 --- a/NDKKit/AsmKit/CPU/64x0.hpp +++ b/NDKKit/AsmKit/CPU/64x0.hxx @@ -6,7 +6,7 @@ #pragma once -#include <NDKKit/Defines.hpp> +#include <NDKKit/Defines.hxx> #include <vector> // @brief 64x0 support. diff --git a/NDKKit/AsmKit/CPU/amd64.hpp b/NDKKit/AsmKit/CPU/amd64.hxx index 3edd5ca..f932c72 100644 --- a/NDKKit/AsmKit/CPU/amd64.hpp +++ b/NDKKit/AsmKit/CPU/amd64.hxx @@ -6,7 +6,7 @@ #pragma once -#include <NDKKit/Defines.hpp> +#include <NDKKit/Defines.hxx> // @brief AMD64 support. // @file CPU/amd64.hpp diff --git a/NDKKit/AsmKit/CPU/arm64.hpp b/NDKKit/AsmKit/CPU/arm64.hxx index a63ddfb..09de3ee 100644 --- a/NDKKit/AsmKit/CPU/arm64.hpp +++ b/NDKKit/AsmKit/CPU/arm64.hxx @@ -6,7 +6,7 @@ Copyright ZKA Technologies #pragma once -#include <NDKKit/Defines.hpp> +#include <NDKKit/Defines.hxx> /// @brief ARM64 encoding support. /// @file CPU/arm64.hpp diff --git a/NDKKit/AsmKit/CPU/ppc.hpp b/NDKKit/AsmKit/CPU/ppc.hxx index e3ea6c5..e3ea6c5 100644 --- a/NDKKit/AsmKit/CPU/ppc.hpp +++ b/NDKKit/AsmKit/CPU/ppc.hxx diff --git a/NDKKit/Defines.hpp b/NDKKit/Defines.hxx index 31c1998..31c1998 100644 --- a/NDKKit/Defines.hpp +++ b/NDKKit/Defines.hxx diff --git a/NDKKit/Macros.hpp b/NDKKit/Macros.hxx index c190cda..c190cda 100644 --- a/NDKKit/Macros.hpp +++ b/NDKKit/Macros.hxx diff --git a/NDKKit/NFC/AE.hpp b/NDKKit/NFC/AE.hxx index 1c929f9..22ad05b 100644 --- a/NDKKit/NFC/AE.hpp +++ b/NDKKit/NFC/AE.hxx @@ -9,7 +9,7 @@ #pragma once -#include <NDKKit/Defines.hpp> +#include <NDKKit/Defines.hxx> #define kAEMag0 'A' #define kAEMag1 'E' diff --git a/NDKKit/NFC/ELF.hpp b/NDKKit/NFC/ELF.hxx index 4f0d0ae..4f0d0ae 100644 --- a/NDKKit/NFC/ELF.hpp +++ b/NDKKit/NFC/ELF.hxx diff --git a/NDKKit/NFC/ErrorID.hpp b/NDKKit/NFC/ErrorID.hxx index c45b4b0..9845a8b 100644 --- a/NDKKit/NFC/ErrorID.hpp +++ b/NDKKit/NFC/ErrorID.hxx @@ -9,8 +9,8 @@ #pragma once -#include <NDKKit/Defines.hpp> -#include <NDKKit/NFC/ErrorOr.hpp> +#include <NDKKit/Defines.hxx> +#include <NDKKit/NFC/ErrorOr.hxx> #define MPCC_EXEC_ERROR -30 #define MPCC_FILE_NOT_FOUND -31 diff --git a/NDKKit/NFC/ErrorOr.hpp b/NDKKit/NFC/ErrorOr.hxx index ed134a7..936654a 100644 --- a/NDKKit/NFC/ErrorOr.hpp +++ b/NDKKit/NFC/ErrorOr.hxx @@ -9,8 +9,8 @@ #pragma once -#include <NDKKit/Defines.hpp> -#include <NDKKit/NFC/Ref.hpp> +#include <NDKKit/Defines.hxx> +#include <NDKKit/NFC/Ref.hxx> namespace CompilerKit { diff --git a/NDKKit/NFC/PEF.hpp b/NDKKit/NFC/PEF.hxx index 2f460b7..f1cd8ec 100644 --- a/NDKKit/NFC/PEF.hpp +++ b/NDKKit/NFC/PEF.hxx @@ -6,7 +6,7 @@ #pragma once -#include <NDKKit/Defines.hpp> +#include <NDKKit/Defines.hxx> // @file PEF.hpp // @brief Preferred Executable Format diff --git a/NDKKit/NFC/Ref.hpp b/NDKKit/NFC/Ref.hxx index 0f9c0e3..0f9c0e3 100644 --- a/NDKKit/NFC/Ref.hpp +++ b/NDKKit/NFC/Ref.hxx diff --git a/NDKKit/NFC/String.hpp b/NDKKit/NFC/String.hxx index 200bf2c..395fe67 100644 --- a/NDKKit/NFC/String.hpp +++ b/NDKKit/NFC/String.hxx @@ -9,8 +9,8 @@ #pragma once -#include <NDKKit/Defines.hpp> -#include <NDKKit/NFC/ErrorOr.hpp> +#include <NDKKit/Defines.hxx> +#include <NDKKit/NFC/ErrorOr.hxx> namespace CompilerKit { diff --git a/NDKKit/NFC/XCOFF.hxx b/NDKKit/NFC/XCOFF.hxx index 57ecfd2..97d3ab6 100644 --- a/NDKKit/NFC/XCOFF.hxx +++ b/NDKKit/NFC/XCOFF.hxx @@ -14,7 +14,7 @@ #ifndef __XCOFF__ #define __XCOFF__ -#include <NDKKit/Defines.hpp> +#include <NDKKit/Defines.hxx> #define kXCOFF64Magic 0x01F7 diff --git a/NDKKit/Parser.hpp b/NDKKit/Parser.hxx index c67057d..43ecc4a 100644 --- a/NDKKit/Parser.hpp +++ b/NDKKit/Parser.hxx @@ -6,7 +6,7 @@ #pragma once -#include <NDKKit/AsmKit/AsmKit.hpp> +#include <NDKKit/AsmKit/AsmKit.hxx> #include <vector> namespace CompilerKit diff --git a/NDKKit/Sources/32asm.cxx b/NDKKit/Sources/32asm.cxx index 23111bc..4425e08 100644 --- a/NDKKit/Sources/32asm.cxx +++ b/NDKKit/Sources/32asm.cxx @@ -19,10 +19,10 @@ #define __ASM_NEED_32x0__ 1 -#include <NDKKit/AsmKit/CPU/32x0.hpp> -#include <NDKKit/Parser.hpp> -#include <NDKKit/NFC/AE.hpp> -#include <NDKKit/NFC/PEF.hpp> +#include <NDKKit/AsmKit/CPU/32x0.hxx> +#include <NDKKit/Parser.hxx> +#include <NDKKit/NFC/AE.hxx> +#include <NDKKit/NFC/PEF.hxx> #include <filesystem> #include <fstream> #include <iostream> diff --git a/NDKKit/Sources/64asm.cxx b/NDKKit/Sources/64asm.cxx index 0a92157..4e084e7 100644 --- a/NDKKit/Sources/64asm.cxx +++ b/NDKKit/Sources/64asm.cxx @@ -19,10 +19,10 @@ #define __ASM_NEED_64x0__ 1 -#include <NDKKit/AsmKit/CPU/64x0.hpp> -#include <NDKKit/Parser.hpp> -#include <NDKKit/NFC/AE.hpp> -#include <NDKKit/NFC/PEF.hpp> +#include <NDKKit/AsmKit/CPU/64x0.hxx> +#include <NDKKit/Parser.hxx> +#include <NDKKit/NFC/AE.hxx> +#include <NDKKit/NFC/PEF.hxx> #include <algorithm> #include <filesystem> #include <fstream> diff --git a/NDKKit/Sources/64x0-cc.cxx b/NDKKit/Sources/64x0-cc.cxx index 19d995d..f38bb28 100644 --- a/NDKKit/Sources/64x0-cc.cxx +++ b/NDKKit/Sources/64x0-cc.cxx @@ -10,9 +10,9 @@ /// BUGS: 0 /// TODO: none -#include <NDKKit/AsmKit/CPU/64x0.hpp> -#include <NDKKit/Parser.hpp> -#include <NDKKit/UUID.hpp> +#include <NDKKit/AsmKit/CPU/64x0.hxx> +#include <NDKKit/Parser.hxx> +#include <NDKKit/UUID.hxx> #include <filesystem> #include <cstdio> #include <fstream> @@ -1509,7 +1509,7 @@ public: ///////////////////////////////////////////////////////////////////////////////////////// -#include <Version.hpp> +#include <Version.hxx> #define kPrintF printf #define kSplashCxx() \ diff --git a/NDKKit/Sources/AssemblyFactory.cxx b/NDKKit/Sources/AssemblyFactory.cxx index 9f1b768..a04f4fc 100644 --- a/NDKKit/Sources/AssemblyFactory.cxx +++ b/NDKKit/Sources/AssemblyFactory.cxx @@ -4,8 +4,8 @@ ------------------------------------------- */ -#include <NDKKit/AsmKit/AsmKit.hpp> -#include <NDKKit/NFC/ErrorID.hpp> +#include <NDKKit/AsmKit/AsmKit.hxx> +#include <NDKKit/NFC/ErrorID.hxx> /** * @file AssemblyFactory.cxx diff --git a/NDKKit/Sources/Detail/asmutils.hxx b/NDKKit/Sources/Detail/asmutils.hxx index abb7f82..d65c991 100644 --- a/NDKKit/Sources/Detail/asmutils.hxx +++ b/NDKKit/Sources/Detail/asmutils.hxx @@ -6,8 +6,8 @@ #pragma once -#include <NDKKit/AsmKit/AsmKit.hpp> -#include <NDKKit/Parser.hpp> +#include <NDKKit/AsmKit/AsmKit.hxx> +#include <NDKKit/Parser.hxx> using namespace CompilerKit; diff --git a/NDKKit/Sources/Detail/compilerutils.hxx b/NDKKit/Sources/Detail/compilerutils.hxx index fd2b6d2..c4674e8 100644 --- a/NDKKit/Sources/Detail/compilerutils.hxx +++ b/NDKKit/Sources/Detail/compilerutils.hxx @@ -6,8 +6,8 @@ #pragma once -#include <NDKKit/AsmKit/AsmKit.hpp> -#include <NDKKit/Parser.hpp> +#include <NDKKit/AsmKit/AsmKit.hxx> +#include <NDKKit/Parser.hxx> #define kZero64Section ".zero64" #define kCode64Section ".code64" diff --git a/NDKKit/Sources/String.cxx b/NDKKit/Sources/String.cxx index f69f9b9..87f4721 100644 --- a/NDKKit/Sources/String.cxx +++ b/NDKKit/Sources/String.cxx @@ -18,7 +18,7 @@ * */ -#include <NDKKit/NFC/String.hpp> +#include <NDKKit/NFC/String.hxx> namespace CompilerKit { CharType *StringView::Data() { return m_Data; } diff --git a/NDKKit/Sources/bpp.cxx b/NDKKit/Sources/bpp.cxx index 9a2943c..6c8ab95 100644 --- a/NDKKit/Sources/bpp.cxx +++ b/NDKKit/Sources/bpp.cxx @@ -9,8 +9,8 @@ /// BUGS: 0 -#include <NDKKit/Parser.hpp> -#include <NDKKit/NFC/ErrorID.hpp> +#include <NDKKit/Parser.hxx> +#include <NDKKit/NFC/ErrorID.hxx> #include <algorithm> #include <filesystem> #include <fstream> diff --git a/NDKKit/Sources/coff2ae.cxx b/NDKKit/Sources/coff2ae.cxx index c9ea8c0..eb2e133 100644 --- a/NDKKit/Sources/coff2ae.cxx +++ b/NDKKit/Sources/coff2ae.cxx @@ -4,9 +4,9 @@ ------------------------------------------- */ -#include <NDKKit/Parser.hpp> -#include <NDKKit/NFC/AE.hpp> -#include <NDKKit/NFC/PEF.hpp> +#include <NDKKit/Parser.hxx> +#include <NDKKit/NFC/AE.hxx> +#include <NDKKit/NFC/PEF.hxx> #include <filesystem> #include <fstream> #include <iostream> diff --git a/NDKKit/Sources/cplusplus.cxx b/NDKKit/Sources/cplusplus.cxx index ae4a300..b8c73df 100644 --- a/NDKKit/Sources/cplusplus.cxx +++ b/NDKKit/Sources/cplusplus.cxx @@ -20,9 +20,9 @@ // import, @MLAutoRelease { ... }, fn foo() -> auto { ... } -#include <NDKKit/AsmKit/CPU/amd64.hpp> -#include <NDKKit/Parser.hpp> -#include <UUID.hpp> +#include <NDKKit/AsmKit/CPU/amd64.hxx> +#include <NDKKit/Parser.hxx> +#include <UUID.hxx> #include <cctype> #include <cstdio> diff --git a/NDKKit/Sources/elf2ae.cxx b/NDKKit/Sources/elf2ae.cxx index 451c706..eb5169e 100644 --- a/NDKKit/Sources/elf2ae.cxx +++ b/NDKKit/Sources/elf2ae.cxx @@ -4,9 +4,9 @@ ------------------------------------------- */ -#include <NDKKit/Parser.hpp> -#include <NDKKit/NFC/AE.hpp> -#include <NDKKit/NFC/PEF.hpp> +#include <NDKKit/Parser.hxx> +#include <NDKKit/NFC/AE.hxx> +#include <NDKKit/NFC/PEF.hxx> #include <filesystem> #include <fstream> #include <iostream> diff --git a/NDKKit/Sources/i64asm.cxx b/NDKKit/Sources/i64asm.cxx index ed77988..c2ce4ac 100644 --- a/NDKKit/Sources/i64asm.cxx +++ b/NDKKit/Sources/i64asm.cxx @@ -27,10 +27,10 @@ #define kAssemblerPragmaSymStr "#" #define kAssemblerPragmaSym '#' -#include <NDKKit/AsmKit/CPU/amd64.hpp> -#include <NDKKit/Parser.hpp> -#include <NDKKit/NFC/AE.hpp> -#include <NDKKit/NFC/PEF.hpp> +#include <NDKKit/AsmKit/CPU/amd64.hxx> +#include <NDKKit/Parser.hxx> +#include <NDKKit/NFC/AE.hxx> +#include <NDKKit/NFC/PEF.hxx> #include <algorithm> #include <cstdlib> #include <filesystem> diff --git a/NDKKit/Sources/link.cxx b/NDKKit/Sources/link.cxx index 0708bd0..db28a32 100644 --- a/NDKKit/Sources/link.cxx +++ b/NDKKit/Sources/link.cxx @@ -13,23 +13,23 @@ /// @note Do not look up for anything with .code64/.data64/.zero64! /// It will be loaded when program will start up! -#include <NDKKit/NFC/ErrorID.hpp> +#include <NDKKit/NFC/ErrorID.hxx> //! Assembler Kit -#include <NDKKit/AsmKit/AsmKit.hpp> +#include <NDKKit/AsmKit/AsmKit.hxx> //! Preferred Executable Format -#include <NDKKit/NFC/PEF.hpp> -#include <NDKKit/UUID.hpp> +#include <NDKKit/NFC/PEF.hxx> +#include <NDKKit/UUID.hxx> #include <filesystem> #include <random> #include <vector> //! Dist version -#include <NDKKit/Version.hpp> +#include <NDKKit/Version.hxx> //! Advanced Executable Object Format -#include <NDKKit/NFC/AE.hpp> +#include <NDKKit/NFC/AE.hxx> //! C++ I/O headers. #include <fstream> @@ -515,7 +515,7 @@ NDK_MODULE(NewOSLinker) std::string timeStampStr = "Container:BuildEpoch:"; timeStampStr += std::to_string(timestamp); - strcpy(dateHeader.Name, timeStampStr.c_str()); + strncpy(dateHeader.Name, timeStampStr.c_str(), timeStampStr.size()); dateHeader.Flags = 0; dateHeader.Kind = CompilerKit::kPefZero; diff --git a/NDKKit/Sources/power-as.cxx b/NDKKit/Sources/power-as.cxx index 8a6b7ef..81cfc15 100644 --- a/NDKKit/Sources/power-as.cxx +++ b/NDKKit/Sources/power-as.cxx @@ -17,12 +17,12 @@ #define __ASM_NEED_PPC__ 1 -#include <NDKKit/NFC/ErrorID.hpp> -#include <NDKKit/AsmKit/CPU/ppc.hpp> -#include <NDKKit/NFC/PEF.hpp> -#include <NDKKit/Parser.hpp> -#include <NDKKit/NFC/AE.hpp> -#include <NDKKit/Version.hpp> +#include <NDKKit/NFC/ErrorID.hxx> +#include <NDKKit/AsmKit/CPU/ppc.hxx> +#include <NDKKit/NFC/PEF.hxx> +#include <NDKKit/Parser.hxx> +#include <NDKKit/NFC/AE.hxx> +#include <NDKKit/Version.hxx> #include <filesystem> #include <algorithm> #include <iostream> diff --git a/NDKKit/Sources/power-cc.cxx b/NDKKit/Sources/power-cc.cxx index 4c07a04..deddcfd 100644 --- a/NDKKit/Sources/power-cc.cxx +++ b/NDKKit/Sources/power-cc.cxx @@ -7,9 +7,9 @@ * ======================================================== */ -#include <NDKKit/AsmKit/CPU/ppc.hpp> -#include <NDKKit/Parser.hpp> -#include <NDKKit/UUID.hpp> +#include <NDKKit/AsmKit/CPU/ppc.hxx> +#include <NDKKit/Parser.hxx> +#include <NDKKit/UUID.hxx> #include <filesystem> #include <fstream> #include <iostream> @@ -1527,7 +1527,7 @@ public: ///////////////////////////////////////////////////////////////////////////////////////// -#include <Version.hpp> +#include <Version.hxx> #define kPrintF printf #define kSplashCxx() \ diff --git a/NDKKit/UUID.hpp b/NDKKit/UUID.hxx index 00b153b..00b153b 100644 --- a/NDKKit/UUID.hpp +++ b/NDKKit/UUID.hxx diff --git a/NDKKit/Version.hpp b/NDKKit/Version.hxx index 38fd537..38fd537 100644 --- a/NDKKit/Version.hpp +++ b/NDKKit/Version.hxx |
