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
d4bb283f
Commit
d4bb283f
authored
Jun 29, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Added basic_ostringstream<wchar> implementation.
parent
2fdc5e28
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
147 additions
and
0 deletions
+147
-0
ios.c
dlls/msvcp90/ios.c
+147
-0
msvcp90.spec
dlls/msvcp90/msvcp90.spec
+0
-0
No files found.
dlls/msvcp90/ios.c
View file @
d4bb283f
...
...
@@ -181,6 +181,14 @@ typedef struct {
}
basic_ostringstream_char
;
typedef
struct
{
basic_ostream_wchar
base
;
basic_stringbuf_wchar
strbuf
;
/* virtual inheritance
* basic_ios_wchar basic_ios;
*/
}
basic_ostringstream_wchar
;
typedef
struct
{
basic_istream_char
base
;
basic_stringbuf_char
strbuf
;
/* virtual inheritance
...
...
@@ -287,6 +295,11 @@ const int basic_ostringstream_char_vbtable[] = {0, sizeof(basic_ostringstream_ch
/* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
extern
const
vtable_ptr
MSVCP_basic_ostringstream_char_vtable
;
/* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
const
int
basic_ostringstream_wchar_vbtable
[]
=
{
0
,
sizeof
(
basic_ostringstream_wchar
)};
/* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
extern
const
vtable_ptr
MSVCP_basic_ostringstream_wchar_vtable
;
/* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
const
int
basic_istringstream_char_vbtable
[]
=
{
0
,
sizeof
(
basic_istringstream_char
)};
/* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
...
...
@@ -363,6 +376,10 @@ DEFINE_RTTI_DATA4(basic_ostringstream_char, sizeof(basic_ostringstream_char),
&
basic_ostream_char_rtti_base_descriptor
,
&
basic_ios_char_rtti_base_descriptor
,
&
ios_base_rtti_base_descriptor
,
&
iosb_rtti_base_descriptor
,
".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@"
);
DEFINE_RTTI_DATA4
(
basic_ostringstream_wchar
,
sizeof
(
basic_ostringstream_wchar
),
&
basic_ostream_wchar_rtti_base_descriptor
,
&
basic_ios_wchar_rtti_base_descriptor
,
&
ios_base_rtti_base_descriptor
,
&
iosb_rtti_base_descriptor
,
".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@"
);
DEFINE_RTTI_DATA4
(
basic_istringstream_char
,
sizeof
(
basic_istringstream_char
),
&
basic_ostream_char_rtti_base_descriptor
,
&
basic_ios_char_rtti_base_descriptor
,
&
ios_base_rtti_base_descriptor
,
&
iosb_rtti_base_descriptor
,
...
...
@@ -490,6 +507,7 @@ void __asm_dummy_vtables(void) {
__ASM_VTABLE
(
basic_ifstream_char
,
""
);
__ASM_VTABLE
(
basic_fstream_char
,
""
);
__ASM_VTABLE
(
basic_ostringstream_char
,
""
);
__ASM_VTABLE
(
basic_ostringstream_wchar
,
""
);
__ASM_VTABLE
(
basic_istringstream_char
,
""
);
__ASM_VTABLE
(
basic_stringstream_char
,
""
);
#ifndef __GNUC__
...
...
@@ -8675,6 +8693,135 @@ basic_string_char* __thiscall basic_ostringstream_char_str_get(const basic_ostri
return
basic_stringbuf_char_str_get
(
&
this
->
strbuf
,
ret
);
}
/* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
/* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_ctor_str
,
16
)
basic_ostringstream_wchar
*
__thiscall
basic_ostringstream_wchar_ctor_str
(
basic_ostringstream_wchar
*
this
,
const
basic_string_wchar
*
str
,
int
mode
,
MSVCP_bool
virt_init
)
{
basic_ios_wchar
*
basic_ios
;
TRACE
(
"(%p %p %d %d)
\n
"
,
this
,
str
,
mode
,
virt_init
);
if
(
virt_init
)
{
this
->
base
.
vbtable
=
basic_ostringstream_wchar_vbtable
;
basic_ios
=
basic_ostream_wchar_get_basic_ios
(
&
this
->
base
);
basic_ios_wchar_ctor
(
basic_ios
);
}
else
{
basic_ios
=
basic_ostream_wchar_get_basic_ios
(
&
this
->
base
);
}
basic_stringbuf_wchar_ctor_str
(
&
this
->
strbuf
,
str
,
mode
|
OPENMODE_out
);
basic_ostream_wchar_ctor
(
&
this
->
base
,
&
this
->
strbuf
.
base
,
FALSE
,
FALSE
);
basic_ios
->
base
.
vtable
=
&
MSVCP_basic_ostringstream_wchar_vtable
;
return
this
;
}
/* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
/* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_ctor_mode
,
12
)
basic_ostringstream_wchar
*
__thiscall
basic_ostringstream_wchar_ctor_mode
(
basic_ostringstream_wchar
*
this
,
int
mode
,
MSVCP_bool
virt_init
)
{
basic_ios_wchar
*
basic_ios
;
TRACE
(
"(%p %d %d)
\n
"
,
this
,
mode
,
virt_init
);
if
(
virt_init
)
{
this
->
base
.
vbtable
=
basic_ostringstream_wchar_vbtable
;
basic_ios
=
basic_ostream_wchar_get_basic_ios
(
&
this
->
base
);
basic_ios_wchar_ctor
(
basic_ios
);
}
else
{
basic_ios
=
basic_ostream_wchar_get_basic_ios
(
&
this
->
base
);
}
basic_stringbuf_wchar_ctor_mode
(
&
this
->
strbuf
,
mode
|
OPENMODE_out
);
basic_ostream_wchar_ctor
(
&
this
->
base
,
&
this
->
strbuf
.
base
,
FALSE
,
FALSE
);
basic_ios
->
base
.
vtable
=
&
MSVCP_basic_ostringstream_wchar_vtable
;
return
this
;
}
/* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
/* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_ctor
,
8
)
basic_ostringstream_wchar
*
__thiscall
basic_ostringstream_wchar_ctor
(
basic_ostringstream_wchar
*
this
,
MSVCP_bool
virt_init
)
{
return
basic_ostringstream_wchar_ctor_mode
(
this
,
0
,
virt_init
);
}
/* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
/* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_dtor
,
4
)
void
__thiscall
basic_ostringstream_wchar_dtor
(
basic_ostringstream_wchar
*
this
)
{
TRACE
(
"(%p)
\n
"
,
this
);
basic_stringbuf_wchar_dtor
(
&
this
->
strbuf
);
basic_ostream_wchar_dtor
(
&
this
->
base
);
}
/* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
/* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_vbase_dtor
,
4
)
void
__thiscall
basic_ostringstream_wchar_vbase_dtor
(
basic_ostringstream_wchar
*
this
)
{
TRACE
(
"(%p)
\n
"
,
this
);
basic_ostringstream_wchar_dtor
(
this
);
basic_ios_wchar_dtor
(
basic_ostream_wchar_get_basic_ios
(
&
this
->
base
));
}
DEFINE_THISCALL_WRAPPER
(
MSVCP_basic_ostringstream_wchar_vector_dtor
,
8
)
basic_ostringstream_wchar
*
__thiscall
MSVCP_basic_ostringstream_wchar_vector_dtor
(
basic_ios_wchar
*
base
,
unsigned
int
flags
)
{
basic_ostringstream_wchar
*
this
=
(
basic_ostringstream_wchar
*
)((
char
*
)
base
-
basic_ostringstream_wchar_vbtable
[
1
]
+
basic_ostringstream_wchar_vbtable
[
0
]);
TRACE
(
"(%p %x)
\n
"
,
this
,
flags
);
if
(
flags
&
2
)
{
/* we have an array, with the number of elements stored before the first object */
int
i
,
*
ptr
=
(
int
*
)
this
-
1
;
for
(
i
=*
ptr
-
1
;
i
>=
0
;
i
--
)
basic_ostringstream_wchar_vbase_dtor
(
this
+
i
);
MSVCRT_operator_delete
(
ptr
);
}
else
{
basic_ostringstream_wchar_vbase_dtor
(
this
);
if
(
flags
&
1
)
MSVCRT_operator_delete
(
this
);
}
return
this
;
}
/* ?rdbuf@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
/* ?rdbuf@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_rdbuf
,
4
)
basic_stringbuf_wchar
*
__thiscall
basic_ostringstream_wchar_rdbuf
(
const
basic_ostringstream_wchar
*
this
)
{
TRACE
(
"(%p)
\n
"
,
this
);
return
(
basic_stringbuf_wchar
*
)
&
this
->
strbuf
;
}
/* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
/* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_str_set
,
8
)
void
__thiscall
basic_ostringstream_wchar_str_set
(
basic_ostringstream_wchar
*
this
,
const
basic_string_wchar
*
str
)
{
TRACE
(
"(%p %p)
\n
"
,
this
,
str
);
basic_stringbuf_wchar_str_set
(
&
this
->
strbuf
,
str
);
}
/* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
/* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
DEFINE_THISCALL_WRAPPER
(
basic_ostringstream_wchar_str_get
,
8
)
basic_string_wchar
*
__thiscall
basic_ostringstream_wchar_str_get
(
const
basic_ostringstream_wchar
*
this
,
basic_string_wchar
*
ret
)
{
TRACE
(
"(%p %p)
\n
"
,
this
,
ret
);
return
basic_stringbuf_wchar_str_get
(
&
this
->
strbuf
,
ret
);
}
/* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
/* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
DEFINE_THISCALL_WRAPPER
(
basic_istringstream_char_ctor_str
,
16
)
...
...
dlls/msvcp90/msvcp90.spec
View file @
d4bb283f
This diff is collapsed.
Click to expand it.
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