mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
Use modern C++ attributes instead of __attribute__ voodoo.
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
This commit is contained in:
parent
fbcc8ab840
commit
022f7790db
34 changed files with 99 additions and 124 deletions
|
@ -481,27 +481,26 @@ void Terminal::on_char(byte ch)
|
|||
return;
|
||||
}
|
||||
m_escape_state = ExpectXtermFinal;
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case ExpectXtermFinal:
|
||||
m_escape_state = Normal;
|
||||
if (ch == '\007')
|
||||
execute_xterm_command();
|
||||
return;
|
||||
|
||||
case ExpectParameter:
|
||||
if (is_valid_parameter_character(ch)) {
|
||||
m_parameters.append(ch);
|
||||
return;
|
||||
}
|
||||
m_escape_state = ExpectIntermediate;
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case ExpectIntermediate:
|
||||
if (is_valid_intermediate_character(ch)) {
|
||||
m_intermediates.append(ch);
|
||||
return;
|
||||
}
|
||||
m_escape_state = ExpectFinal;
|
||||
// fall through
|
||||
[[fallthrough]];
|
||||
case ExpectFinal:
|
||||
if (is_valid_final_character(ch)) {
|
||||
m_escape_state = Normal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue