summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/NewKit
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-20 12:32:38 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-20 12:38:04 +0100
commit7d2a7e7cab23b8217498866615a3719e5d3980ee (patch)
tree75b87af3d8be10f29f2d5c69af17a9455c90df73 /dev/Kernel/NewKit
parentaa8a096ad429640e752d69a89c572da35493d4c0 (diff)
NeOS: Namespace change from 'Kernel' to 'NeOS'
ADD: Start defining the Workstation's HPFS (High-Performance File System) Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/NewKit')
-rw-r--r--dev/Kernel/NewKit/Array.h4
-rw-r--r--dev/Kernel/NewKit/ArrayList.h4
-rw-r--r--dev/Kernel/NewKit/Atom.h4
-rw-r--r--dev/Kernel/NewKit/Crc32.h4
-rw-r--r--dev/Kernel/NewKit/Defines.h4
-rw-r--r--dev/Kernel/NewKit/ErrorOr.h4
-rw-r--r--dev/Kernel/NewKit/Function.h4
-rw-r--r--dev/Kernel/NewKit/Json.h4
-rw-r--r--dev/Kernel/NewKit/KString.h4
-rw-r--r--dev/Kernel/NewKit/KernelPanic.h12
-rw-r--r--dev/Kernel/NewKit/Macros.h32
-rw-r--r--dev/Kernel/NewKit/MutableArray.h8
-rw-r--r--dev/Kernel/NewKit/OwnPtr.h4
-rw-r--r--dev/Kernel/NewKit/PageMgr.h4
-rw-r--r--dev/Kernel/NewKit/Pair.h4
-rw-r--r--dev/Kernel/NewKit/Pmm.h4
-rw-r--r--dev/Kernel/NewKit/Ref.h4
-rw-r--r--dev/Kernel/NewKit/Stream.h4
-rw-r--r--dev/Kernel/NewKit/Utils.h4
-rw-r--r--dev/Kernel/NewKit/Variant.h4
20 files changed, 60 insertions, 60 deletions
diff --git a/dev/Kernel/NewKit/Array.h b/dev/Kernel/NewKit/Array.h
index 43c67586..54c09636 100644
--- a/dev/Kernel/NewKit/Array.h
+++ b/dev/Kernel/NewKit/Array.h
@@ -10,7 +10,7 @@
#include <NewKit/ErrorOr.h>
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
template <typename T, SizeT N>
class Array final
@@ -62,4 +62,4 @@ namespace Kernel
{
return Array<ValueType, ARRAY_SIZE(val)>{val};
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/ArrayList.h b/dev/Kernel/NewKit/ArrayList.h
index e05480f0..06763b5a 100644
--- a/dev/Kernel/NewKit/ArrayList.h
+++ b/dev/Kernel/NewKit/ArrayList.h
@@ -8,7 +8,7 @@
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
template <typename T>
class ArrayList final
@@ -60,4 +60,4 @@ namespace Kernel
{
return ArrayList<ValueType>{val};
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Atom.h b/dev/Kernel/NewKit/Atom.h
index 6845aee8..d4797715 100644
--- a/dev/Kernel/NewKit/Atom.h
+++ b/dev/Kernel/NewKit/Atom.h
@@ -7,7 +7,7 @@
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
template <typename T>
class Atom final
@@ -43,4 +43,4 @@ namespace Kernel
private:
T fArrayOfAtoms;
};
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Crc32.h b/dev/Kernel/NewKit/Crc32.h
index 1facaace..38d2f8fa 100644
--- a/dev/Kernel/NewKit/Crc32.h
+++ b/dev/Kernel/NewKit/Crc32.h
@@ -15,9 +15,9 @@
#define kCrcCnt (256)
-namespace Kernel
+namespace NeOS
{
UInt ke_calculate_crc32(const Char* crc, UInt len) noexcept;
-} // namespace Kernel
+} // namespace NeOS
#endif // !CRC32_H
diff --git a/dev/Kernel/NewKit/Defines.h b/dev/Kernel/NewKit/Defines.h
index 25d44b9d..932e9e8f 100644
--- a/dev/Kernel/NewKit/Defines.h
+++ b/dev/Kernel/NewKit/Defines.h
@@ -20,7 +20,7 @@
#endif
/// @brief The **Kernel** namespace where it's API resides.
-namespace Kernel
+namespace NeOS
{
using voidPtr = void*;
using VoidPtr = void*;
@@ -189,4 +189,4 @@ namespace Kernel
return NO;
}
};
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/ErrorOr.h b/dev/Kernel/NewKit/ErrorOr.h
index 433e7c9b..4396d7ec 100644
--- a/dev/Kernel/NewKit/ErrorOr.h
+++ b/dev/Kernel/NewKit/ErrorOr.h
@@ -12,7 +12,7 @@
#include <NewKit/Defines.h>
#include <NewKit/Ref.h>
-namespace Kernel
+namespace NeOS
{
using ErrorT = UInt;
@@ -74,4 +74,4 @@ namespace Kernel
using ErrorOrAny = ErrorOr<voidPtr>;
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Function.h b/dev/Kernel/NewKit/Function.h
index 9fa218af..d25c06c1 100644
--- a/dev/Kernel/NewKit/Function.h
+++ b/dev/Kernel/NewKit/Function.h
@@ -3,7 +3,7 @@
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
template <typename T, typename... Args>
class Function final
@@ -48,6 +48,6 @@ namespace Kernel
T(*fFn)
(Args... args);
};
-} // namespace Kernel
+} // namespace NeOS
#endif // !_INC_FUNCTION_H__
diff --git a/dev/Kernel/NewKit/Json.h b/dev/Kernel/NewKit/Json.h
index a376c15a..7b53fa4a 100644
--- a/dev/Kernel/NewKit/Json.h
+++ b/dev/Kernel/NewKit/Json.h
@@ -19,7 +19,7 @@
#define kJSONLen 256
#define kJSONNull "[]"
-namespace Kernel
+namespace NeOS
{
/// @brief JavaScript object class
class Json final
@@ -148,4 +148,4 @@ namespace Kernel
};
using JsonStream = Stream<JsonStreamReader, Json>;
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/KString.h b/dev/Kernel/NewKit/KString.h
index dc327f3b..85da1f3c 100644
--- a/dev/Kernel/NewKit/KString.h
+++ b/dev/Kernel/NewKit/KString.h
@@ -14,7 +14,7 @@
#define cMinimumStringSize 8196
-namespace Kernel
+namespace NeOS
{
/// @brief Kernel string class, not dynamic.
class KString final
@@ -91,4 +91,4 @@ namespace Kernel
static bool Equals(const Char* lhs, const Char* rhs);
static bool Equals(const WideChar* lhs, const WideChar* rhs);
};
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/KernelPanic.h b/dev/Kernel/NewKit/KernelPanic.h
index cd19a1d3..11f9a05d 100644
--- a/dev/Kernel/NewKit/KernelPanic.h
+++ b/dev/Kernel/NewKit/KernelPanic.h
@@ -9,7 +9,7 @@
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
void ke_runtime_check(bool expr, const Char* file, const Char* line);
}
@@ -34,14 +34,14 @@ namespace Kernel
#endif
#define __MUST_PASS(EXPR, FILE, LINE) \
- Kernel::ke_runtime_check(EXPR, FILE, STRINGIFY(LINE))
+ NeOS::ke_runtime_check(EXPR, FILE, STRINGIFY(LINE))
#ifdef __DEBUG__
#define MUST_PASS(EXPR) __MUST_PASS((EXPR), __FILE__, __LINE__)
#define assert(EXPR) MUST_PASS(EXPR)
#else
-#define MUST_PASS(EXPR) (Kernel::Void)(EXPR)
-#define assert(EXPR) (Kernel::Void)(EXPR)
+#define MUST_PASS(EXPR) (NeOS::Void)(EXPR)
+#define assert(EXPR) (NeOS::Void)(EXPR)
#endif
enum RUNTIME_CHECK
@@ -68,7 +68,7 @@ enum RUNTIME_CHECK
typedef enum RUNTIME_CHECK RTL_RUNTIME_CHECK;
-namespace Kernel
+namespace NeOS
{
void ke_panic(const Int32& id, const Char* message = nullptr);
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Macros.h b/dev/Kernel/NewKit/Macros.h
index 15d5f2bd..56f7ca4d 100644
--- a/dev/Kernel/NewKit/Macros.h
+++ b/dev/Kernel/NewKit/Macros.h
@@ -7,41 +7,41 @@
#pragma once
#ifndef KIB
-#define KIB(X) (Kernel::UInt64)((X) / 1024)
+#define KIB(X) (NeOS::UInt64)((X) / 1024)
#endif
#ifndef kib_cast
-#define kib_cast(X) (Kernel::UInt64)((X) * 1024)
+#define kib_cast(X) (NeOS::UInt64)((X) * 1024)
#endif
#ifndef MIB
-#define MIB(X) (Kernel::UInt64)((Kernel::UInt64)KIB(X) / 1024)
+#define MIB(X) (NeOS::UInt64)((NeOS::UInt64)KIB(X) / 1024)
#endif
#ifndef mib_cast
-#define mib_cast(X) (Kernel::UInt64)((Kernel::UInt64)kib_cast(X) * 1024)
+#define mib_cast(X) (NeOS::UInt64)((NeOS::UInt64)kib_cast(X) * 1024)
#endif
#ifndef GIB
-#define GIB(X) (Kernel::UInt64)((Kernel::UInt64)MIB(X) / 1024)
+#define GIB(X) (NeOS::UInt64)((NeOS::UInt64)MIB(X) / 1024)
#endif
#ifndef gib_cast
-#define gib_cast(X) (Kernel::UInt64)((Kernel::UInt64)mib_cast(X) * 1024)
+#define gib_cast(X) (NeOS::UInt64)((NeOS::UInt64)mib_cast(X) * 1024)
#endif
#ifndef TIB
-#define TIB(X) (Kernel::UInt64)((Kernel::UInt64)GIB(X) / 1024)
+#define TIB(X) (NeOS::UInt64)((NeOS::UInt64)GIB(X) / 1024)
#endif
#ifndef tib_cast
-#define tib_cast(X) ((Kernel::UInt64)gib_cast(X) * 1024)
+#define tib_cast(X) ((NeOS::UInt64)gib_cast(X) * 1024)
#endif
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) \
(((sizeof(a) / sizeof(*(a))) / \
- (static_cast<Kernel::Size>(!(sizeof(a) % sizeof(*(a)))))))
+ (static_cast<NeOS::Size>(!(sizeof(a) % sizeof(*(a)))))))
#endif
#define DEPRECATED ATTRIBUTE(deprecated)
@@ -114,10 +114,10 @@
#define CONST const
#define STRINGIFY(X) #X
-#define NE_UNUSED(X) ((Kernel::Void)X)
+#define NE_UNUSED(X) ((NeOS::Void)X)
#ifndef RGB
-#define RGB(R, G, B) (Kernel::UInt32)(R | G << 0x8 | B << 0x10)
+#define RGB(R, G, B) (NeOS::UInt32)(R | G << 0x8 | B << 0x10)
#endif // !RGB
#ifdef __NE_AMD64__
@@ -126,10 +126,10 @@
#define dbg_break_point() ((void)0)
#endif
-#define RTL_ENDIAN(address, value) \
- (((reinterpret_cast<Kernel::Char*>(address)[0]) == (value)) \
- ? (Kernel::Endian::kEndianBig) \
- : (Kernel::Endian::kEndianLittle))
+#define RTL_ENDIAN(address, value) \
+ (((reinterpret_cast<NeOS::Char*>(address)[0]) == (value)) \
+ ? (NeOS::Endian::kEndianBig) \
+ : (NeOS::Endian::kEndianLittle))
#define Yes true
#define No false
@@ -140,7 +140,7 @@
#define TRUE true
#define FALSE false
-#define BOOL Kernel::Boolean
+#define BOOL NeOS::Boolean
#ifdef RTL_INIT_OBJECT
#undef RTL_INIT_OBJECT
diff --git a/dev/Kernel/NewKit/MutableArray.h b/dev/Kernel/NewKit/MutableArray.h
index f64c8cad..bfb432de 100644
--- a/dev/Kernel/NewKit/MutableArray.h
+++ b/dev/Kernel/NewKit/MutableArray.h
@@ -38,7 +38,7 @@
// FIXME: this is a shitty algorithm, which is consumer hungry.
// Remove and occurences of that, and remove that class.
-namespace Kernel
+namespace NeOS
{
template <typename T>
class MutableArray;
@@ -149,7 +149,7 @@ namespace Kernel
MutableLinkedList<T>* fFirstNode{nullptr};
/* Number of nodes inside of this dynamic array. */
- Kernel::SizeT fNodeCount{0};
+ NeOS::SizeT fNodeCount{0};
private:
// don't remove that
@@ -234,6 +234,6 @@ namespace Kernel
MutableLinkedList<T>* fFirstNode{nullptr};
/* Number of nodes inside of this dynamic array. */
- Kernel::SizeT fNodeCount{0};
+ NeOS::SizeT fNodeCount{0};
};
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/OwnPtr.h b/dev/Kernel/NewKit/OwnPtr.h
index 5df29d7f..169f16d9 100644
--- a/dev/Kernel/NewKit/OwnPtr.h
+++ b/dev/Kernel/NewKit/OwnPtr.h
@@ -11,7 +11,7 @@
#include <NewKit/KernelPanic.h>
#include <NewKit/Ref.h>
-namespace Kernel
+namespace NeOS
{
template <typename T>
class OwnPtr;
@@ -91,4 +91,4 @@ namespace Kernel
return ret;
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/PageMgr.h b/dev/Kernel/NewKit/PageMgr.h
index a26fccad..3d8e1f9a 100644
--- a/dev/Kernel/NewKit/PageMgr.h
+++ b/dev/Kernel/NewKit/PageMgr.h
@@ -12,7 +12,7 @@
#include <NewKit/Defines.h>
#include <NewKit/Ref.h>
-namespace Kernel
+namespace NeOS
{
class PageMgr;
@@ -78,4 +78,4 @@ namespace Kernel
friend PTEWrapper;
friend class Pmm;
};
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Pair.h b/dev/Kernel/NewKit/Pair.h
index 74ebf54c..05a95ff3 100644
--- a/dev/Kernel/NewKit/Pair.h
+++ b/dev/Kernel/NewKit/Pair.h
@@ -8,7 +8,7 @@
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
class Pair;
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Pmm.h b/dev/Kernel/NewKit/Pmm.h
index 5b90628d..97bdc0eb 100644
--- a/dev/Kernel/NewKit/Pmm.h
+++ b/dev/Kernel/NewKit/Pmm.h
@@ -10,7 +10,7 @@
#include <NewKit/PageMgr.h>
#include <NewKit/Ref.h>
-namespace Kernel
+namespace NeOS
{
class Pmm;
class PTEWrapper;
@@ -41,4 +41,4 @@ namespace Kernel
private:
Ref<PageMgr> fPageMgr;
};
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Ref.h b/dev/Kernel/NewKit/Ref.h
index 45bcf95a..e41bf3bc 100644
--- a/dev/Kernel/NewKit/Ref.h
+++ b/dev/Kernel/NewKit/Ref.h
@@ -12,7 +12,7 @@
#include <NewKit/KernelPanic.h>
#include <KernelKit/MemoryMgr.h>
-namespace Kernel
+namespace NeOS
{
template <typename T>
class Ref final
@@ -103,6 +103,6 @@ namespace Kernel
private:
Ref<T> fRef{nullptr};
};
-} // namespace Kernel
+} // namespace NeOS
#endif // ifndef _NEWKIT_REF_H_
diff --git a/dev/Kernel/NewKit/Stream.h b/dev/Kernel/NewKit/Stream.h
index 9a23664d..541d3389 100644
--- a/dev/Kernel/NewKit/Stream.h
+++ b/dev/Kernel/NewKit/Stream.h
@@ -10,7 +10,7 @@
#include <NewKit/Defines.h>
#include <NewKit/Ref.h>
-namespace Kernel
+namespace NeOS
{
template <typename StreamTrait, typename Kind>
class Stream final
@@ -55,4 +55,4 @@ namespace Kernel
Ref<StreamTrait> fStream;
Ref<Kind> fKind;
};
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Utils.h b/dev/Kernel/NewKit/Utils.h
index e9a3f9a7..48137e1f 100644
--- a/dev/Kernel/NewKit/Utils.h
+++ b/dev/Kernel/NewKit/Utils.h
@@ -9,7 +9,7 @@
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
Int rt_copy_memory(const voidPtr src, voidPtr dst, Size len);
Int rt_move_memory(const voidPtr src, voidPtr dst, Size len);
@@ -27,4 +27,4 @@ namespace Kernel
Int rt_to_lower(Int c);
voidPtr rt_string_in_string(const Char* in, const Char* needle);
char* rt_string_has_char(Char* str, const Char chr);
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/NewKit/Variant.h b/dev/Kernel/NewKit/Variant.h
index 352f486f..38dad66e 100644
--- a/dev/Kernel/NewKit/Variant.h
+++ b/dev/Kernel/NewKit/Variant.h
@@ -10,7 +10,7 @@
#include <NewKit/KString.h>
#include <NewKit/Json.h>
-namespace Kernel
+namespace NeOS
{
class Variant final
{
@@ -67,4 +67,4 @@ namespace Kernel
voidPtr fPtr{nullptr};
VariantKind fKind{VariantKind::kNull};
};
-} // namespace Kernel
+} // namespace NeOS