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
ce4cbc7d
Commit
ce4cbc7d
authored
Jul 04, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Implement more basic_ostream<char>::operator<< functions.
parent
5c28a4e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
137 additions
and
14 deletions
+137
-14
ios.c
dlls/msvcp90/ios.c
+125
-2
msvcp90.spec
dlls/msvcp90/msvcp90.spec
+12
-12
No files found.
dlls/msvcp90/ios.c
View file @
ce4cbc7d
...
...
@@ -4924,8 +4924,30 @@ basic_ostream_char* __thiscall basic_ostream_char_print_ldouble(basic_ostream_ch
DEFINE_THISCALL_WRAPPER
(
basic_ostream_char_print_streambuf
,
8
)
basic_ostream_char
*
__thiscall
basic_ostream_char_print_streambuf
(
basic_ostream_char
*
this
,
basic_streambuf_char
*
val
)
{
FIXME
(
"(%p %p) stub
\n
"
,
this
,
val
);
return
NULL
;
basic_ios_char
*
base
=
basic_ostream_char_get_basic_ios
(
this
);
IOSB_iostate
state
=
IOSTATE_badbit
;
int
c
=
'\n'
;
TRACE
(
"(%p %p)
\n
"
,
this
,
val
);
if
(
basic_ostream_char_sentry_create
(
this
))
{
for
(
c
=
basic_streambuf_char_sgetc
(
val
);
c
!=
EOF
;
c
=
basic_streambuf_char_snextc
(
val
))
{
state
=
IOSTATE_goodbit
;
if
(
basic_streambuf_char_sputc
(
base
->
strbuf
,
c
)
==
EOF
)
{
state
=
IOSTATE_badbit
;
break
;
}
}
}
else
{
state
=
IOSTATE_badbit
;
}
basic_ostream_char_sentry_destroy
(
this
);
ios_base_width_set
(
&
base
->
base
,
0
);
basic_ios_char_setstate
(
base
,
state
);
return
this
;
}
/* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
...
...
@@ -5058,12 +5080,113 @@ basic_ostream_char* __cdecl basic_ostream_char_print_bstr(basic_ostream_char *os
state
=
IOSTATE_badbit
;
}
if
(
state
==
IOSTATE_goodbit
)
{
for
(;
pad
!=
0
;
pad
--
)
{
if
(
basic_streambuf_char_sputc
(
base
->
strbuf
,
base
->
fillch
)
==
EOF
)
{
state
=
IOSTATE_badbit
;
break
;
}
}
}
base
->
base
.
wide
=
0
;
}
else
{
state
=
IOSTATE_badbit
;
}
basic_ostream_char_sentry_destroy
(
ostr
);
basic_ios_char_setstate
(
base
,
state
);
return
ostr
;
}
/* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
basic_ostream_char
*
__cdecl
basic_ostream_char_print_ch
(
basic_ostream_char
*
ostr
,
char
ch
)
{
basic_ios_char
*
base
=
basic_ostream_char_get_basic_ios
(
ostr
);
IOSB_iostate
state
=
IOSTATE_goodbit
;
TRACE
(
"(%p %d)
\n
"
,
ostr
,
ch
);
if
(
basic_ostream_char_sentry_create
(
ostr
))
{
streamsize
pad
=
(
base
->
base
.
wide
>
1
?
base
->
base
.
wide
-
1
:
0
);
if
((
base
->
base
.
fmtfl
&
FMTFLAG_adjustfield
)
!=
FMTFLAG_left
)
{
for
(;
pad
!=
0
;
pad
--
)
{
if
(
basic_streambuf_char_sputc
(
base
->
strbuf
,
base
->
fillch
)
==
EOF
)
{
state
=
IOSTATE_badbit
;
break
;
}
}
}
if
(
state
==
IOSTATE_goodbit
)
{
if
(
basic_streambuf_char_sputc
(
base
->
strbuf
,
ch
)
==
EOF
)
state
=
IOSTATE_badbit
;
}
if
(
state
==
IOSTATE_goodbit
)
{
for
(;
pad
!=
0
;
pad
--
)
{
if
(
basic_streambuf_char_sputc
(
base
->
strbuf
,
base
->
fillch
)
==
EOF
)
{
state
=
IOSTATE_badbit
;
break
;
}
}
}
base
->
base
.
wide
=
0
;
}
else
{
state
=
IOSTATE_badbit
;
}
basic_ostream_char_sentry_destroy
(
ostr
);
basic_ios_char_setstate
(
base
,
state
);
return
ostr
;
}
/* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
/* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
basic_ostream_char
*
__cdecl
basic_ostream_char_print_str
(
basic_ostream_char
*
ostr
,
const
char
*
str
)
{
basic_ios_char
*
base
=
basic_ostream_char_get_basic_ios
(
ostr
);
IOSB_iostate
state
=
IOSTATE_goodbit
;
TRACE
(
"(%p %s)
\n
"
,
ostr
,
str
);
if
(
basic_ostream_char_sentry_create
(
ostr
))
{
MSVCP_size_t
len
=
strlen
(
str
);
streamsize
pad
=
(
base
->
base
.
wide
>
len
?
base
->
base
.
wide
-
len
:
0
);
if
((
base
->
base
.
fmtfl
&
FMTFLAG_adjustfield
)
!=
FMTFLAG_left
)
{
for
(;
pad
!=
0
;
pad
--
)
{
if
(
basic_streambuf_char_sputc
(
base
->
strbuf
,
base
->
fillch
)
==
EOF
)
{
state
=
IOSTATE_badbit
;
break
;
}
}
}
if
(
state
==
IOSTATE_goodbit
)
{
if
(
basic_streambuf_char_sputn
(
base
->
strbuf
,
str
,
len
)
!=
len
)
state
=
IOSTATE_badbit
;
}
if
(
state
==
IOSTATE_goodbit
)
{
for
(;
pad
!=
0
;
pad
--
)
{
if
(
basic_streambuf_char_sputc
(
base
->
strbuf
,
base
->
fillch
)
==
EOF
)
{
state
=
IOSTATE_badbit
;
break
;
}
}
}
base
->
base
.
wide
=
0
;
}
else
{
...
...
dlls/msvcp90/msvcp90.spec
View file @
ce4cbc7d
...
...
@@ -68,18 +68,18 @@
@ stub -arch=win64 ??$?6OGU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@AEBV?$complex@O@0@@Z
@ stub -arch=win32 ??$?6O_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@ABV?$complex@O@0@@Z
@ stub -arch=win64 ??$?6O_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@AEBV?$complex@O@0@@Z
@
stub -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z
@
stub -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z
@
stub -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z
@
stub -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z
@
stub -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z
@
stub -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z
@
stub -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z
@
stub -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z
@
stub -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z
@
stub -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z
@
stub -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z
@
stub -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z
@
cdecl -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z(ptr long) basic_ostream_char_print_ch
@
cdecl -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z(ptr long) basic_ostream_char_print_ch
@
cdecl -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z(ptr long) basic_ostream_char_print_ch
@
cdecl -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z(ptr long) basic_ostream_char_print_ch
@
cdecl -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z(ptr long) basic_ostream_char_print_ch
@
cdecl -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z(ptr long) basic_ostream_char_print_ch
@
cdecl -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z(ptr ptr) basic_ostream_char_print_str
@
cdecl -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z(ptr ptr) basic_ostream_char_print_str
@
cdecl -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z(ptr str) basic_ostream_char_print_str
@
cdecl -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z(ptr str) basic_ostream_char_print_str
@
cdecl -arch=win32 ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z(ptr ptr) basic_ostream_char_print_str
@
cdecl -arch=win64 ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z(ptr ptr) basic_ostream_char_print_str
@ stub -arch=win32 ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z
@ stub -arch=win64 ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z
@ stub -arch=win32 ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z
...
...
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