diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-24 08:24:36 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-24 08:24:36 +0200 |
| commit | 1e0ecf576c5cc3272a1e5e0b5c0f09041014d90b (patch) | |
| tree | 6b9a68e505e8be6dab6c33fa99a8ec47c79cc534 /Private/Source | |
| parent | 21de9c0793156287836efcf87b99a3ef948f4939 (diff) | |
Kernel: tons of patches and fixes.
Bootloader: Add error screen and support page in case of a catastrophic
failure.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/String.cxx | 6 | ||||
| -rw-r--r-- | Private/Source/Utils.cxx | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Private/Source/String.cxx b/Private/Source/String.cxx index 8f571f34..4c8ce2fd 100644 --- a/Private/Source/String.cxx +++ b/Private/Source/String.cxx @@ -68,7 +68,7 @@ ErrorOr<StringView> StringBuilder::Construct(const Char *data) { const char *StringBuilder::FromInt(const char *fmt, int i) { if (!fmt) return ("-1"); - char *ret = (char *)__alloca(sizeof(char) * 8 + rt_string_len(fmt)); + char *ret = (char *)Alloca(sizeof(char) * 8 + rt_string_len(fmt)); if (!ret) return ("-1"); @@ -103,7 +103,7 @@ const char *StringBuilder::FromBool(const char *fmt, bool i) { if (!fmt) return ("?"); const char *boolean_expr = i ? "true" : "false"; - char *ret = (char *)__alloca((sizeof(char) * i) ? 4 : 5 + rt_string_len(fmt)); + char *ret = (char *)Alloca((sizeof(char) * i) ? 4 : 5 + rt_string_len(fmt)); if (!ret) return ("?"); @@ -142,7 +142,7 @@ const char *StringBuilder::Format(const char *fmt, const char *fmt2) { if (!fmt || !fmt2) return ("?"); char *ret = - (char *)alloca(sizeof(char) * rt_string_len(fmt2) + rt_string_len(fmt2)); + (char *)Alloca(sizeof(char) * rt_string_len(fmt2) + rt_string_len(fmt2)); if (!ret) return ("?"); diff --git a/Private/Source/Utils.cxx b/Private/Source/Utils.cxx index 75e158a0..e12041c8 100644 --- a/Private/Source/Utils.cxx +++ b/Private/Source/Utils.cxx @@ -6,6 +6,7 @@ #include <NewKit/Utils.hpp> #include <KernelKit/DebugOutput.hpp> +#include <cstddef> namespace NewOS { Int rt_string_cmp(const Char *src, const Char *cmp, Size size) { |
