[ros-diffs] [navaraf] 12755: Add wine_dbgstr_longlong.

navaraf at svn.reactos.com navaraf at svn.reactos.com
Mon Jan 3 15:46:10 CET 2005


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, ... )
 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050103/d33d8472/attachment.html


More information about the Ros-diffs mailing list