Commit 8c865c8c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp100: Add ios_base::swap implementation.

parent 3e993bf1
......@@ -2716,8 +2716,8 @@
@ stub -arch=win64 ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z
@ stub -arch=win32 ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z
@ stub -arch=win64 ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z
@ stub -arch=win32 ?swap@ios_base@std@@QAEXAAV12@@Z
@ stub -arch=win64 ?swap@ios_base@std@@QEAAXAEAV12@@Z
@ thiscall -arch=win32 ?swap@ios_base@std@@QAEXAAV12@@Z(ptr ptr) ios_base_swap
@ cdecl -arch=win64 ?swap@ios_base@std@@QEAAXAEAV12@@Z(ptr ptr) ios_base_swap
@ thiscall -arch=win32 ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ(ptr) basic_istream_char_sync
@ cdecl -arch=win64 ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ(ptr) basic_istream_char_sync
@ thiscall -arch=win32 ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ(ptr) basic_istream_wchar_sync
......
......@@ -3506,9 +3506,9 @@
@ stub -arch=arm ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAAXAAV12@@Z
@ stub -arch=i386 ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z
@ stub -arch=win64 ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z
@ stub -arch=arm ?swap@ios_base@std@@QAAXAAV12@@Z
@ stub -arch=i386 ?swap@ios_base@std@@QAEXAAV12@@Z
@ stub -arch=win64 ?swap@ios_base@std@@QEAAXAEAV12@@Z
@ cdecl -arch=arm ?swap@ios_base@std@@QAAXAAV12@@Z(ptr ptr) ios_base_swap
@ thiscall -arch=i386 ?swap@ios_base@std@@QAEXAAV12@@Z(ptr ptr) ios_base_swap
@ cdecl -arch=win64 ?swap@ios_base@std@@QEAAXAEAV12@@Z(ptr ptr) ios_base_swap
@ cdecl -arch=arm ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAAHXZ(ptr) basic_istream_char_sync
@ thiscall -arch=i386 ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ(ptr) basic_istream_char_sync
@ cdecl -arch=win64 ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ(ptr) basic_istream_char_sync
......
......@@ -5264,6 +5264,25 @@ int CDECL ios_base_xalloc(void)
return ret;
}
/* ?swap@ios_base@std@@QAEXAAV12@@Z */
/* ?swap@ios_base@std@@QEAAXAEAV12@@Z */
DEFINE_THISCALL_WRAPPER(ios_base_swap, 8)
void __thiscall ios_base_swap(ios_base *this, ios_base *r)
{
ios_base tmp;
TRACE("(%p %p)\n", this, r);
if(this == r)
return;
tmp = *this;
*this = *r;
this->vtable = tmp.vtable;
tmp.vtable = r->vtable;
*r = tmp;
}
/* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
/* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor, 4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment