mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibCore: Move Stream-based file into the Core
namespace
This commit is contained in:
parent
a96339b72b
commit
606a3982f3
Notes:
sideshowbarker
2024-07-18 05:01:22 +09:00
Author: https://github.com/timschumi
Commit: 606a3982f3
Pull-request: https://github.com/SerenityOS/serenity/pull/17406
Reviewed-by: https://github.com/linusg
218 changed files with 748 additions and 643 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibDiff/Generator.h>
|
||||
|
@ -23,8 +24,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
parser.add_positional_argument(filename2, "Second file to compare", "file2", Core::ArgsParser::Required::Yes);
|
||||
parser.parse(arguments);
|
||||
|
||||
auto file1 = TRY(Core::Stream::File::open(filename1, Core::Stream::OpenMode::Read));
|
||||
auto file2 = TRY(Core::Stream::File::open(filename2, Core::Stream::OpenMode::Read));
|
||||
auto file1 = TRY(Core::File::open(filename1, Core::File::OpenMode::Read));
|
||||
auto file2 = TRY(Core::File::open(filename2, Core::File::OpenMode::Read));
|
||||
|
||||
bool color_output = TRY(Core::System::isatty(STDOUT_FILENO));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue