diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-30 05:06:48 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-30 05:06:48 +0200 |
| commit | ffa1c9bd15768cbc5f176935e0e6d72e97c3e0ba (patch) | |
| tree | ff00027cb4648a340b31096535fc4d58baf72c05 /Kernel/KernelKit/DebugOutput.hpp | |
| parent | 8d40572607dabd4de34e7a6881bed8af9680a5c2 (diff) | |
amd64-efi.make: Fix makefile: Add necessary macros and detect windows
correctly.
DebugOutput.hpp: Use default destructor for TerminalDevice, rename
NUMBERS to cNumbers.
NewFS.cxx/ProcessScheduler.hxx: Just code improvements here.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/KernelKit/DebugOutput.hpp')
| -rw-r--r-- | Kernel/KernelKit/DebugOutput.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Kernel/KernelKit/DebugOutput.hpp b/Kernel/KernelKit/DebugOutput.hpp index f5c402db..05865661 100644 --- a/Kernel/KernelKit/DebugOutput.hpp +++ b/Kernel/KernelKit/DebugOutput.hpp @@ -125,10 +125,10 @@ namespace NewOS if (y < 0) y = -y; - const char NUMBERS[11] = "0123456789"; + const char cNumbers[11] = "0123456789"; Char buf[2]; - buf[0] = NUMBERS[h]; + buf[0] = cNumbers[h]; buf[1] = 0; term << buf; @@ -153,10 +153,10 @@ namespace NewOS if (y < 0) y = -y; - const char NUMBERS[17] = "0123456789ABCDEF"; + const char cNumbers[17] = "0123456789ABCDEF"; Char buf[2]; - buf[0] = NUMBERS[h]; + buf[0] = cNumbers[h]; buf[1] = 0; term << buf; @@ -186,7 +186,9 @@ namespace NewOS inline TerminalDevice& get_console_in(Char* buf) { TerminalDevice& selfTerm = TerminalDevice::The(); + selfTerm >> buf; + return selfTerm; } |
