From 0db25895168df6ebb9bd8781e3ffd83d3323b398 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 14 Feb 2025 21:34:09 +0100 Subject: A set of patches and necessary changes given to the OS. Signed-off-by: Amlal --- dev/Kernel/NewKit/KString.h | 2 +- dev/Kernel/NewKit/Macros.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dev/Kernel/NewKit') diff --git a/dev/Kernel/NewKit/KString.h b/dev/Kernel/NewKit/KString.h index c0e48d72..dc327f3b 100644 --- a/dev/Kernel/NewKit/KString.h +++ b/dev/Kernel/NewKit/KString.h @@ -16,7 +16,7 @@ namespace Kernel { - /// @brief KString static string class. + /// @brief Kernel string class, not dynamic. class KString final { public: diff --git a/dev/Kernel/NewKit/Macros.h b/dev/Kernel/NewKit/Macros.h index 8673bad1..15d5f2bd 100644 --- a/dev/Kernel/NewKit/Macros.h +++ b/dev/Kernel/NewKit/Macros.h @@ -11,7 +11,7 @@ #endif #ifndef kib_cast -#define kib_cast(X) (Kernel::UInt64)((X)*1024) +#define kib_cast(X) (Kernel::UInt64)((X) * 1024) #endif #ifndef MIB @@ -92,9 +92,9 @@ #define END_STRING_ENUM() } #endif -#ifndef rtl_alloca -#define rtl_alloca(sz) __builtin_alloca(sz) -#endif // #ifndef rtl_alloca +#ifndef RTL_ALLOCA +#define RTL_ALLOCA(sz) __builtin_alloca(sz) +#endif // #ifndef RTL_ALLOCA #ifndef CANT_REACH #define CANT_REACH() __builtin_unreachable() -- cgit v1.2.3