Add wine_dbgstr_longlong.
Modified: trunk/reactos/include/wine/debug.h
Modified: trunk/reactos/lib/libwine/debug.c
_____
Modified: trunk/reactos/include/wine/debug.h
--- trunk/reactos/include/wine/debug.h 2005-01-03 13:50:04 UTC (rev
12754)
+++ trunk/reactos/include/wine/debug.h 2005-01-03 14:46:08 UTC (rev
12755)
@@ -37,6 +37,7 @@
extern const char *wine_dbgstr_an( const char * s, int n );
extern const char *wine_dbgstr_wn( const wchar_t *s, int n );
extern const char *wine_dbgstr_guid( const struct _GUID *id );
+extern const char *wine_dbgstr_longlong( unsigned long long ll );
extern const char *wine_dbg_sprintf( const char *format, ... );
inline static const char *debugstr_an( const char * s, int n ) { return
wine_dbgstr_an( s, n ); }
_____
Modified: trunk/reactos/lib/libwine/debug.c
--- trunk/reactos/lib/libwine/debug.c 2005-01-03 13:50:04 UTC (rev
12754)
+++ trunk/reactos/lib/libwine/debug.c 2005-01-03 14:46:08 UTC (rev
12755)
@@ -25,6 +25,7 @@
#include <wine/config.h>
#include <wine/port.h>
+#include <wine/debug.h>
/*
----------------------------------------------------------------------
*/
@@ -203,6 +204,12 @@
return str;
}
+const char *wine_dbgstr_longlong( unsigned long long ll )
+{
+ if (ll >> 32) return wine_dbg_sprintf( "%lx%08lx", (unsigned
long)(ll >> 32), (unsigned long)ll );
+ else return wine_dbg_sprintf( "%lx", (unsigned long)ll );
+}
+
/* varargs wrapper for __wine_dbg_vsprintf */
const char *wine_dbg_sprintf( const char *format, ... )
{