mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
LibCore: Rename File
to DeprecatedFile
As usual, this removes many unused includes and moves used includes further down the chain.
This commit is contained in:
parent
14951b92ca
commit
d43a7eae54
193 changed files with 536 additions and 556 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "Engine.h"
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <fcntl.h>
|
||||
#include <spawn.h>
|
||||
#include <stdio.h>
|
||||
|
@ -48,12 +48,12 @@ Engine::Engine(StringView command)
|
|||
close(wpipefds[0]);
|
||||
close(rpipefds[1]);
|
||||
|
||||
auto infile = Core::File::construct();
|
||||
infile->open(rpipefds[0], Core::OpenMode::ReadOnly, Core::File::ShouldCloseFileDescriptor::Yes);
|
||||
auto infile = Core::DeprecatedFile::construct();
|
||||
infile->open(rpipefds[0], Core::OpenMode::ReadOnly, Core::DeprecatedFile::ShouldCloseFileDescriptor::Yes);
|
||||
set_in(infile);
|
||||
|
||||
auto outfile = Core::File::construct();
|
||||
outfile->open(wpipefds[1], Core::OpenMode::WriteOnly, Core::File::ShouldCloseFileDescriptor::Yes);
|
||||
auto outfile = Core::DeprecatedFile::construct();
|
||||
outfile->open(wpipefds[1], Core::OpenMode::WriteOnly, Core::DeprecatedFile::ShouldCloseFileDescriptor::Yes);
|
||||
set_out(outfile);
|
||||
|
||||
send_command(Chess::UCI::UCICommand());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue