mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
Pass the process to CharacterDevice::read/write.
This is much nicer than grabbing directly at 'current' inside a read().
This commit is contained in:
parent
08bfe518f9
commit
bd3e77cc16
27 changed files with 63 additions and 62 deletions
|
@ -2,12 +2,13 @@
|
|||
#include "Console.h"
|
||||
#include "IO.h"
|
||||
#include <stdarg.h>
|
||||
#include "Process.h"
|
||||
#include <AK/Types.h>
|
||||
#include <AK/printf.cpp>
|
||||
|
||||
static void console_putch(char*&, char ch)
|
||||
{
|
||||
Console::the().write((byte*)&ch, 1);
|
||||
Console::the().write(*current, (byte*)&ch, 1);
|
||||
}
|
||||
|
||||
int kprintf(const char* fmt, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue