Jeff Latimer : msvcirt: Add some stubs.

Alexandre Julliard julliard at winehq.org
Mon Aug 2 11:03:56 CDT 2010


Module: wine
Branch: master
Commit: 1510698b5656e74c37c70c7630c9896c1434a0ac
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1510698b5656e74c37c70c7630c9896c1434a0ac

Author: Jeff Latimer <lats at yless4u.com.au>
Date:   Sat Jul 31 18:11:44 2010 +1000

msvcirt: Add some stubs.

---

 dlls/msvcirt/msvcirt.c    |   62 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/msvcirt/msvcirt.spec |   12 ++++----
 2 files changed, 68 insertions(+), 6 deletions(-)

diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c
index 924e84c..b15f410 100644
--- a/dlls/msvcirt/msvcirt.c
+++ b/dlls/msvcirt/msvcirt.c
@@ -29,8 +29,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcirt);
 
 typedef struct {
     LPVOID VTable;
+} class_ios;
+
+typedef struct {
+    LPVOID VTable;
 } class_ostream;
 
+typedef struct {
+    LPVOID VTable;
+} class_strstreambuf;
+
 #ifdef __i386__  /* thiscall functions are i386-specific */
 
 #define THISCALL(func) __thiscall_ ## func
@@ -51,6 +59,39 @@ typedef struct {
 #endif /* __i386__ */
 
 /******************************************************************
+ *		 ??1ios@@UAE at XZ (MSVCRTI.@)
+ *        class ios & __thiscall ios::-ios<<(void)
+ */
+DEFINE_THISCALL_WRAPPER(MSVCIRT_ios_sl_void,4)
+void * __stdcall MSVCIRT_ios_sl_void(class_ios * _this)
+{
+   FIXME("(%p) stub\n", _this);
+   return _this;
+}
+
+/******************************************************************
+ *		 ??0ostrstream@@QAE at XZ (MSVCRTI.@)
+ *        class ostream & __thiscall ostrstream::ostrstream<<(void)
+ */
+DEFINE_THISCALL_WRAPPER(MSVCIRT_ostrstream_sl_void,4)
+void * __stdcall MSVCIRT_ostrstream_sl_void(class_ostream * _this)
+{
+   FIXME("(%p) stub\n", _this);
+   return _this;
+}
+
+/******************************************************************
+ *		??6ostream@@QAEAAV0 at E@Z (MSVCRTI.@)
+ *    class ostream & __thiscall ostream::operator<<(unsigned char)
+ */
+DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_uchar,8)
+void * __stdcall MSVCIRT_operator_sl_uchar(class_ostream * _this, unsigned char ch)
+{
+   FIXME("(%p)->(%c) stub\n", _this, ch);
+   return _this;
+}
+
+/******************************************************************
  *		 ??6ostream@@QAEAAV0 at H@Z (MSVCRTI.@)
  *        class ostream & __thiscall ostream::operator<<(int)
  */
@@ -93,6 +134,27 @@ void * CDECL MSVCIRT_endl(class_ostream * _this)
    return _this;
 }
 
+/******************************************************************
+ *		?ends@@YAAAVostream@@AAV1@@Z (MSVCRTI.@)
+ *           class ostream & __cdecl ends(class ostream &)
+ */
+void * CDECL MSVCIRT_ends(class_ostream * _this)
+{
+   FIXME("(%p)->() stub\n", _this);
+   return _this;
+}
+
+/******************************************************************
+ *		?str at strstreambuf@@QAEPADXZ (MSVCRTI.@)
+ *           class strstreambuf & __thiscall strstreambuf::str(class strstreambuf &)
+ */
+DEFINE_THISCALL_WRAPPER(MSVCIRT_str_sl_void,4)
+char * __stdcall MSVCIRT_str_sl_void(class_strstreambuf * _this)
+{
+   FIXME("(%p)->() stub\n", _this);
+   return 0;
+}
+
 BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
 {
    switch (reason)
diff --git a/dlls/msvcirt/msvcirt.spec b/dlls/msvcirt/msvcirt.spec
index 0efae20..d3618b2 100644
--- a/dlls/msvcirt/msvcirt.spec
+++ b/dlls/msvcirt/msvcirt.spec
@@ -47,7 +47,7 @@
 @ stub ??0ostream_withassign@@QAE at XZ  # __thiscall ostream_withassign::ostream_withassign(void)
 @ stub ??0ostrstream@@QAE at ABV0@@Z  # __thiscall ostrstream::ostrstream(class ostrstream const &)
 @ stub ??0ostrstream@@QAE at PADHH@Z  # __thiscall ostrstream::ostrstream(char *,int,int)
-@ stub ??0ostrstream@@QAE at XZ  # __thiscall ostrstream::ostrstream(void)
+@ cdecl -i386 -norelay ??0ostrstream@@QAE at XZ(ptr) __thiscall_MSVCIRT_ostrstream_sl_void  # __thiscall ostrstream::ostrstream(void)
 @ stub ??0stdiobuf@@QAE at ABV0@@Z  # __thiscall stdiobuf::stdiobuf(class stdiobuf const &)
 @ stub ??0stdiobuf@@QAE at PAU_iobuf@@@Z  # __thiscall stdiobuf::stdiobuf(struct _iobuf *)
 @ stub ??0stdiostream@@QAE at ABV0@@Z  # __thiscall stdiostream::stdiostream(class stdiostream const &)
@@ -69,7 +69,7 @@
 @ stub ??1filebuf@@UAE at XZ  # virtual __thiscall filebuf::~filebuf(void)
 @ stub ??1fstream@@UAE at XZ  # virtual __thiscall fstream::~fstream(void)
 @ stub ??1ifstream@@UAE at XZ  # virtual __thiscall ifstream::~ifstream(void)
-@ stub ??1ios@@UAE at XZ  # virtual __thiscall ios::~ios(void)
+@ cdecl -i386 -norelay ??1ios@@UAE at XZ(ptr) __thiscall_MSVCIRT_ios_sl_void # virtual __thiscall ios::~ios(void)
 @ stub ??1iostream@@UAE at XZ  # virtual __thiscall iostream::~iostream(void)
 @ stub ??1istream@@UAE at XZ  # virtual __thiscall istream::~istream(void)
 @ stub ??1istream_withassign@@UAE at XZ  # virtual __thiscall istream_withassign::~istream_withassign(void)
@@ -78,7 +78,7 @@
 @ stub ??1ofstream@@UAE at XZ  # virtual __thiscall ofstream::~ofstream(void)
 @ stub ??1ostream@@UAE at XZ  # virtual __thiscall ostream::~ostream(void)
 @ stub ??1ostream_withassign@@UAE at XZ  # virtual __thiscall ostream_withassign::~ostream_withassign(void)
-@ stub ??1ostrstream@@UAE at XZ  # virtual __thiscall ostrstream::~ostrstream(void)
+@ cdecl -i386 -norelay ??1ostrstream@@UAE at XZ(ptr)  __thiscall_MSVCIRT_ostrstream_sl_void # virtual __thiscall ostrstream::~ostrstream(void)
 @ stub ??1stdiobuf@@UAE at XZ  # virtual __thiscall stdiobuf::~stdiobuf(void)
 @ stub ??1stdiostream@@UAE at XZ  # virtual __thiscall stdiostream::~stdiostream(void)
 @ stub ??1streambuf@@UAE at XZ  # virtual __thiscall streambuf::~streambuf(void)
@@ -131,7 +131,7 @@
 @ stub ??5istream@@QAEAAV0 at PAVstreambuf@@@Z  # class istream & __thiscall istream::operator>>(class streambuf *)
 @ stub ??6ostream@@QAEAAV0 at C@Z  # class ostream & __thiscall ostream::operator<<(signed char)
 @ stub ??6ostream@@QAEAAV0 at D@Z  # class ostream & __thiscall ostream::operator<<(char)
-@ stub ??6ostream@@QAEAAV0 at E@Z  # class ostream & __thiscall ostream::operator<<(unsigned char)
+@ cdecl -i386 -norelay ??6ostream@@QAEAAV0 at E@Z(ptr long) __thiscall_MSVCIRT_operator_sl_uchar # class ostream & __thiscall ostream::operator<<(unsigned char)
 @ stub ??6ostream@@QAEAAV0 at F@Z  # class ostream & __thiscall ostream::operator<<(short)
 @ stub ??6ostream@@QAEAAV0 at G@Z  # class ostream & __thiscall ostream::operator<<(unsigned short)
 @ cdecl -i386 -norelay ??6ostream@@QAEAAV0 at H@Z(ptr long) __thiscall_MSVCIRT_operator_sl_int  # class ostream & __thiscall ostream::operator<<(int)
@@ -269,7 +269,7 @@
 @ stub ?ebuf at streambuf@@IBEPADXZ  # char * __thiscall streambuf::ebuf(void)const 
 @ stub ?egptr at streambuf@@IBEPADXZ  # char * __thiscall streambuf::egptr(void)const 
 @ cdecl ?endl@@YAAAVostream@@AAV1@@Z(ptr) MSVCIRT_endl  # class ostream & __cdecl endl(class ostream &)
-@ stub ?ends@@YAAAVostream@@AAV1@@Z  # class ostream & __cdecl ends(class ostream &)
+@ cdecl ?ends@@YAAAVostream@@AAV1@@Z(ptr) MSVCIRT_ends  # class ostream & __cdecl ends(class ostream &)
 @ stub ?eof at ios@@QBEHXZ  # int __thiscall ios::eof(void)const 
 @ stub ?epptr at streambuf@@IBEPADXZ  # char * __thiscall streambuf::epptr(void)const 
 # @ extern ?fLockcInit at ios@@0HA  # static int ios::fLockcInit
@@ -402,7 +402,7 @@
 @ stub ?str at istrstream@@QAEPADXZ  # char * __thiscall istrstream::str(void)
 @ stub ?str at ostrstream@@QAEPADXZ  # char * __thiscall ostrstream::str(void)
 @ stub ?str at strstream@@QAEPADXZ  # char * __thiscall strstream::str(void)
-@ stub ?str at strstreambuf@@QAEPADXZ  # char * __thiscall strstreambuf::str(void)
+@ cdecl -i386 -norelay ?str at strstreambuf@@QAEPADXZ(ptr) __thiscall_MSVCIRT_str_sl_void  # char * __thiscall strstreambuf::str(void)
 # @ extern ?sunk_with_stdio at ios@@0HA  # static int ios::sunk_with_stdio
 @ stub ?sync at filebuf@@UAEHXZ  # virtual int __thiscall filebuf::sync(void)
 @ stub ?sync at istream@@QAEHXZ  # int __thiscall istream::sync(void)




More information about the wine-cvs mailing list