mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 19:37:35 +00:00
Everywhere: Move global Kernel pattern code to Kernel/Library directory
This has KString, KBuffer, DoubleBuffer, KBufferBuilder, IOWindow, UserOrKernelBuffer and ScopedCritical classes being moved to the Kernel/Library subdirectory. Also, move the panic and assertions handling code to that directory.
This commit is contained in:
parent
f1cbfc5a6e
commit
7c0540a229
193 changed files with 238 additions and 240 deletions
|
@ -7,7 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#if defined(KERNEL)
|
||||
# include <Kernel/Assertions.h>
|
||||
# include <Kernel/Library/Assertions.h>
|
||||
#else
|
||||
# include <assert.h>
|
||||
extern "C" __attribute__((noreturn)) void ak_verification_failed(char const*);
|
||||
|
|
2
AK/Hex.h
2
AK/Hex.h
|
@ -11,7 +11,7 @@
|
|||
#include <AK/StringView.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/KString.h>
|
||||
# include <Kernel/Library/KString.h>
|
||||
#else
|
||||
# include <AK/DeprecatedString.h>
|
||||
#endif
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#ifdef KERNEL
|
||||
# include <AK/Error.h>
|
||||
# include <Kernel/KString.h>
|
||||
# include <Kernel/Library/KString.h>
|
||||
#else
|
||||
# include <AK/DeprecatedString.h>
|
||||
# include <AK/String.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#ifdef KERNEL
|
||||
# include <AK/Error.h>
|
||||
# include <Kernel/KString.h>
|
||||
# include <Kernel/Library/KString.h>
|
||||
#else
|
||||
# include <AK/DeprecatedString.h>
|
||||
#endif
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <AK/Vector.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/KString.h>
|
||||
# include <Kernel/Library/KString.h>
|
||||
#else
|
||||
# include <AK/DeprecatedString.h>
|
||||
#endif
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <AK/Types.h>
|
||||
|
||||
#if defined(KERNEL)
|
||||
# include <Kernel/StdLib.h>
|
||||
# include <Kernel/Library/StdLib.h>
|
||||
#else
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
#include <AK/Noncopyable.h>
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/Arch/Processor.h>
|
||||
# include <Kernel/Library/ScopedCritical.h>
|
||||
# include <Kernel/Locking/SpinlockProtected.h>
|
||||
# include <Kernel/ScopedCritical.h>
|
||||
#elif defined(AK_OS_WINDOWS)
|
||||
// Forward declare to avoid pulling Windows.h into every file in existence.
|
||||
extern "C" __declspec(dllimport) void __stdcall Sleep(unsigned long);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <AK/Vector.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/StdLib.h>
|
||||
# include <Kernel/Library/StdLib.h>
|
||||
#else
|
||||
# include <AK/DeprecatedString.h>
|
||||
# include <AK/FloatingPointStringConversions.h>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <AK/Types.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/KString.h>
|
||||
# include <Kernel/Library/KString.h>
|
||||
#else
|
||||
# include <AK/String.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue