mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibLine: Use Core::EventLoop for outer read loop
This commit changes LibLine's internal structure to work in an event loop, and as a result, also switches it to being a Core::Object.
This commit is contained in:
parent
8e6df3949d
commit
70a213a6ec
Notes:
sideshowbarker
2024-07-19 06:05:35 +09:00
Author: https://github.com/alimpfard
Commit: 70a213a6ec
Pull-request: https://github.com/SerenityOS/serenity/pull/2398
Reviewed-by: https://github.com/awesomekling
7 changed files with 583 additions and 517 deletions
|
@ -65,7 +65,7 @@ private:
|
|||
|
||||
static bool s_dump_ast = false;
|
||||
static bool s_print_last_result = false;
|
||||
static OwnPtr<Line::Editor> s_editor;
|
||||
static RefPtr<Line::Editor> s_editor;
|
||||
static int s_repl_line_level = 0;
|
||||
static bool s_fail_repl = false;
|
||||
|
||||
|
@ -510,7 +510,7 @@ int main(int argc, char** argv)
|
|||
if (test_mode)
|
||||
enable_test_mode(*interpreter);
|
||||
|
||||
s_editor = make<Line::Editor>();
|
||||
s_editor = Line::Editor::construct();
|
||||
|
||||
signal(SIGINT, [](int) {
|
||||
if (!s_editor->is_editing())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue