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
20 #include "wine/port.h"
26 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(msvcirt
);
42 #ifdef __i386__ /* thiscall functions are i386-specific */
44 #define THISCALL(func) __thiscall_ ## func
45 #define THISCALL_NAME(func) __ASM_NAME("__thiscall_" #func)
46 #define __thiscall __stdcall
47 #define DEFINE_THISCALL_WRAPPER(func,args) \
48 extern void THISCALL(func)(void); \
49 __ASM_GLOBAL_FUNC(__thiscall_ ## func, \
53 "jmp " __ASM_NAME(#func) __ASM_STDCALL(args) )
56 #define THISCALL(func) func
57 #define THISCALL_NAME(func) __ASM_NAME(#func)
58 #define __thiscall __cdecl
59 #define DEFINE_THISCALL_WRAPPER(func,args) /* nothing */
63 /******************************************************************
64 * ??1ios@@UAE@XZ (MSVCRTI.@)
65 * class ios & __thiscall ios::-ios<<(void)
67 DEFINE_THISCALL_WRAPPER(MSVCIRT_ios_sl_void
,4)
68 void * __thiscall
MSVCIRT_ios_sl_void(class_ios
* _this
)
70 FIXME("(%p) stub\n", _this
);
74 /******************************************************************
75 * ??0ostrstream@@QAE@XZ (MSVCRTI.@)
76 * class ostream & __thiscall ostrstream::ostrstream<<(void)
78 DEFINE_THISCALL_WRAPPER(MSVCIRT_ostrstream_sl_void
,4)
79 void * __thiscall
MSVCIRT_ostrstream_sl_void(class_ostream
* _this
)
81 FIXME("(%p) stub\n", _this
);
85 /******************************************************************
86 * ??6ostream@@QAEAAV0@E@Z (MSVCRTI.@)
87 * class ostream & __thiscall ostream::operator<<(unsigned char)
89 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_uchar
,8)
90 void * __thiscall
MSVCIRT_operator_sl_uchar(class_ostream
* _this
, unsigned char ch
)
92 FIXME("(%p)->(%c) stub\n", _this
, ch
);
96 /******************************************************************
97 * ??6ostream@@QAEAAV0@H@Z (MSVCRTI.@)
98 * class ostream & __thiscall ostream::operator<<(int)
100 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_int
,8)
101 void * __thiscall
MSVCIRT_operator_sl_int(class_ostream
* _this
, int integer
)
103 FIXME("(%p)->(%d) stub\n", _this
, integer
);
107 /******************************************************************
108 * ??6ostream@@QAEAAV0@PBD@Z (MSVCRTI.@)
109 * class ostream & __thiscall ostream::operator<<(char const *)
111 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_pchar
,8)
112 void * __thiscall
MSVCIRT_operator_sl_pchar(class_ostream
* _this
, const char * string
)
114 FIXME("(%p)->(%s) stub\n", _this
, debugstr_a(string
));
118 /******************************************************************
119 * ??6ostream@@QAEAAV0@P6AAAV0@AAV0@@Z@Z (MSVCRTI.@)
120 * class ostream & __thiscall ostream::operator<<(class ostream & (__cdecl*)(class ostream &))
122 DEFINE_THISCALL_WRAPPER(MSVCIRT_operator_sl_callback
,8)
123 void * __thiscall
MSVCIRT_operator_sl_callback(class_ostream
* _this
, class_ostream
* (__cdecl
*func
)(class_ostream
*))
125 TRACE("%p, %p\n", _this
, func
);
129 /******************************************************************
130 * ?endl@@YAAAVostream@@AAV1@@Z (MSVCRTI.@)
131 * class ostream & __cdecl endl(class ostream &)
133 void * CDECL
MSVCIRT_endl(class_ostream
* _this
)
135 FIXME("(%p)->() stub\n", _this
);
139 /******************************************************************
140 * ?ends@@YAAAVostream@@AAV1@@Z (MSVCRTI.@)
141 * class ostream & __cdecl ends(class ostream &)
143 void * CDECL
MSVCIRT_ends(class_ostream
* _this
)
145 FIXME("(%p)->() stub\n", _this
);
149 /******************************************************************
150 * ?str@strstreambuf@@QAEPADXZ (MSVCRTI.@)
151 * class strstreambuf & __thiscall strstreambuf::str(class strstreambuf &)
153 DEFINE_THISCALL_WRAPPER(MSVCIRT_str_sl_void
,4)
154 char * __thiscall
MSVCIRT_str_sl_void(class_strstreambuf
* _this
)
156 FIXME("(%p)->() stub\n", _this
);
160 BOOL WINAPI
DllMain( HINSTANCE inst
, DWORD reason
, LPVOID reserved
)
164 case DLL_WINE_PREATTACH
:
165 return FALSE
; /* prefer native version */
166 case DLL_PROCESS_ATTACH
:
167 DisableThreadLibraryCalls( inst
);