Moved backspace() & append()

This commit is contained in:
Alex
2022-11-16 16:03:09 +02:00
parent 786a8432c0
commit 4d874a3e81
3 changed files with 17 additions and 13 deletions

View File

@ -2,6 +2,7 @@
#include "chfcts.hpp"
#include <display.hpp>
#include <convert.h>
#include <printf.h>
#include <debug.h>
#include <smp.hpp>
@ -74,19 +75,6 @@ static inline int GetLetterFromScanCode(uint8_t ScanCode)
return KEY_INVALID;
}
static inline void backspace(char s[])
{
int len = strlen(s);
s[len - 1] = '\0';
}
static inline void append(char s[], char n)
{
int len = strlen(s);
s[len] = n;
s[len + 1] = '\0';
}
namespace CrashHandler
{
CrashKeyboardDriver::CrashKeyboardDriver() : Interrupts::Handler(CPU::x64::IRQ1)