2 * Copyright (C) 2007 Alexandre Julliard
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(msvcirt
);
41 #ifdef __i386__ /* thiscall functions are i386-specific */
43 #define THISCALL(func) __thiscall_ ## func
44 #define THISCALL_NAME(func) __ASM_NAME("__thiscall_" #func)
45 #define __thiscall __stdcall
46 #define DEFINE_THISCALL_WRAPPER(func,args) \
47 extern void THISCALL(func)(void); \
48 __ASM_GLOBAL_FUNC(__thiscall_ ## func, \
52 "jmp " __ASM_NAME(#func) __ASM_STDCALL(args) )
55 #define THISCALL(func) func
56 #define THISCALL_NAME(func) __ASM_NAME(#func)
57 #define __thiscall __cdecl
58 #define DEFINE_THISCALL_WRAPPER(func,args) /* nothing */
62 /******************************************************************
63 * ??1ios@@UAE@XZ (MSVCRTI.@)
64 * class ios & __thiscall ios::-ios<<(void)
66 DEFINE_THISCALL_WRAPPER(MSVCIRT_ios_sl_void
,4)
67 void * __thiscall
MSVCIRT_ios_sl_void(class_ios
* _this
)
69 FIXME("(%p) stub\n", _this
);
73 /******************************************************************
74 * ??0ostrstream@@QAE@XZ (MSVCRTI.@)
75 * class ostream & __thiscall ostrstream::ostrstream<<(void)
77 DEFINE_THISCALL_WRAPPER(MSVCIRT_ostrstream_sl_void
,4)
78 void * __thiscall
MSVCIRT_ostrstream_sl_void(class_ostream
* _this
)
80 FIXME("(%p) stub\n", _this
);
84 /******************************************************************
85 * ??6ostream@@QAEAAV0@E@Z (MSVCRTI.@)
86 * class ostream & __thiscall ostream::operator<<(unsigned char)
88 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_uchar
,8)
89 void * __thiscall
MSVCIRT_operator_sl_uchar(class_ostream
* _this
, unsigned char ch
)
91 FIXME("(%p)->(%c) stub\n", _this
, ch
);
95 /******************************************************************
96 * ??6ostream@@QAEAAV0@H@Z (MSVCRTI.@)
97 * class ostream & __thiscall ostream::operator<<(int)
99 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_int
,8)
100 void * __thiscall
MSVCIRT_operator_sl_int(class_ostream
* _this
, int integer
)
102 FIXME("(%p)->(%d) stub\n", _this
, integer
);
106 /******************************************************************
107 * ??6ostream@@QAEAAV0@PBD@Z (MSVCRTI.@)
108 * class ostream & __thiscall ostream::operator<<(char const *)
110 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_pchar
,8)
111 void * __thiscall
MSVCIRT_operator_sl_pchar(class_ostream
* _this
, const char * string
)
113 FIXME("(%p)->(%s) stub\n", _this
, debugstr_a(string
));
117 /******************************************************************
118 * ??6ostream@@QAEAAV0@P6AAAV0@AAV0@@Z@Z (MSVCRTI.@)
119 * class ostream & __thiscall ostream::operator<<(class ostream & (__cdecl*)(class ostream &))
121 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_callback
,8)
122 void * __thiscall
MSVCIRT_operator_sl_callback(class_ostream
* _this
, class_ostream
* (__cdecl
*func
)(class_ostream
*))
124 TRACE("%p, %p\n", _this
, func
);
128 /******************************************************************
129 * ?endl@@YAAAVostream@@AAV1@@Z (MSVCRTI.@)
130 * class ostream & __cdecl endl(class ostream &)
132 void * CDECL
MSVCIRT_endl(class_ostream
* _this
)
134 FIXME("(%p)->() stub\n", _this
);
138 /******************************************************************
139 * ?ends@@YAAAVostream@@AAV1@@Z (MSVCRTI.@)
140 * class ostream & __cdecl ends(class ostream &)
142 void * CDECL
MSVCIRT_ends(class_ostream
* _this
)
144 FIXME("(%p)->() stub\n", _this
);
148 /******************************************************************
149 * ?str@strstreambuf@@QAEPADXZ (MSVCRTI.@)
150 * class strstreambuf & __thiscall strstreambuf::str(class strstreambuf &)
152 DEFINE_THISCALL_WRAPPER(MSVCIRT_str_sl_void
,4)
153 char * __thiscall
MSVCIRT_str_sl_void(class_strstreambuf
* _this
)
155 FIXME("(%p)->() stub\n", _this
);
159 BOOL WINAPI
DllMain( HINSTANCE inst
, DWORD reason
, LPVOID reserved
)
163 case DLL_WINE_PREATTACH
:
164 return FALSE
; /* prefer native version */
165 case DLL_PROCESS_ATTACH
:
166 DisableThreadLibraryCalls( inst
);