diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-03-17 12:56:58 +0100 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-19 19:58:09 +0100 |
commit | 3372e17d51b6ecab1695de9e41d26a9216a62a52 (patch) | |
tree | 7bca481b4025bdf8db09bac4223ca4d21d7237e0 /osdep/terminal-dummy.c | |
parent | 2ee0db4c5dbf1a5d956fc4a338781b48e812c85b (diff) | |
download | mpv-3372e17d51b6ecab1695de9e41d26a9216a62a52.tar.bz2 mpv-3372e17d51b6ecab1695de9e41d26a9216a62a52.tar.xz |
win32: optimize mp_vfprintf a little
- remove redundant strlen/wcslen
- reuse allocated temporary buffers
The difference is not big, but it satisfies me to remove those
redundancies.
Diffstat (limited to 'osdep/terminal-dummy.c')
-rw-r--r-- | osdep/terminal-dummy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/osdep/terminal-dummy.c b/osdep/terminal-dummy.c index 4b33d786a8..0c861740e5 100644 --- a/osdep/terminal-dummy.c +++ b/osdep/terminal-dummy.c @@ -1,5 +1,7 @@ #include "terminal.h" +#include "misc/bstr.h" + void terminal_init(void) { } @@ -25,8 +27,9 @@ void terminal_get_size2(int *rows, int *cols, int *px_width, int *px_height) { } -void mp_write_console_ansi(void *wstream, char *buf) +int mp_write_console_ansi(void *wstream, const char *format, va_list args) { + return 0; } bool terminal_try_attach(void) |