mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
LibC: Always inline the printf character helpers
This commit is contained in:
parent
151467b569
commit
4a66de580e
1 changed files with 3 additions and 3 deletions
|
@ -390,13 +390,13 @@ int dbgprintf(const char* fmt, ...)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void stdout_putch(char*&, char ch)
|
[[gnu::always_inline]] inline void stdout_putch(char*&, char ch)
|
||||||
{
|
{
|
||||||
putchar(ch);
|
putchar(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
static FILE* __current_stream = nullptr;
|
static FILE* __current_stream = nullptr;
|
||||||
static void stream_putch(char*&, char ch)
|
[[gnu::always_inline]] inline static void stream_putch(char*&, char ch)
|
||||||
{
|
{
|
||||||
fputc(ch, __current_stream);
|
fputc(ch, __current_stream);
|
||||||
}
|
}
|
||||||
|
@ -452,7 +452,7 @@ int sprintf(char* buffer, const char* fmt, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t __vsnprintf_space_remaining;
|
static size_t __vsnprintf_space_remaining;
|
||||||
static void sized_buffer_putch(char*& bufptr, char ch)
|
[[gnu::always_inline]] inline void sized_buffer_putch(char*& bufptr, char ch)
|
||||||
{
|
{
|
||||||
if (__vsnprintf_space_remaining) {
|
if (__vsnprintf_space_remaining) {
|
||||||
*bufptr++ = ch;
|
*bufptr++ = ch;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue