1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

LibCore: Add a forward declaration header

This patch adds <LibCore/Forward.h> and uses it in various places to
shrink the header dependency graph.
This commit is contained in:
Andreas Kling 2020-02-14 22:29:06 +01:00
parent 3bbf4610d2
commit 8f7333f080
35 changed files with 143 additions and 38 deletions

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/ByteBuffer.h>
#include <AK/PrintfImplementation.h>
#include <LibCore/IODevice.h>
#include <LibCore/SyscallUtils.h>
@ -296,4 +297,10 @@ void IODevice::set_fd(int fd)
m_fd = fd;
did_update_fd(fd);
}
bool IODevice::write(const StringView& v)
{
return write((const u8*)v.characters_without_null_termination(), v.length());
}
}