From 38cddd5dc02f886e5cb3a0e386f0f7a1e6c8da86 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 1 Mar 2026 05:48:35 +0100 Subject: feat: ddk!: Breaking changes, the DDK has been reworked in C++ instead. chore: public, kernel: fixes and important patches. Signed-off-by: Amlal El Mahrouss --- src/kernel/NeKit/CxxAbi.h | 2 +- src/kernel/NeKit/ErrorOr.h | 2 +- src/kernel/NeKit/InitializerList.h | 5 +++-- src/kernel/src/InitializerList.cpp | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/NeKit/CxxAbi.h b/src/kernel/NeKit/CxxAbi.h index f8a6e50e..245f8d3b 100644 --- a/src/kernel/NeKit/CxxAbi.h +++ b/src/kernel/NeKit/CxxAbi.h @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel diff --git a/src/kernel/NeKit/ErrorOr.h b/src/kernel/NeKit/ErrorOr.h index 4289a890..c8c26717 100644 --- a/src/kernel/NeKit/ErrorOr.h +++ b/src/kernel/NeKit/ErrorOr.h @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel diff --git a/src/kernel/NeKit/InitializerList.h b/src/kernel/NeKit/InitializerList.h index 48f9ea53..8e00e95d 100644 --- a/src/kernel/NeKit/InitializerList.h +++ b/src/kernel/NeKit/InitializerList.h @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel @@ -17,7 +17,7 @@ class InitializerList final { explicit InitializerList(const Type* list) { if constexpr (N > 0) { - for (auto i = 0UL; i < N; ++i) { + for (auto i{0ull}; i < N; ++i) { fList[i] = list[i]; } } @@ -34,6 +34,7 @@ class InitializerList final { constexpr SizeT size() const { return N; } Type* operator->() { return this->begin(); } + Type* operator*() { return this->begin(); } private: diff --git a/src/kernel/src/InitializerList.cpp b/src/kernel/src/InitializerList.cpp index 9f19aacb..6599bd18 100644 --- a/src/kernel/src/InitializerList.cpp +++ b/src/kernel/src/InitializerList.cpp @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel -- cgit v1.2.3