mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 17:28:48 +00:00
Add a Unix namespace for foo_t types.
This allows me to keep prototyping things on a random desktop machine, even if that machine has its own ideas about foo_t types.
This commit is contained in:
parent
c6d6ba7512
commit
1f41a36c52
Notes:
sideshowbarker
2024-07-19 18:48:10 +09:00
Author: https://github.com/awesomekling
Commit: 1f41a36c52
16 changed files with 116 additions and 49 deletions
|
@ -12,13 +12,13 @@ NullDevice::~NullDevice()
|
|||
{
|
||||
}
|
||||
|
||||
ssize_t NullDevice::read(byte*, size_t)
|
||||
Unix::ssize_t NullDevice::read(byte*, Unix::size_t)
|
||||
{
|
||||
printf("read from null\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
ssize_t NullDevice::write(const byte*, size_t bufferSize)
|
||||
Unix::ssize_t NullDevice::write(const byte*, Unix::size_t bufferSize)
|
||||
{
|
||||
return min(GoodBufferSize, bufferSize);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue