Alistair Leslie-Hughes : include: Support wine_dbgstr_longlong in tests.
Module: wine Branch: master Commit: 87b72098c3a1e4b60b21d9a5703870e3a30fc89d URL: http://source.winehq.org/git/wine.git/?a=commit;h=87b72098c3a1e4b60b21d9a570... Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Thu Jun 29 23:08:09 2017 +0000 include: Support wine_dbgstr_longlong in tests. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/wine/test.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/wine/test.h b/include/wine/test.h index af602c0..4ec66d5 100644 --- a/include/wine/test.h +++ b/include/wine/test.h @@ -68,6 +68,7 @@ extern const char *wine_dbgstr_wn( const WCHAR *str, int n ); extern const char *wine_dbgstr_guid( const GUID *guid ); extern const char *wine_dbgstr_rect( const RECT *rect ); static inline const char *wine_dbgstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); } +extern const char *wine_dbgstr_longlong( ULONGLONG ll ); /* strcmpW is available for tests compiled under Wine, but not in standalone * builds under Windows, so we reimplement it under a different name. */ @@ -541,6 +542,19 @@ const char *wine_dbgstr_rect( const RECT *rect ) return res; } +const char *wine_dbgstr_longlong( ULONGLONG ll ) +{ + char *res; + + res = get_temp_buffer( 17 ); + if (sizeof(ll) > sizeof(unsigned long) && ll >> 32) + sprintf( res, "%lx%08lx", (unsigned long)(ll >> 32), (unsigned long)ll ); + else + sprintf( res, "%lx", (unsigned long)ll ); + release_temp_buffer( res, strlen(res) + 1 ); + return res; +} + /* Find a test by name */ static const struct test *find_test( const char *name ) {
participants (1)
-
Alexandre Julliard