CVS: winex/dlls/ntdll debugtools.c, 1.23, 1.24 ntdll.spec, 1.49, 1.50
[email protected] 12 Sep 2007 12:11:37 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/dlls/ntdll debugtools.c,1.23,1.24 ntdll.spec,1.49,1.50Update of /var/lib/cvsd/cvsroot/winex/dlls/ntdll
In directory agravaine:/tmp/cvs-serv5390/dlls/ntdll
Modified Files:
debugtools.c ntdll.spec
Log Message:
- added the wine_dbgstr_longlong() and debugstr_longlong() functions to ntdll
Index: debugtools.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/ntdll/debugtools.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- debugtools.c 31 Aug 2007 12:55:22 -0000 1.23
+++ debugtools.c 12 Sep 2007 12:11:35 -0000 1.24
@@ -249,6 +249,32 @@
}
/***********************************************************************
+ * wine_dbgstr_longlong (NTDLL.@)
+ */
+const char *wine_dbgstr_longlong( ULONGLONG val )
+{
+ char *str;
+
+
+
+ if (sizeof(val) > sizeof(unsigned long) && val >> 32){
+ str = gimme1(20);
+
+ sprintf(str, "0x%lx%08lx", (unsigned long)(val >> 32), (unsigned long)val);
+ }
+
+ else{
+ str = gimme1(12);
+
+ sprintf(str, "0x%lx", (unsigned long)val);
+ }
+
+
+ return str;
+}
+
+
+/***********************************************************************
* wine_return_address (internal)
*/
static void* wine_return_address( unsigned int frame_no, CONTEXT *ctx )
Index: ntdll.spec
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/ntdll/ntdll.spec,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- ntdll.spec 31 Jul 2007 17:58:50 -0000 1.49
+++ ntdll.spec 12 Sep 2007 12:11:35 -0000 1.50
@@ -1056,6 +1056,7 @@
@ cdecl -norelay wine_dbgstr_an(str long) wine_dbgstr_an
@ cdecl -norelay wine_dbgstr_wn(str long) wine_dbgstr_wn
@ cdecl -norelay wine_dbgstr_guid(ptr) wine_dbgstr_guid
+@ cdecl -norelay wine_dbgstr_longlong(ptr) wine_dbgstr_longlong
@ cdecl -norelay wine_dbg_vprintf(str ptr) wine_dbg_vprintf
@ cdecl -norelay wine_dbgstack(long) wine_dbgstack
@ varargs wine_dbg_printf(str) wine_dbg_printf