From cab9654301ec4adb953677ca62193d670167edeb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 3 Aug 2011 13:31:22 -0700 Subject: [PATCH] Uninline debugstr_guid --- debug.c | 9 +++++++++ dsound_private.h | 11 +---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/debug.c b/debug.c index 84beba0..3df5112 100644 --- a/debug.c +++ b/debug.c @@ -105,3 +105,12 @@ const char *wine_dbgstr_wn( const WCHAR *str, int n ) return res; } +const char *debugstr_guid( const GUID *id ) +{ + if (!id) return "(null)"; + if (!((ULONG_PTR)id >> 16)) return wine_dbg_sprintf( "", (WORD)(ULONG_PTR)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] ); +} diff --git a/dsound_private.h b/dsound_private.h index b8303b2..63e8c5d 100644 --- a/dsound_private.h +++ b/dsound_private.h @@ -72,16 +72,7 @@ extern int LogLevel; const char *wine_dbg_sprintf( const char *format, ... ); const char *wine_dbgstr_wn( const WCHAR *str, int n ); - -static inline const char *debugstr_guid( const GUID *id ) -{ - if (!id) return "(null)"; - if (!((ULONG_PTR)id >> 16)) return wine_dbg_sprintf( "", (WORD)(ULONG_PTR)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] ); -} +const char *debugstr_guid( const GUID *id ); static inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); } -- 2.11.4.GIT