From 3372e17d51b6ecab1695de9e41d26a9216a62a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 17 Mar 2024 12:56:58 +0100 Subject: 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. --- osdep/terminal-dummy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'osdep/terminal-dummy.c') 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) -- cgit v1.2.3