ladybird/Kernel/TTY
Lenny Maiorani 5751327195 Kernel: static vs non-static constexpr variables
Problem:
- `static` variables consume memory and sometimes are less
  optimizable.
- `static const` variables can be `constexpr`, usually.
- `static` function-local variables require an initialization check
  every time the function is run.

Solution:
- If a global `static` variable is only used in a single function then
  move it into the function and make it non-`static` and `constexpr`.
- Make all global `static` variables `constexpr` instead of `const`.
- Change function-local `static const[expr]` variables to be just
  `constexpr`.
2021-05-19 21:21:47 +01:00
..
ConsoleManagement.cpp Kernel: Print all logbuffer from ConsoleDevice to debug Virtual Console 2021-05-16 19:58:33 +02:00
ConsoleManagement.h Kernel: Print scheduler state to the display console 2021-05-16 19:58:33 +02:00
MasterPTY.cpp Kernel: Don't use ref_count() in MasterPTY::close() 2021-05-01 23:04:40 +02:00
MasterPTY.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PTYMultiplexer.cpp Kernel: static vs non-static constexpr variables 2021-05-19 21:21:47 +01:00
PTYMultiplexer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SlavePTY.cpp Kernel: Make UserOrKernelBuffer R/W helpers return KResultOr<size_t> 2021-05-13 23:28:40 +02:00
SlavePTY.h Kernel: Avoid unnecessary allocations for TTY::tty_name() 2021-05-13 08:27:42 +02:00
TTY.cpp Kernel: Acknowledge partial writes from TTYs 2021-05-18 16:47:26 +02:00
TTY.h Kernel+LibC: Support more termios settings in TTY 2021-05-17 11:00:48 +02:00
VirtualConsole.cpp LibVT: Fix newline handling 2021-05-17 18:19:49 +02:00
VirtualConsole.h LibVT: Fix newline handling 2021-05-17 18:19:49 +02:00