2 * Copyright 2010 Piotr Caban for CodeWeavers
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
28 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(msvcp90);
31 /* ?address@?$allocator@D@std@@QBEPADAAD@Z */
32 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_address, 8)
33 char* __stdcall MSVCP_allocator_char_address(void *this, char *ptr)
38 /* ?address@?$allocator@D@std@@QBEPBDABD@Z */
39 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_const_address, 8)
40 const char* __stdcall MSVCP_allocator_char_const_address(void *this, const char *ptr)
45 /* ??0?$allocator@D@std@@QAE@XZ */
46 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_ctor, 4)
47 void* __stdcall MSVCP_allocator_char_ctor(void *this)
52 /* ??0?$allocator@D@std@@QAE@ABV01@@Z */
53 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_copy_ctor, 8)
54 void* __stdcall MSVCP_allocator_char_copy_ctor(void *this, void *copy)
59 /* ??4?$allocator@D@std@@QAEAAV01@ABV01@@Z */
60 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_assign, 8);
61 void* __stdcall MSVCP_allocator_char_assign(void *this, void *assign)
66 /* ?deallocate@?$allocator@D@std@@QAEXPADI@Z */
67 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_deallocate, 12);
68 void __stdcall MSVCP_allocator_char_deallocate(void *this, char *ptr, unsigned int size)
70 MSVCRT_operator_delete(ptr);
73 /* ?allocate@?$allocator@D@std@@QAEPADI@Z */
74 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_allocate, 8);
75 char* __stdcall MSVCP_allocator_char_allocate(void *this, unsigned int count)
77 return MSVCRT_operator_new(sizeof(char[count]));
80 /* ?allocate@?$allocator@D@std@@QAEPADIPBX@Z */
81 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_allocate_hint, 12);
82 char* __stdcall MSVCP_allocator_char_allocate_hint(void *this,
83 unsigned int count, const void *hint)
85 /* Native ignores hint */
86 return MSVCP_allocator_char_allocate(this, count);
89 /* ?construct@?$allocator@D@std@@QAEXPADABD@Z */
90 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_construct, 12);
91 void __stdcall MSVCP_allocator_char_construct(void *this, char *ptr, const char *val)
96 /* ?destroy@?$allocator@D@std@@QAEXPAD@Z */
97 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_destroy, 8);
98 void __stdcall MSVCP_allocator_char_destroy(void *this, char *ptr)
102 /* ?max_size@?$allocator@D@std@@QBEIXZ */
103 DEFINE_THISCALL_WRAPPER(MSVCP_allocator_char_max_size, 4);
104 unsigned int __stdcall MSVCP_allocator_char_max_size(void *this)
106 return UINT_MAX/sizeof(char);