mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[INCLUDE/WINE] Update test.h with a debug function for longlong.
Disabled by default because it introduces a new dependency on ntdll (_aullshr) svn path=/trunk/; revision=72502
This commit is contained in:
parent
99a31b3e64
commit
71ad0a0f9b
1 changed files with 18 additions and 0 deletions
|
@ -73,6 +73,9 @@ extern const char *wine_dbgstr_guid( const GUID *guid );
|
|||
extern const char *wine_dbgstr_point( const POINT *guid );
|
||||
extern const char *wine_dbgstr_size( const SIZE *guid );
|
||||
extern const char *wine_dbgstr_rect( const RECT *rect );
|
||||
#ifdef WINETEST_USE_DBGSTR_LONGLONG
|
||||
extern const char *wine_dbgstr_longlong( ULONGLONG ll );
|
||||
#endif
|
||||
static inline const char *wine_dbgstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); }
|
||||
|
||||
/* strcmpW is available for tests compiled under Wine, but not in standalone
|
||||
|
@ -622,6 +625,21 @@ const char *wine_dbgstr_rect( const RECT *rect )
|
|||
return res;
|
||||
}
|
||||
|
||||
#ifdef WINETEST_USE_DBGSTR_LONGLONG
|
||||
const char *wine_dbgstr_longlong( ULONGLONG ll )
|
||||
{
|
||||
char *res;
|
||||
|
||||
res = get_temp_buffer( 20 );
|
||||
if (/*sizeof(ll) > sizeof(unsigned long) &&*/ ll >> 32) /* ULONGLONG is always > long in ReactOS */
|
||||
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;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Find a test by name */
|
||||
static const struct test *find_test( const char *name )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue