1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:27:43 +00:00

Kernel: Move TYPEDEF_* TTY macros to API/ttydefaults.h file

This allows us to get rid of an include to LibC/sys/ttydefaults.h in the
Kernel TTY implementation.

Also, move ttydefchars static const struct to another file called
Kernel/API/ttydefaultschars.h, so it could be used too in the Kernel TTY
implementation without the need to include anything from LibC.
This commit is contained in:
Liav A 2023-02-26 18:56:25 +02:00 committed by Andrew Kaster
parent 800e244ed9
commit 6b849fc8b1
4 changed files with 92 additions and 76 deletions

View file

@ -10,13 +10,13 @@
#include <Kernel/API/Ioctl.h>
#include <Kernel/API/POSIX/errno.h>
#include <Kernel/API/POSIX/signal_numbers.h>
#include <Kernel/API/ttydefaults.h>
#include <Kernel/API/ttydefaultschars.h>
#include <Kernel/Debug.h>
#include <Kernel/InterruptDisabler.h>
#include <Kernel/Process.h>
#include <Kernel/TTY/TTY.h>
#define TTYDEFCHARS
#include <LibC/sys/ttydefaults.h>
#undef TTYDEFCHARS
#include <Kernel/UnixTypes.h>
namespace Kernel {