summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-20 19:39:28 -0500
committerGitHub <noreply@github.com>2025-11-20 19:39:28 -0500
commitc78b97d70a06f0d17e52bf4ac58d4b917789e8a6 (patch)
treed4ab3c4e1685e7f3906bc29dd47cc130d116e190
parent274936aa8c14c09239f771bce5b5cc5b6ae507a2 (diff)
parentb8e6e1492ed14e270b1061809b0569b8d2f4c0ec (diff)
Merge pull request #26 from nekernel-org/devv0.0.6
NeCTI: Update ReadMe and improve codebase.
-rw-r--r--README.md7
-rw-r--r--dev/CompilerKit/AE.h2
-rw-r--r--dev/CompilerKit/Compiler.h6
-rw-r--r--dev/CompilerKit/Defines.h6
-rw-r--r--dev/CompilerKit/ErrorID.h2
-rw-r--r--dev/CompilerKit/ErrorOr.h8
-rw-r--r--dev/CompilerKit/Frontend.h6
-rw-r--r--dev/CompilerKit/Macros.h7
-rw-r--r--dev/CompilerKit/PEF.h6
-rw-r--r--dev/CompilerKit/Ref.h2
-rw-r--r--dev/CompilerKit/StringKit.h2
-rw-r--r--dev/CompilerKit/UUID.h25
-rw-r--r--dev/CompilerKit/Version.h6
-rw-r--r--dev/CompilerKit/XCOFF.h8
-rw-r--r--dev/CompilerKit/impl/32x0.h6
-rw-r--r--dev/CompilerKit/impl/64x0.h6
-rw-r--r--dev/CompilerKit/impl/Aarch64.h6
-rw-r--r--dev/CompilerKit/impl/PowerPC.h4
-rw-r--r--dev/CompilerKit/impl/X64.h6
-rw-r--r--dev/CompilerKit/src/AssemblyFactory.cc6
-rw-r--r--dev/CompilerKit/src/Backend/Assembler32x0.cc6
-rw-r--r--dev/CompilerKit/src/Backend/Assembler64x0.cc6
-rw-r--r--dev/CompilerKit/src/Backend/AssemblerAMD64.cc8
-rw-r--r--dev/CompilerKit/src/Backend/AssemblerARM64.cc6
-rw-r--r--dev/CompilerKit/src/Backend/AssemblerPowerPC.cc6
-rw-r--r--dev/CompilerKit/src/Frontend.cc6
-rw-r--r--dev/CompilerKit/src/Frontend/CCompiler64x0.cc2
-rw-r--r--dev/CompilerKit/src/Frontend/CCompilerARM64.cc2
-rw-r--r--dev/CompilerKit/src/Frontend/CCompilerPower64.cc2
-rw-r--r--dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc2
-rw-r--r--dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc6
-rw-r--r--dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc2
-rw-r--r--dev/CompilerKit/src/StringKit.cc2
-rw-r--r--dev/CompilerKit/utils/AsmUtils.h8
-rw-r--r--dev/CompilerKit/utils/CompilerUtils.h6
-rw-r--r--dev/CompilerKit/utils/DylibHelpers.h6
-rw-r--r--dev/DebuggerKit/CommonCLI.inl2
-rw-r--r--dev/DebuggerKit/NeKernelContract.h3
-rw-r--r--dev/DebuggerKit/POSIXMachContract.h7
-rw-r--r--dev/DebuggerKit/Version.h6
-rw-r--r--dev/DebuggerKit/src/POSIXMachContractCLI.cc5
-rw-r--r--dev/LibC++/__abi+unreachable.cc6
-rw-r--r--dev/LibC++/__abi.h6
-rw-r--r--dev/LibC++/base_alloc.h6
-rw-r--r--dev/LibC++/base_exception.h6
-rw-r--r--dev/LibC++/base_math.h6
-rw-r--r--dev/LibC++/base_process.h6
-rw-r--r--dev/LibC++/defines.h6
-rw-r--r--dev/LibC++/filesystem.h6
-rw-r--r--dev/LibC++/new.cc5
-rw-r--r--dev/LibC++/new.h12
-rw-r--r--dev/LibC++/utility.h6
-rw-r--r--dev/ThirdParty/Dialogs.h2
-rw-r--r--tests/test_02_linker/linker_test.cc6
-rw-r--r--tools/asm.cc8
-rw-r--r--tools/cppdrv.cc6
-rw-r--r--tools/dbg.cc6
-rw-r--r--tools/kdbg.cc6
-rw-r--r--tools/ld64.cc6
-rw-r--r--tools/pef-amd64-cxxdrv.cc6
-rw-r--r--tools/pef-arm64-cdrv.cc6
61 files changed, 177 insertions, 172 deletions
diff --git a/README.md b/README.md
index 4b5e477..716204e 100644
--- a/README.md
+++ b/README.md
@@ -45,4 +45,9 @@ cd necti
# Either build the debugger or compiler libraries/tools using nebuild.
```
-###### Copyright (C) 2024-2025 Amlal El Mahrouss & NeKernel.org Contributors, Licensed under Apache 2.0.
+## Security
+
+- **Vulnerability Disclosure:**
+ Please report security issues privately via email or GitHub Security Advisories.
+
+###### Copyright (C) 2024-2025 Amlal El Mahrouss & NeKernel.org Contributors, Licensed under the Apache 2.0 license.
diff --git a/dev/CompilerKit/AE.h b/dev/CompilerKit/AE.h
index 3ca14e6..7b6d9b4 100644
--- a/dev/CompilerKit/AE.h
+++ b/dev/CompilerKit/AE.h
@@ -2,7 +2,7 @@
* ========================================================
*
* CompilerKit
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/Compiler.h b/dev/CompilerKit/Compiler.h
index a14005b..1f24370 100644
--- a/dev/CompilerKit/Compiler.h
+++ b/dev/CompilerKit/Compiler.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/Defines.h b/dev/CompilerKit/Defines.h
index 34b43d6..d036767 100644
--- a/dev/CompilerKit/Defines.h
+++ b/dev/CompilerKit/Defines.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#ifndef __NECTI_DEFINES_H__
#define __NECTI_DEFINES_H__
diff --git a/dev/CompilerKit/ErrorID.h b/dev/CompilerKit/ErrorID.h
index c16f682..35039ab 100644
--- a/dev/CompilerKit/ErrorID.h
+++ b/dev/CompilerKit/ErrorID.h
@@ -2,7 +2,7 @@
* ========================================================
*
* CompilerKit
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/ErrorOr.h b/dev/CompilerKit/ErrorOr.h
index 66a90ee..ac42c19 100644
--- a/dev/CompilerKit/ErrorOr.h
+++ b/dev/CompilerKit/ErrorOr.h
@@ -2,7 +2,7 @@
* ========================================================
*
* CompilerKit
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
@@ -15,10 +15,10 @@
/// @brief ErrorOr for CompilerKit.
/// =========================================================== ///
-#include <CompilerKit/StringKit.h>
#include <CompilerKit/Defines.h>
#include <CompilerKit/ErrorID.h>
#include <CompilerKit/Ref.h>
+#include <CompilerKit/StringKit.h>
namespace CompilerKit {
using ErrorT = Int32;
@@ -47,9 +47,9 @@ class ErrorOr final {
private:
Ref<T> mRef;
- ErrorT mId{0};
+ ErrorT mId{0};
};
-using ErrorOrAny = ErrorOr<VoidPtr>;
+using ErrorOrAny = ErrorOr<VoidPtr>;
using ErrorOrString = ErrorOr<STLString>;
} // namespace CompilerKit
diff --git a/dev/CompilerKit/Frontend.h b/dev/CompilerKit/Frontend.h
index 500f952..df70048 100644
--- a/dev/CompilerKit/Frontend.h
+++ b/dev/CompilerKit/Frontend.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/Macros.h b/dev/CompilerKit/Macros.h
index fdef375..6cef758 100644
--- a/dev/CompilerKit/Macros.h
+++ b/dev/CompilerKit/Macros.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/// @brief provide support for Macros.h header.
@@ -25,5 +25,4 @@
KLASS& operator=(KLASS&&) = default; \
KLASS(KLASS&&) = default;
-
#endif /* ifndef _NECTI_MACROS_H_ */
diff --git a/dev/CompilerKit/PEF.h b/dev/CompilerKit/PEF.h
index fc36fd7..edf8f5d 100644
--- a/dev/CompilerKit/PEF.h
+++ b/dev/CompilerKit/PEF.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* =========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/Ref.h b/dev/CompilerKit/Ref.h
index 01b7d96..66ed60f 100644
--- a/dev/CompilerKit/Ref.h
+++ b/dev/CompilerKit/Ref.h
@@ -3,7 +3,7 @@
* ========================================================
*
* CompilerKit
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/StringKit.h b/dev/CompilerKit/StringKit.h
index 0fbe58a..eb7ccc3 100644
--- a/dev/CompilerKit/StringKit.h
+++ b/dev/CompilerKit/StringKit.h
@@ -2,7 +2,7 @@
* ========================================================
*
* CompilerKit
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/UUID.h b/dev/CompilerKit/UUID.h
index 1218fab..98733fd 100644
--- a/dev/CompilerKit/UUID.h
+++ b/dev/CompilerKit/UUID.h
@@ -580,25 +580,24 @@ class uuid_system_generator {
uuid operator()() {
#ifdef _WIN32
-
- GUID newId;
+ GUID newId{}; /// AMLALE: Should be zero-initialized.
HRESULT hr = ::CoCreateGuid(&newId);
if (FAILED(hr)) {
throw std::system_error(hr, std::system_category(), "CoCreateGuid failed");
}
- std::array<uint8_t, 16> bytes = {
- {static_cast<unsigned char>((newId.Data1 >> 24) & 0xFF),
- static_cast<unsigned char>((newId.Data1 >> 16) & 0xFF),
- static_cast<unsigned char>((newId.Data1 >> 8) & 0xFF),
- static_cast<unsigned char>((newId.Data1) & 0xFF),
- static_cast<unsigned char>((newId.Data2 >> 8) & 0xFF),
- static_cast<unsigned char>((newId.Data2) & 0xFF),
- static_cast<unsigned char>((newId.Data3 >> 8) & 0xFF),
- static_cast<unsigned char>((newId.Data3) & 0xFF),
- newId.Data4[0], newId.Data4[1], newId.Data4[2], newId.Data4[3], newId.Data4[4],
- newId.Data4[5], newId.Data4[6], newId.Data4[7]}};
+ std::array<uint8_t, 16> bytes = {{static_cast<unsigned char>((newId.Data1 >> 24) & 0xFF),
+ static_cast<unsigned char>((newId.Data1 >> 16) & 0xFF),
+ static_cast<unsigned char>((newId.Data1 >> 8) & 0xFF),
+ static_cast<unsigned char>((newId.Data1) & 0xFF),
+ static_cast<unsigned char>((newId.Data2 >> 8) & 0xFF),
+ static_cast<unsigned char>((newId.Data2) & 0xFF),
+ static_cast<unsigned char>((newId.Data3 >> 8) & 0xFF),
+ static_cast<unsigned char>((newId.Data3) & 0xFF),
+ newId.Data4[0], newId.Data4[1], newId.Data4[2],
+ newId.Data4[3], newId.Data4[4], newId.Data4[5],
+ newId.Data4[6], newId.Data4[7]}};
return uuid{std::begin(bytes), std::end(bytes)};
diff --git a/dev/CompilerKit/Version.h b/dev/CompilerKit/Version.h
index 577e034..efd174c 100644
--- a/dev/CompilerKit/Version.h
+++ b/dev/CompilerKit/Version.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/XCOFF.h b/dev/CompilerKit/XCOFF.h
index e6e1631..a61949a 100644
--- a/dev/CompilerKit/XCOFF.h
+++ b/dev/CompilerKit/XCOFF.h
@@ -1,15 +1,15 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
File: XCOFF.h
Purpose: XCOFF for NeKernel.
Revision History:
- 04/07/24: Added file (Amlal EL Mahrouss)
+ 04/07/24: Added file (Amlal El Mahrouss)
-------------------------------------------- */
+======================================== */
#ifndef _NECTI_XCOFF_H_
#define _NECTI_XCOFF_H_
diff --git a/dev/CompilerKit/impl/32x0.h b/dev/CompilerKit/impl/32x0.h
index 05d9c27..1ad13ee 100644
--- a/dev/CompilerKit/impl/32x0.h
+++ b/dev/CompilerKit/impl/32x0.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/impl/64x0.h b/dev/CompilerKit/impl/64x0.h
index a720332..ce2ae89 100644
--- a/dev/CompilerKit/impl/64x0.h
+++ b/dev/CompilerKit/impl/64x0.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/impl/Aarch64.h b/dev/CompilerKit/impl/Aarch64.h
index 8465756..c1e9c77 100644
--- a/dev/CompilerKit/impl/Aarch64.h
+++ b/dev/CompilerKit/impl/Aarch64.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
-Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/impl/PowerPC.h b/dev/CompilerKit/impl/PowerPC.h
index 03aea49..7c7f67c 100644
--- a/dev/CompilerKit/impl/PowerPC.h
+++ b/dev/CompilerKit/impl/PowerPC.h
@@ -1,4 +1,4 @@
-/* -------------------------------------------
+/* ========================================
Some modifications are copyrighted under:
Amlal El Mahrouss
@@ -6,7 +6,7 @@
Original author:
Apple Inc
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/impl/X64.h b/dev/CompilerKit/impl/X64.h
index 7dc44f2..ccbcf13 100644
--- a/dev/CompilerKit/impl/X64.h
+++ b/dev/CompilerKit/impl/X64.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/src/AssemblyFactory.cc b/dev/CompilerKit/src/AssemblyFactory.cc
index 927fcdd..5c606e9 100644
--- a/dev/CompilerKit/src/AssemblyFactory.cc
+++ b/dev/CompilerKit/src/AssemblyFactory.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#include <CompilerKit/Compiler.h>
#include <CompilerKit/ErrorID.h>
diff --git a/dev/CompilerKit/src/Backend/Assembler32x0.cc b/dev/CompilerKit/src/Backend/Assembler32x0.cc
index 0f94920..6ffaa6e 100644
--- a/dev/CompilerKit/src/Backend/Assembler32x0.cc
+++ b/dev/CompilerKit/src/Backend/Assembler32x0.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/// bugs: 0
diff --git a/dev/CompilerKit/src/Backend/Assembler64x0.cc b/dev/CompilerKit/src/Backend/Assembler64x0.cc
index 23eeeb7..f9052d2 100644
--- a/dev/CompilerKit/src/Backend/Assembler64x0.cc
+++ b/dev/CompilerKit/src/Backend/Assembler64x0.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/// bugs: 0
diff --git a/dev/CompilerKit/src/Backend/AssemblerAMD64.cc b/dev/CompilerKit/src/Backend/AssemblerAMD64.cc
index de179b5..8c7e21c 100644
--- a/dev/CompilerKit/src/Backend/AssemblerAMD64.cc
+++ b/dev/CompilerKit/src/Backend/AssemblerAMD64.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/////////////////////////////////////////////////////////////////////////////////////////
@@ -53,7 +53,7 @@
static char kOutputArch = CompilerKit::kPefArchAMD64;
static constexpr auto kIPAlignement = 0x1U;
-static auto kCounter = 0x1UL;
+static auto kCounter = 0x1UL;
static std::uintptr_t kOrigin = kPefBaseOrigin;
static std::vector<std::pair<std::string, std::uintptr_t>> kOriginLabel;
diff --git a/dev/CompilerKit/src/Backend/AssemblerARM64.cc b/dev/CompilerKit/src/Backend/AssemblerARM64.cc
index d7fb1d3..4961e61 100644
--- a/dev/CompilerKit/src/Backend/AssemblerARM64.cc
+++ b/dev/CompilerKit/src/Backend/AssemblerARM64.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc b/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc
index 3ec3357..b4f14ea 100644
--- a/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc
+++ b/dev/CompilerKit/src/Backend/AssemblerPowerPC.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/dev/CompilerKit/src/Frontend.cc b/dev/CompilerKit/src/Frontend.cc
index d34f064..baac34e 100644
--- a/dev/CompilerKit/src/Frontend.cc
+++ b/dev/CompilerKit/src/Frontend.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#include <CompilerKit/Frontend.h>
diff --git a/dev/CompilerKit/src/Frontend/CCompiler64x0.cc b/dev/CompilerKit/src/Frontend/CCompiler64x0.cc
index 804e1a1..f07fcb0 100644
--- a/dev/CompilerKit/src/Frontend/CCompiler64x0.cc
+++ b/dev/CompilerKit/src/Frontend/CCompiler64x0.cc
@@ -2,7 +2,7 @@
* ========================================================
*
* cc
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/src/Frontend/CCompilerARM64.cc b/dev/CompilerKit/src/Frontend/CCompilerARM64.cc
index c9fee19..c5b1fb8 100644
--- a/dev/CompilerKit/src/Frontend/CCompilerARM64.cc
+++ b/dev/CompilerKit/src/Frontend/CCompilerARM64.cc
@@ -2,7 +2,7 @@
* ========================================================
*
* CCompilerARM64
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/src/Frontend/CCompilerPower64.cc b/dev/CompilerKit/src/Frontend/CCompilerPower64.cc
index 80d88dc..ccc5cf8 100644
--- a/dev/CompilerKit/src/Frontend/CCompilerPower64.cc
+++ b/dev/CompilerKit/src/Frontend/CCompilerPower64.cc
@@ -2,7 +2,7 @@
* ========================================================
*
* CompilerPower64
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc b/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc
index a13aa0e..d715a3a 100644
--- a/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc
+++ b/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc
@@ -2,7 +2,7 @@
* ========================================================
*
* C++ Compiler Driver
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc b/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc
index e86ee55..8a503ed 100644
--- a/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc
+++ b/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc
@@ -1,11 +1,11 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
@file DynamicLinker64PEF.cc
@brief: C++ 64-Bit PEF Linker for NeKernel.org's NeKernel
-------------------------------------------- */
+======================================== */
/// @author Amlal El Mahrouss (amlal@nekernel.org)
/// @brief NeKernel.org 64-bit PEF Linker.
diff --git a/dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc b/dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc
index 8163c40..ed53782 100644
--- a/dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc
+++ b/dev/CompilerKit/src/Macro/CPlusPlusPreprocessor.cc
@@ -2,7 +2,7 @@
* ========================================================
*
* C++ Preprocessor Driver
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/src/StringKit.cc b/dev/CompilerKit/src/StringKit.cc
index 99f3ef2..d612947 100644
--- a/dev/CompilerKit/src/StringKit.cc
+++ b/dev/CompilerKit/src/StringKit.cc
@@ -2,7 +2,7 @@
* ========================================================
*
* CompilerKit
- * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ * Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
*
* ========================================================
*/
diff --git a/dev/CompilerKit/utils/AsmUtils.h b/dev/CompilerKit/utils/AsmUtils.h
index b5ae513..897fcbe 100644
--- a/dev/CompilerKit/utils/AsmUtils.h
+++ b/dev/CompilerKit/utils/AsmUtils.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
@@ -16,7 +16,7 @@ using namespace CompilerKit;
/// @param lineBuffer the lineBuffer to fetch from.
/// @param numberKey where to seek that number.
/// @return
-static NumberCast32 GetNumber32(std::string lineBuffer, std::string numberKey) {
+static NumberCast32 GetNumber32(STLString lineBuffer, STLString numberKey) {
auto pos = lineBuffer.find(numberKey) + numberKey.size();
while (lineBuffer[pos] == ' ') {
diff --git a/dev/CompilerKit/utils/CompilerUtils.h b/dev/CompilerKit/utils/CompilerUtils.h
index d812ab8..1b086ee 100644
--- a/dev/CompilerKit/utils/CompilerUtils.h
+++ b/dev/CompilerKit/utils/CompilerUtils.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/CompilerKit/utils/DylibHelpers.h b/dev/CompilerKit/utils/DylibHelpers.h
index 9871d05..ab58fc7 100644
--- a/dev/CompilerKit/utils/DylibHelpers.h
+++ b/dev/CompilerKit/utils/DylibHelpers.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/DebuggerKit/CommonCLI.inl b/dev/DebuggerKit/CommonCLI.inl
index a4f13ca..a118634 100644
--- a/dev/DebuggerKit/CommonCLI.inl
+++ b/dev/DebuggerKit/CommonCLI.inl
@@ -21,4 +21,4 @@ static DebuggerKit::POSIX::POSIXMachContract kDebugger;
static DebuggerKit::ProcessID kPID = 0L;
static DebuggerKit::CAddress kActiveAddress = nullptr;
-static CompilerKit::STLString kPath = "";
+static CompilerKit::STLString kPath = "";
diff --git a/dev/DebuggerKit/NeKernelContract.h b/dev/DebuggerKit/NeKernelContract.h
index 669ee1f..582741a 100644
--- a/dev/DebuggerKit/NeKernelContract.h
+++ b/dev/DebuggerKit/NeKernelContract.h
@@ -41,7 +41,8 @@ class NeKernelContract final DK_DEBUGGER_CONTRACT {
NeKernelContract(const NeKernelContract&) = default;
public:
- bool Attach(CompilerKit::STLString path, CompilerKit::STLString arg_v, ProcessID& pid) noexcept override;
+ bool Attach(CompilerKit::STLString path, CompilerKit::STLString arg_v,
+ ProcessID& pid) noexcept override;
bool BreakAt(CompilerKit::STLString symbol) noexcept override;
bool Break() noexcept override;
bool Continue() noexcept override;
diff --git a/dev/DebuggerKit/POSIXMachContract.h b/dev/DebuggerKit/POSIXMachContract.h
index 4c20d38..b1c0e0a 100644
--- a/dev/DebuggerKit/POSIXMachContract.h
+++ b/dev/DebuggerKit/POSIXMachContract.h
@@ -56,7 +56,8 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
POSIXMachContract(const POSIXMachContract&) = default;
public:
- Bool Attach(CompilerKit::STLString path, CompilerKit::STLString argv, ProcessID& pid) noexcept override {
+ Bool Attach(CompilerKit::STLString path, CompilerKit::STLString argv,
+ ProcessID& pid) noexcept override {
pid = fork();
if (pid == 0) {
@@ -114,7 +115,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
mach_vm_protect(task, (mach_vm_address_t) addr, sizeof(uint32_t), false,
VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE);
-
+
mach_vm_write(task, (mach_vm_address_t) addr, (vm_offset_t) &brk_inst, sizeof(addr));
return true;
@@ -153,7 +154,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
}
private:
- ProcessID m_pid{0};
+ ProcessID m_pid{0};
CompilerKit::STLString m_path;
};
} // namespace DebuggerKit::POSIX
diff --git a/dev/DebuggerKit/Version.h b/dev/DebuggerKit/Version.h
index d7e3985..8f3168a 100644
--- a/dev/DebuggerKit/Version.h
+++ b/dev/DebuggerKit/Version.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2025 Amlal EL Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/DebuggerKit/src/POSIXMachContractCLI.cc b/dev/DebuggerKit/src/POSIXMachContractCLI.cc
index 5edd65e..22a626d 100644
--- a/dev/DebuggerKit/src/POSIXMachContractCLI.cc
+++ b/dev/DebuggerKit/src/POSIXMachContractCLI.cc
@@ -27,8 +27,9 @@ static void dbgi_ctrlc_handler(std::int32_t _) {
}
NECTI_MODULE(DebuggerMachPOSIX) {
- pfd::notify("Debugger Event",
- "Userland Debugger\n(C) 2025 Amlal El Mahrouss, Licensed under Apache 2.0.");
+ pfd::notify(
+ "Debugger Event",
+ "Userland Debugger\n(C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.");
if (argc >= 3 && std::string(argv[1]) == "-p" && argv[2] != nullptr) {
kPath = argv[2];
diff --git a/dev/LibC++/__abi+unreachable.cc b/dev/LibC++/__abi+unreachable.cc
index 428b745..1fc9830 100644
--- a/dev/LibC++/__abi+unreachable.cc
+++ b/dev/LibC++/__abi+unreachable.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#include <LibC++/__abi.h>
#include <LibC++/base_process.h>
diff --git a/dev/LibC++/__abi.h b/dev/LibC++/__abi.h
index 4e66d1a..d46a9ee 100644
--- a/dev/LibC++/__abi.h
+++ b/dev/LibC++/__abi.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/LibC++/base_alloc.h b/dev/LibC++/base_alloc.h
index a322f7f..ea5b5b2 100644
--- a/dev/LibC++/base_alloc.h
+++ b/dev/LibC++/base_alloc.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/LibC++/base_exception.h b/dev/LibC++/base_exception.h
index 6f48cd9..8747688 100644
--- a/dev/LibC++/base_exception.h
+++ b/dev/LibC++/base_exception.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/LibC++/base_math.h b/dev/LibC++/base_math.h
index 70bfeba..73cb174 100644
--- a/dev/LibC++/base_math.h
+++ b/dev/LibC++/base_math.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/LibC++/base_process.h b/dev/LibC++/base_process.h
index 8767aa7..abcbf08 100644
--- a/dev/LibC++/base_process.h
+++ b/dev/LibC++/base_process.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/LibC++/defines.h b/dev/LibC++/defines.h
index 9eebbf1..e263d9c 100644
--- a/dev/LibC++/defines.h
+++ b/dev/LibC++/defines.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#ifndef __NECTI_DEFINES_H__
#define __NECTI_DEFINES_H__
diff --git a/dev/LibC++/filesystem.h b/dev/LibC++/filesystem.h
index 0a1a39a..807ab0d 100644
--- a/dev/LibC++/filesystem.h
+++ b/dev/LibC++/filesystem.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#ifndef __NECTI_FS_H__
#define __NECTI_FS_H__
diff --git a/dev/LibC++/new.cc b/dev/LibC++/new.cc
index 4882652..85ae82e 100644
--- a/dev/LibC++/new.cc
+++ b/dev/LibC++/new.cc
@@ -1,8 +1,7 @@
-/* -------------------------------------------
+/* ========================================
Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#include <LibC++/new.h>
-
diff --git a/dev/LibC++/new.h b/dev/LibC++/new.h
index 3ac60d7..37e2a26 100644
--- a/dev/LibC++/new.h
+++ b/dev/LibC++/new.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
@@ -21,10 +21,10 @@ struct nothrow_t {
/// =========================================================
/// @brief Placement new metadata.
/// =========================================================
-struct placement_new {
- void* __base;
- int __align;
- long long __size;
+struct placement_new final {
+ void* __base{};
+ int32_t __align{};
+ size_t __size{};
};
using placement_new_t = placement_new;
diff --git a/dev/LibC++/utility.h b/dev/LibC++/utility.h
index a10f2c2..62096f5 100644
--- a/dev/LibC++/utility.h
+++ b/dev/LibC++/utility.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#ifndef LIBCXX_UTILITY_H
#define LIBCXX_UTILITY_H
diff --git a/dev/ThirdParty/Dialogs.h b/dev/ThirdParty/Dialogs.h
index af325e4..7e0b5eb 100644
--- a/dev/ThirdParty/Dialogs.h
+++ b/dev/ThirdParty/Dialogs.h
@@ -218,7 +218,7 @@ namespace internal {
: m_proc(reinterpret_cast<T*>((void*) ::GetProcAddress(lib.handle, sym.c_str()))) {}
explicit operator bool() const { return m_proc != nullptr; }
- operator T*() const { return m_proc; }
+ operator T*() const { return m_proc; }
private:
T* m_proc;
diff --git a/tests/test_02_linker/linker_test.cc b/tests/test_02_linker/linker_test.cc
index edcc1c9..cc580a3 100644
--- a/tests/test_02_linker/linker_test.cc
+++ b/tests/test_02_linker/linker_test.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
- ------------------------------------------- */
+ ======================================== */
/// @brief Linker Unit test, from the C++ unit to the final executable.
/// @author Amlal El Mahrouss
diff --git a/tools/asm.cc b/tools/asm.cc
index 29c3c03..025b158 100644
--- a/tools/asm.cc
+++ b/tools/asm.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/// @file asm.cc
/// @brief Assembler frontend.
@@ -42,7 +42,7 @@ Int32 main(Int32 argc, Char const* argv[]) {
"rights reserved.\n");
std::printf(
"CompilerKit: Designed by Amlal El Mahrouss, Copyright (C) 2024-2025 Amlal El Mahrouss, "
- "Licensed under Apache 2.0.\n");
+ "Licensed under the Apache 2.0 license.\n");
return 0;
} else if (strstr(argv[index_arg], "-asm:x64")) {
diff --git a/tools/cppdrv.cc b/tools/cppdrv.cc
index 42ca337..4d6f7cf 100644
--- a/tools/cppdrv.cc
+++ b/tools/cppdrv.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/// @file cxxdrv.cc
/// @brief NE frontend preprocessor.
diff --git a/tools/dbg.cc b/tools/dbg.cc
index d5fa900..854351e 100644
--- a/tools/dbg.cc
+++ b/tools/dbg.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#include <CompilerKit/Defines.h>
diff --git a/tools/kdbg.cc b/tools/kdbg.cc
index 9556699..4ee508d 100644
--- a/tools/kdbg.cc
+++ b/tools/kdbg.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#include <CompilerKit/Defines.h>
diff --git a/tools/ld64.cc b/tools/ld64.cc
index e483158..1f0392d 100644
--- a/tools/ld64.cc
+++ b/tools/ld64.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
#include <CompilerKit/Defines.h>
diff --git a/tools/pef-amd64-cxxdrv.cc b/tools/pef-amd64-cxxdrv.cc
index 8cbd254..e1187e8 100644
--- a/tools/pef-amd64-cxxdrv.cc
+++ b/tools/pef-amd64-cxxdrv.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/// @file cxxdrv.cc
/// @brief NE C++ frontend compiler.
diff --git a/tools/pef-arm64-cdrv.cc b/tools/pef-arm64-cdrv.cc
index d0ef300..b7d8ed1 100644
--- a/tools/pef-arm64-cdrv.cc
+++ b/tools/pef-arm64-cdrv.cc
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2024-2025 Amlal EL Mahrouss, Licensed under Apache 2.0
+ Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-------------------------------------------- */
+======================================== */
/// @file cxxdrv.cc
/// @brief NE C++ frontend compiler.