Jerome Leclanche : msvcirt: Implement MSVCIRT_operator_sl_callback.
Module: wine Branch: master Commit: 370873f97441b604aa450efd9dce511cfb20516f URL: http://source.winehq.org/git/wine.git/?a=commit;h=370873f97441b604aa450efd9d... Author: Jerome Leclanche <adys.wh(a)gmail.com> Date: Sun Oct 25 23:15:28 2009 +0200 msvcirt: Implement MSVCIRT_operator_sl_callback. --- dlls/msvcirt/msvcirt.c | 11 +++++++++++ dlls/msvcirt/msvcirt.spec | 2 +- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c index 569452c..a498662 100644 --- a/dlls/msvcirt/msvcirt.c +++ b/dlls/msvcirt/msvcirt.c @@ -73,6 +73,17 @@ void * __stdcall MSVCIRT_operator_sl_pchar(class_ostream * _this, const char * s } /****************************************************************** + * ??6ostream@@QAEAAV0(a)P6AAAV0@AAV0@@Z(a)Z (MSVCRTI.@) + * class ostream & __thiscall ostream::operator<<(class ostream & (__cdecl*)(class ostream &)) + */ +DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_callback,8) +void * __stdcall MSVCIRT_operator_sl_callback(class_ostream * _this, class_ostream * (__cdecl*func)(class_ostream*)) +{ + TRACE("%p, %p\n", _this, func); + return func(_this); +} + +/****************************************************************** * ?endl@@YAAAVostream@@AAV1@@Z (MSVCRTI.@) * class ostream & __cdecl endl(class ostream &) */ diff --git a/dlls/msvcirt/msvcirt.spec b/dlls/msvcirt/msvcirt.spec index a91cec7..0efae20 100644 --- a/dlls/msvcirt/msvcirt.spec +++ b/dlls/msvcirt/msvcirt.spec @@ -141,7 +141,7 @@ @ stub ??6ostream@@QAEAAV0(a)M@Z # class ostream & __thiscall ostream::operator<<(float) @ stub ??6ostream@@QAEAAV0(a)N@Z # class ostream & __thiscall ostream::operator<<(double) @ stub ??6ostream@@QAEAAV0(a)O@Z # class ostream & __thiscall ostream::operator<<(long double) -@ stub ??6ostream@@QAEAAV0(a)P6AAAV0@AAV0@@Z(a)Z # class ostream & __thiscall ostream::operator<<(class ostream & (__cdecl*)(class ostream &)) +@ cdecl -i386 -norelay ??6ostream@@QAEAAV0(a)P6AAAV0@AAV0@@Z(a)Z(ptr ptr) __thiscall_MSVCIRT_operator_sl_callback # class ostream & __thiscall ostream::operator<<(class ostream & (__cdecl*)(class ostream &)) @ stub ??6ostream@@QAEAAV0(a)P6AAAVios@@AAV1@@Z(a)Z # class ostream & __thiscall ostream::operator<<(class ios & (__cdecl*)(class ios &)) @ stub ??6ostream@@QAEAAV0(a)PAVstreambuf@@@Z # class ostream & __thiscall ostream::operator<<(class streambuf *) @ stub ??6ostream@@QAEAAV0(a)PBC@Z # class ostream & __thiscall ostream::operator<<(signed char const *)
participants (1)
-
Alexandre Julliard