Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
70320103
Commit
70320103
authored
Aug 19, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Added allocator<wchar_t> implementation.
parent
6ae22663
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
22 deletions
+119
-22
memory.c
dlls/msvcp90/memory.c
+97
-0
msvcp90.spec
dlls/msvcp90/msvcp90.spec
+22
-22
No files found.
dlls/msvcp90/memory.c
View file @
70320103
...
...
@@ -116,3 +116,100 @@ size_t __stdcall MSVCP_allocator_char_max_size(void *this)
{
return
UINT_MAX
/
sizeof
(
char
);
}
/* allocator<wchar_t> */
/* ?address@?$allocator@_W@std@@QBEPA_WAA_W@Z */
/* ?address@?$allocator@_W@std@@QEBAPEA_WAEA_W@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_address
,
8
)
wchar_t
*
__stdcall
MSVCP_allocator_wchar_address
(
void
*
this
,
wchar_t
*
ptr
)
{
return
ptr
;
}
/* ?address@?$allocator@_W@std@@QBEPB_WAB_W@Z */
/* ?address@?$allocator@_W@std@@QEBAPEB_WAEB_W@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_const_address
,
8
)
const
wchar_t
*
__stdcall
MSVCP_allocator_wchar_const_address
(
void
*
this
,
const
wchar_t
*
ptr
)
{
return
ptr
;
}
/* ??0?$allocator@_W@std@@QAE@XZ */
/* ??0?$allocator@_W@std@@QEAA@XZ */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_ctor
,
4
)
void
*
__stdcall
MSVCP_allocator_wchar_ctor
(
void
*
this
)
{
return
this
;
}
/* ??0?$allocator@_W@std@@QAE@ABV01@@Z */
/* ??0?$allocator@_W@std@@QEAA@AEBV01@@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_copy_ctor
,
8
)
void
*
__stdcall
MSVCP_allocator_wchar_copy_ctor
(
void
*
this
,
void
*
copy
)
{
return
this
;
}
/* ??4?$allocator@_W@std@@QAEAAV01@ABV01@@Z */
/* ??4?$allocator@_W@std@@QEAAAEAV01@AEBV01@@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_assign
,
8
)
void
*
__stdcall
MSVCP_allocator_wchar_assign
(
void
*
this
,
void
*
assign
)
{
return
this
;
}
/* ?deallocate@?$allocator@_W@std@@QAEXPA_WI@Z */
/* ?deallocate@?$allocator@_W@std@@QEAAXPEA_W_K@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_deallocate
,
12
)
void
__stdcall
MSVCP_allocator_wchar_deallocate
(
void
*
this
,
wchar_t
*
ptr
,
size_t
size
)
{
MSVCRT_operator_delete
(
ptr
);
}
/* ?allocate@?$allocator@_W@std@@QAEPA_WI@Z */
/* ?allocate@?$allocator@_W@std@@QEAAPEA_W_K@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_allocate
,
8
)
wchar_t
*
__stdcall
MSVCP_allocator_wchar_allocate
(
void
*
this
,
size_t
count
)
{
if
(
UINT_MAX
/
count
<
sizeof
(
wchar_t
))
{
throw_exception
(
EXCEPTION_BAD_ALLOC
,
NULL
);
return
NULL
;
}
return
MSVCRT_operator_new
(
sizeof
(
wchar_t
[
count
]));
}
/* ?allocate@?$allocator@_W@std@@QAEPA_WIPBX@Z */
/* ?allocate@?$allocator@_W@std@@QEAAPEA_W_KPEBX@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_allocate_hint
,
12
)
wchar_t
*
__stdcall
MSVCP_allocator_wchar_allocate_hint
(
void
*
this
,
size_t
count
,
const
void
*
hint
)
{
return
MSVCP_allocator_wchar_allocate
(
this
,
count
);
}
/* ?construct@?$allocator@_W@std@@QAEXPA_WAB_W@Z */
/* ?construct@?$allocator@_W@std@@QEAAXPEA_WAEB_W@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_construct
,
12
)
void
__stdcall
MSVCP_allocator_wchar_construct
(
void
*
this
,
wchar_t
*
ptr
,
const
wchar_t
*
val
)
{
*
ptr
=
*
val
;
}
/* ?destroy@?$allocator@_W@std@@QAEXPA_W@Z */
/* ?destroy@?$allocator@_W@std@@QEAAXPEA_W@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_destroy
,
8
)
void
__stdcall
MSVCP_allocator_wchar_destroy
(
void
*
this
,
char
*
ptr
)
{
}
/* ?max_size@?$allocator@_W@std@@QBEIXZ */
/* ?max_size@?$allocator@_W@std@@QEBA_KXZ */
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_wchar_max_size
,
4
)
size_t
__stdcall
MSVCP_allocator_wchar_max_size
(
void
*
this
)
{
return
UINT_MAX
/
sizeof
(
wchar_t
);
}
dlls/msvcp90/msvcp90.spec
View file @
70320103
...
...
@@ -542,10 +542,10 @@
@ stub -arch=win64 ??0?$allocator@X@std@@QEAA@AEBV01@@Z
@ stub -arch=win32 ??0?$allocator@X@std@@QAE@XZ
@ stub -arch=win64 ??0?$allocator@X@std@@QEAA@XZ
@
stub -arch=win32 ??0?$allocator@_W@std@@QAE@ABV01@@Z
@
stub -arch=win64 ??0?$allocator@_W@std@@QEAA@AEBV01@@Z
@
stub -arch=win32 ??0?$allocator@_W@std@@QAE@XZ
@
stub -arch=win64 ??0?$allocator@_W@std@@QEAA@XZ
@
cdecl -arch=win32 -i386 -norelay ??0?$allocator@_W@std@@QAE@ABV01@@Z(ptr) __thiscall_MSVCP_allocator_wchar_copy_ctor
@
cdecl -arch=win64 ??0?$allocator@_W@std@@QEAA@AEBV01@@Z(ptr ptr) MSVCP_allocator_wchar_copy_ctor
@
cdecl -arch=win32 -i386 -norelay ??0?$allocator@_W@std@@QAE@XZ() __thiscall_MSVCP_allocator_wchar_ctor
@
cdecl -arch=win64 ??0?$allocator@_W@std@@QEAA@XZ(ptr) MSVCP_allocator_wchar_ctor
@ stub -arch=win32 ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z
@ stub -arch=win64 ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z
@ stub -arch=win32 ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z
...
...
@@ -1378,8 +1378,8 @@
@ stub -arch=win64 ??4?$allocator@G@std@@QEAAAEAV01@AEBV01@@Z
@ stub -arch=win32 ??4?$allocator@X@std@@QAEAAV01@ABV01@@Z
@ stub -arch=win64 ??4?$allocator@X@std@@QEAAAEAV01@AEBV01@@Z
@
stub -arch=win32 ??4?$allocator@_W@std@@QAEAAV01@ABV01@@Z
@
stub -arch=win64 ??4?$allocator@_W@std@@QEAAAEAV01@AEBV01@@Z
@
cdecl -arch=win32 -i386 -norelay ??4?$allocator@_W@std@@QAEAAV01@ABV01@@Z(ptr) __thiscall_MSVCP_allocator_wchar_assign
@
cdecl -arch=win64 ??4?$allocator@_W@std@@QEAAAEAV01@AEBV01@@Z(ptr ptr) MSVCP_allocator_wchar_assign
@ stub -arch=win32 ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z
@ stub -arch=win64 ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z
@ stub -arch=win32 ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z
...
...
@@ -2898,10 +2898,10 @@
@ stub -arch=win64 ?address@?$allocator@G@std@@QEBAPEAGAEAG@Z
@ stub -arch=win32 ?address@?$allocator@G@std@@QBEPBGABG@Z
@ stub -arch=win64 ?address@?$allocator@G@std@@QEBAPEBGAEBG@Z
@
stub -arch=win32 ?address@?$allocator@_W@std@@QBEPA_WAA_W@Z
@
stub -arch=win64 ?address@?$allocator@_W@std@@QEBAPEA_WAEA_W@Z
@
stub -arch=win32 ?address@?$allocator@_W@std@@QBEPB_WAB_W@Z
@
stub -arch=win64 ?address@?$allocator@_W@std@@QEBAPEB_WAEB_W@Z
@
cdecl -arch=win32 -i386 -norelay ?address@?$allocator@_W@std@@QBEPA_WAA_W@Z(ptr) __thiscall_MSVCP_allocator_wchar_address
@
cdecl -arch=win64 ?address@?$allocator@_W@std@@QEBAPEA_WAEA_W@Z(ptr ptr) MSVCP_allocator_wchar_address
@
cdecl -arch=win32 -i386 -norelay ?address@?$allocator@_W@std@@QBEPB_WAB_W@Z(ptr) __thiscall_MSVCP_allocator_wchar_const_address
@
cdecl -arch=win64 ?address@?$allocator@_W@std@@QEBAPEB_WAEB_W@Z(ptr ptr) MSVCP_allocator_wchar_const_address
@ cdecl -arch=win32 -i386 -norelay ?allocate@?$allocator@D@std@@QAEPADI@Z(long) __thiscall_MSVCP_allocator_char_allocate
@ cdecl -arch=win64 ?allocate@?$allocator@D@std@@QEAAPEAD_K@Z(ptr long) MSVCP_allocator_char_allocate
@ cdecl -arch=win32 -i386 -norelay ?allocate@?$allocator@D@std@@QAEPADIPBX@Z(long ptr) __thiscall_MSVCP_allocator_char_allocate_hint
...
...
@@ -2910,10 +2910,10 @@
@ stub -arch=win64 ?allocate@?$allocator@G@std@@QEAAPEAG_K@Z
@ stub -arch=win32 ?allocate@?$allocator@G@std@@QAEPAGIPBX@Z
@ stub -arch=win64 ?allocate@?$allocator@G@std@@QEAAPEAG_KPEBX@Z
@
stub -arch=win32 ?allocate@?$allocator@_W@std@@QAEPA_WI@Z
@
stub -arch=win64 ?allocate@?$allocator@_W@std@@QEAAPEA_W_K@Z
@
stub -arch=win32 ?allocate@?$allocator@_W@std@@QAEPA_WIPBX@Z
@
stub -arch=win64 ?allocate@?$allocator@_W@std@@QEAAPEA_W_KPEBX@Z
@
cdecl -arch=win32 -i386 -norelay ?allocate@?$allocator@_W@std@@QAEPA_WI@Z(long) __thiscall_MSVCP_allocator_wchar_allocate
@
cdecl -arch=win64 ?allocate@?$allocator@_W@std@@QEAAPEA_W_K@Z(ptr long) MSVCP_allocator_wchar_allocate
@
cdecl -arch=win32 -i386 -norelay ?allocate@?$allocator@_W@std@@QAEPA_WIPBX@Z(long ptr) __thiscall_MSVCP_allocator_wchar_allocate_hint
@
cdecl -arch=win64 ?allocate@?$allocator@_W@std@@QEAAPEA_W_KPEBX@Z(ptr long ptr) MSVCP_allocator_wchar_allocate_hint
@ stub -arch=win32 ?always_noconv@codecvt_base@std@@QBE_NXZ
@ stub -arch=win64 ?always_noconv@codecvt_base@std@@QEBA_NXZ
@ stub -arch=win32 ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z
...
...
@@ -3166,8 +3166,8 @@
@ cdecl -arch=win64 ?construct@?$allocator@D@std@@QEAAXPEADAEBD@Z(ptr ptr ptr) MSVCP_allocator_char_construct
@ stub -arch=win32 ?construct@?$allocator@G@std@@QAEXPAGABG@Z
@ stub -arch=win64 ?construct@?$allocator@G@std@@QEAAXPEAGAEBG@Z
@
stub -arch=win32 ?construct@?$allocator@_W@std@@QAEXPA_WAB_W@Z
@
stub -arch=win64 ?construct@?$allocator@_W@std@@QEAAXPEA_WAEB_W@Z
@
cdecl -arch=win32 -i386 -norelay ?construct@?$allocator@_W@std@@QAEXPA_WAB_W@Z(ptr ptr) __thiscall_MSVCP_allocator_wchar_construct
@
cdecl -arch=win64 ?construct@?$allocator@_W@std@@QEAAXPEA_WAEB_W@Z(ptr ptr ptr) MSVCP_allocator_wchar_construct
@ stub -arch=win32 ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADII@Z
@ stub -arch=win64 ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K1@Z
@ stub -arch=win32 ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGII@Z
...
...
@@ -3214,8 +3214,8 @@
@ cdecl -arch=win64 ?deallocate@?$allocator@D@std@@QEAAXPEAD_K@Z(ptr ptr long) MSVCP_allocator_char_deallocate
@ stub -arch=win32 ?deallocate@?$allocator@G@std@@QAEXPAGI@Z
@ stub -arch=win64 ?deallocate@?$allocator@G@std@@QEAAXPEAG_K@Z
@
stub -arch=win32 ?deallocate@?$allocator@_W@std@@QAEXPA_WI@Z
@
stub -arch=win64 ?deallocate@?$allocator@_W@std@@QEAAXPEA_W_K@Z
@
cdecl -arch=win32 -i386 -norelay ?deallocate@?$allocator@_W@std@@QAEXPA_WI@Z(ptr long) __thiscall_MSVCP_allocator_wchar_deallocate
@
cdecl -arch=win64 ?deallocate@?$allocator@_W@std@@QEAAXPEA_W_K@Z(ptr ptr long) MSVCP_allocator_wchar_deallocate
@ stub -arch=win32 ?decimal_point@?$_Mpunct@D@std@@QBEDXZ
@ stub -arch=win64 ?decimal_point@?$_Mpunct@D@std@@QEBADXZ
@ stub -arch=win32 ?decimal_point@?$_Mpunct@G@std@@QBEGXZ
...
...
@@ -3248,8 +3248,8 @@
@ cdecl -arch=win64 ?destroy@?$allocator@D@std@@QEAAXPEAD@Z(ptr ptr) MSVCP_allocator_char_destroy
@ stub -arch=win32 ?destroy@?$allocator@G@std@@QAEXPAG@Z
@ stub -arch=win64 ?destroy@?$allocator@G@std@@QEAAXPEAG@Z
@
stub -arch=win32 ?destroy@?$allocator@_W@std@@QAEXPA_W@Z
@
stub -arch=win64 ?destroy@?$allocator@_W@std@@QEAAXPEA_W@Z
@
cdecl -arch=win32 -i386 -norelay ?destroy@?$allocator@_W@std@@QAEXPA_W@Z(ptr) __thiscall_MSVCP_allocator_wchar_destroy
@
cdecl -arch=win64 ?destroy@?$allocator@_W@std@@QEAAXPEA_W@Z(ptr ptr) MSVCP_allocator_wchar_destroy
@ stub ?digits10@?$numeric_limits@C@std@@2HB
@ stub ?digits10@?$numeric_limits@D@std@@2HB
@ stub ?digits10@?$numeric_limits@E@std@@2HB
...
...
@@ -4513,8 +4513,8 @@
@ cdecl -arch=win64 ?max_size@?$allocator@D@std@@QEBA_KXZ(ptr) MSVCP_allocator_char_max_size
@ stub -arch=win32 ?max_size@?$allocator@G@std@@QBEIXZ
@ stub -arch=win64 ?max_size@?$allocator@G@std@@QEBA_KXZ
@
stub -arch=win32 ?max_size@?$allocator@_W@std@@QBEIXZ
@
stub -arch=win64 ?max_size@?$allocator@_W@std@@QEBA_KXZ
@
cdecl -arch=win32 -i386 -norelay ?max_size@?$allocator@_W@std@@QBEIXZ() __thiscall_MSVCP_allocator_wchar_max_size
@
cdecl -arch=win64 ?max_size@?$allocator@_W@std@@QEBA_KXZ(ptr) MSVCP_allocator_wchar_max_size
@ stub -arch=win32 ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ
@ stub -arch=win64 ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ
@ stub -arch=win32 ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment