From 8e799e2d3eeaf350acda68700577671b405580d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 28 Dec 2023 17:41:18 +0100 Subject: [PATCH] [SDK:WINE] Some minor additions to wine/test.h (#6822) - Add two missing debugstr_w* helpers. These will be needed for future winetest syncs. Note that such change would be unnecessary, would wine/test.h and wine/debug.h be also updated with latest Wine versions. Indeed, wine/debug.h is now allowed to be included in wine tests since wine commit: ``` include: Allow using debug.h in tests. Signed-off-by: Alexandre Julliard wine commit id c8f338369695d360e021f2cbd82a18b2c0eb1514 by Alexandre Julliard ``` - Since our wine/test.h doesn't include wine/debug.h for now, include instead stdio.h for the time being, in order to get support for s(w)printf() in tests that don't include stdio.h --- sdk/include/reactos/wine/test.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/include/reactos/wine/test.h b/sdk/include/reactos/wine/test.h index 0cbc40010b5..872ab75378a 100644 --- a/sdk/include/reactos/wine/test.h +++ b/sdk/include/reactos/wine/test.h @@ -25,6 +25,7 @@ #include #include #include +#include // In the future: replace by #ifdef __WINE_CONFIG_H #error config.h should not be used in Wine tests @@ -86,6 +87,8 @@ extern const char *wine_dbgstr_longlong( ULONGLONG ll ); #endif static inline const char *debugstr_a( const char *s ) { return wine_dbgstr_an( s, -1 ); } static inline const char *debugstr_an( const CHAR *s, intptr_t n ) { return wine_dbgstr_an( s, n ); } +static inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); } +static inline const char *debugstr_wn( const WCHAR *s, int n ) { return wine_dbgstr_wn( s, n ); } static inline const char *wine_dbgstr_a( const char *s ) { return wine_dbgstr_an( s, -1 ); } static inline const char *wine_dbgstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); }