From 175346aac4942eb97ccf2f00ca127cf700cd2eff Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 5 Dec 2012 08:56:06 +0100 Subject: port to libgsf status: - record+suminfo pass - the following tests fail in testdatabase: try_transform, stringtable, deleterow, storages_table, createtable. Some of these are not enabled on POSIX systems, but the others pass there. TODO: port the missing tests to libgsf, run them against the IStorage version and again with the new one. verify that the testsuite passes on POSIX systems. --- include/debug.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/debug.h b/include/debug.h index c3bc2be..c2c6c4f 100644 --- a/include/debug.h +++ b/include/debug.h @@ -22,15 +22,13 @@ #define __WINE_WINE_DEBUG_H #include +#include #include #include #include #include #include #include -#ifndef GUID_DEFINED -#include -#endif #ifdef __cplusplus extern "C" { @@ -117,14 +115,11 @@ static inline const char *wine_dbgstr_w( const WCHAR *s ) return wine_dbgstr_wn( s, -1 ); } -static inline const char *wine_dbgstr_guid( const GUID *id ) +static inline const char *wine_dbgstr_guid( const uint8_t *id ) { - if (!id) return "(null)"; - if (!((uintptr_t)id >> 16)) return wine_dbg_sprintf( "", (WORD)(uintptr_t)id ); - return wine_dbg_sprintf( "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", - id->Data1, id->Data2, id->Data3, - id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3], - id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] ); + return wine_dbg_sprintf( "{%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x}", + id[0], id[1], id[2], id[3], id[4], id[5], id[6], id[7], + id[8], id[9], id[10], id[11], id[12], id[13], id[14], id[15]); } static inline const char *wine_dbgstr_point( const POINT *pt ) @@ -157,7 +152,7 @@ static inline const char *wine_dbgstr_longlong( unsigned long long ll ) static inline const char *debugstr_an( const char * s, int n ) { return wine_dbgstr_an( s, n ); } static inline const char *debugstr_wn( const WCHAR *s, int n ) { return wine_dbgstr_wn( s, n ); } -static inline const char *debugstr_guid( const GUID *id ) { return wine_dbgstr_guid( id ); } +static inline const char *debugstr_guid( const uint8_t *id ) { return wine_dbgstr_guid( id ); } static inline const char *debugstr_a( const char *s ) { return wine_dbgstr_an( s, -1 ); } static inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); } -- cgit