diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-06 16:41:31 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-06 16:41:31 +0100 |
| commit | 3658cb8407814603aceaf2970a5c1016b6c9fdc8 (patch) | |
| tree | 070b8a2bfed27899f1baad50c99da13884d2471f /dev/CompilerKit/src | |
| parent | 555530e9de49324e2e5fed035418d32ac4045608 (diff) | |
feat! breaking API changes before NeKernel.org 0.0.4.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/CompilerKit/src')
| -rw-r--r-- | dev/CompilerKit/src/AssemblyFactory.cc (renamed from dev/CompilerKit/src/CodeGen.cc) | 6 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Backend/Assembler32x0.cc | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Backend/Assembler64x0.cc | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Backend/AssemblerARM64.cc | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Backend/AssemblerPowerPC.cc | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Frontend/CCompiler64x0.cc | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Frontend/CCompilerARM64.cc | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Frontend/CCompilerPower64.cc | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/FrontendHelpers.cc (renamed from dev/CompilerKit/src/Frontend.cc) | 0 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc | 5 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc (renamed from dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc) | 2 | ||||
| -rw-r--r-- | dev/CompilerKit/src/StringKit.cc (renamed from dev/CompilerKit/src/BasicString.cc) | 5 |
12 files changed, 16 insertions, 16 deletions
diff --git a/dev/CompilerKit/src/CodeGen.cc b/dev/CompilerKit/src/AssemblyFactory.cc index 693d7a5..1f08b32 100644 --- a/dev/CompilerKit/src/CodeGen.cc +++ b/dev/CompilerKit/src/AssemblyFactory.cc @@ -4,13 +4,13 @@ ------------------------------------------- */ -#include <CompilerKit/CodeGen.h> +#include <CompilerKit/Compiler.h> #include <CompilerKit/ErrorID.h> /** - * @file CodeGen.cc + * @file AssemblyFactory.cc * @author Amlal El Mahrouss (amlal@nekernel.org) - * @brief CodeGen API of NeCTI + * @brief Compiler API of NeCTI * @version 0.0.2 * * @copyright Copyright (c) 2024-2025 Amlal El Mahrouss diff --git a/dev/CompilerKit/src/Backend/Assembler32x0.cc b/dev/CompilerKit/src/Backend/Assembler32x0.cc index bc52d25..a7cb022 100644 --- a/dev/CompilerKit/src/Backend/Assembler32x0.cc +++ b/dev/CompilerKit/src/Backend/Assembler32x0.cc @@ -8,7 +8,7 @@ ///////////////////////////////////////////////////////////////////////////////////////// -// @file 32asm.cxx +// @file 32asm.cc // @author EL Mahrouss Amlal // @brief 32x0 Assembler. diff --git a/dev/CompilerKit/src/Backend/Assembler64x0.cc b/dev/CompilerKit/src/Backend/Assembler64x0.cc index 511c64d..6bc8842 100644 --- a/dev/CompilerKit/src/Backend/Assembler64x0.cc +++ b/dev/CompilerKit/src/Backend/Assembler64x0.cc @@ -8,7 +8,7 @@ ///////////////////////////////////////////////////////////////////////////////////////// -// @file Assembler64x0.cxx +// @file Assembler64x0.cc // @author EL Mahrouss Amlal // @brief 64x000 Assembler. diff --git a/dev/CompilerKit/src/Backend/AssemblerARM64.cc b/dev/CompilerKit/src/Backend/AssemblerARM64.cc index 6890b2c..331e708 100644 --- a/dev/CompilerKit/src/Backend/AssemblerARM64.cc +++ b/dev/CompilerKit/src/Backend/AssemblerARM64.cc @@ -6,7 +6,7 @@ ///////////////////////////////////////////////////////////////////////////////////////// -/// @file AssemblerARM64.cxx +/// @file AssemblerARM64.cc /// @author EL Mahrouss Amlal /// @brief 'ACORN' Assembler. diff --git a/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc b/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc index b02a112..bbb5a8b 100644 --- a/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc +++ b/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc @@ -6,7 +6,7 @@ ///////////////////////////////////////////////////////////////////////////////////////// -/// @file AssemblerPower.cxx +/// @file AssemblerPower.cc /// @author EL Mahrouss Amlal /// @brief POWER Assembler. diff --git a/dev/CompilerKit/src/Frontend/CCompiler64x0.cc b/dev/CompilerKit/src/Frontend/CCompiler64x0.cc index 6ee7e32..1221521 100644 --- a/dev/CompilerKit/src/Frontend/CCompiler64x0.cc +++ b/dev/CompilerKit/src/Frontend/CCompiler64x0.cc @@ -28,7 +28,7 @@ /* (c) Amlal El Mahrouss */ /// @author EL Mahrouss Amlal (amlel) -/// @file 64x0-cc.cxx +/// @file 64x0-cc.cc /// @brief 64x0 C Compiler. /// TODO: support structures, else if, else, . and -> diff --git a/dev/CompilerKit/src/Frontend/CCompilerARM64.cc b/dev/CompilerKit/src/Frontend/CCompilerARM64.cc index 1c1582f..6795c67 100644 --- a/dev/CompilerKit/src/Frontend/CCompilerARM64.cc +++ b/dev/CompilerKit/src/Frontend/CCompilerARM64.cc @@ -29,7 +29,7 @@ /* (c) Amlal El Mahrouss */ /// @author EL Mahrouss Amlal (amlel) -/// @file ARM64-cc.cxx +/// @file ARM64-cc.cc /// @brief ARM64 C Compiler. /// TODO: support structures, else if, else, . and -> diff --git a/dev/CompilerKit/src/Frontend/CCompilerPower64.cc b/dev/CompilerKit/src/Frontend/CCompilerPower64.cc index 40598c9..1999f48 100644 --- a/dev/CompilerKit/src/Frontend/CCompilerPower64.cc +++ b/dev/CompilerKit/src/Frontend/CCompilerPower64.cc @@ -23,7 +23,7 @@ #define kExitOK 0 /// @author EL Mahrouss Amlal (amlal@nekernel.org) -/// @file cc.cxx +/// @file cc.cc /// @brief POWER64 C Compiler. ///////////////////// diff --git a/dev/CompilerKit/src/Frontend.cc b/dev/CompilerKit/src/FrontendHelpers.cc index 37b36f7..37b36f7 100644 --- a/dev/CompilerKit/src/Frontend.cc +++ b/dev/CompilerKit/src/FrontendHelpers.cc diff --git a/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc b/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc index 0aa2b78..394014c 100644 --- a/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc +++ b/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc @@ -16,7 +16,7 @@ #include <CompilerKit/Defines.h> #include <CompilerKit/ErrorID.h> -#include <CompilerKit/CodeGen.h> +#include <CompilerKit/Compiler.h> #include <CompilerKit/PEF.h> #include <CompilerKit/UUID.h> #include <CompilerKit/Version.h> @@ -317,7 +317,6 @@ NECTI_MODULE(DynamicLinker64PEF) { if (kVerbose) { kConsoleOut << "Record: " << ae_records[ae_record_index].fName << " is marked.\n"; - kConsoleOut << "Offset: " << command_header.Offset << "\n"; } @@ -660,7 +659,7 @@ NECTI_MODULE(DynamicLinker64PEF) { if ((!kStartFound || kDuplicateSymbols) && (std::filesystem::exists(kOutput) || !unreferenced_symbols.empty())) { if (kVerbose) { - kConsoleOut << "File: " << kOutput << ", is corrupt, removing file...\n"; + kConsoleOut << "File: " << kOutput << " is corrupt now...\n"; } return NECTI_EXEC_ERROR; diff --git a/dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc b/dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc index 9845967..aaa5793 100644 --- a/dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc +++ b/dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc @@ -21,7 +21,7 @@ #define kMacroPrefix '#' /// @author EL Mahrouss Amlal (amlel) -/// @file bpp.cxx +/// @file CPlusPlusPreprocessor.cc /// @brief Preprocessor. typedef Int32 (*bpp_parser_fn_t)(CompilerKit::STLString& line, std::ifstream& hdr_file, diff --git a/dev/CompilerKit/src/BasicString.cc b/dev/CompilerKit/src/StringKit.cc index dc263aa..13142a6 100644 --- a/dev/CompilerKit/src/BasicString.cc +++ b/dev/CompilerKit/src/StringKit.cc @@ -18,7 +18,7 @@ * */ -#include <CompilerKit/BasicString.h> +#include <CompilerKit/StringKit.h> namespace CompilerKit { @@ -146,6 +146,7 @@ BasicString& BasicString::operator+=(const Char* rhs) { } memcpy(this->m_Data + this->m_Cur, rhs, rhs_len); + this->m_Cur += rhs_len; this->m_Data[this->m_Cur] = '\0'; @@ -164,7 +165,7 @@ BasicString& BasicString::operator+=(const BasicString& rhs) { return *this; } -BasicString& BasicString::operator+=(Char ch) { +BasicString& BasicString::operator+=(const Char ch) { if (this->m_Cur + 1 >= this->m_Sz) { throw std::runtime_error("out_of_bounds.."); } |
