Kernel: Make major and minor numbers to be DistinctNumerics

This helps avoid confusion in general, and make constructors, methods
and code patterns much more clean and understandable.
This commit is contained in:
Liav A 2021-12-23 20:08:18 +02:00 committed by Andreas Kling
commit 9eb08bdb0f
Notes: sideshowbarker 2024-07-17 22:19:42 +09:00
24 changed files with 70 additions and 52 deletions

View file

@ -53,7 +53,7 @@ protected:
virtual ErrorOr<size_t> on_tty_write(const UserOrKernelBuffer&, size_t) = 0;
void set_size(unsigned short columns, unsigned short rows);
TTY(unsigned major, unsigned minor);
TTY(MajorNumber major, MinorNumber minor);
void emit(u8, bool do_evaluate_block_conditions = false);
void echo_with_processing(u8);