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
7b877fbc
Commit
7b877fbc
authored
Jun 20, 2015
by
Iván Matellanes
Committed by
Alexandre Julliard
Jun 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcirt: Add implementation of streambuf::sgetn/sputn.
parent
f71186b6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
+30
-12
msvcirt.c
dlls/msvcirt/msvcirt.c
+18
-0
msvcirt.spec
dlls/msvcirt/msvcirt.spec
+4
-4
msvcrt20.spec
dlls/msvcrt20/msvcrt20.spec
+4
-4
msvcrt40.spec
dlls/msvcrt40/msvcrt40.spec
+4
-4
No files found.
dlls/msvcirt/msvcirt.c
View file @
7b877fbc
...
...
@@ -502,6 +502,7 @@ void __thiscall streambuf_unlock(streambuf *this)
/* ?xsgetn@streambuf@@UAEHPADH@Z */
/* ?xsgetn@streambuf@@UEAAHPEADH@Z */
DEFINE_THISCALL_WRAPPER
(
streambuf_xsgetn
,
12
)
#define call_streambuf_xsgetn(this, buffer, count) CALL_VTBL_FUNC(this, 24, int, (streambuf*, char*, int), (this, buffer, count))
int
__thiscall
streambuf_xsgetn
(
streambuf
*
this
,
char
*
buffer
,
int
count
)
{
int
copied
=
0
,
chunk
;
...
...
@@ -533,6 +534,7 @@ int __thiscall streambuf_xsgetn(streambuf *this, char *buffer, int count)
/* ?xsputn@streambuf@@UAEHPBDH@Z */
/* ?xsputn@streambuf@@UEAAHPEBDH@Z */
DEFINE_THISCALL_WRAPPER
(
streambuf_xsputn
,
12
)
#define call_streambuf_xsputn(this, data, length) CALL_VTBL_FUNC(this, 20, int, (streambuf*, const char*, int), (this, data, length))
int
__thiscall
streambuf_xsputn
(
streambuf
*
this
,
const
char
*
data
,
int
length
)
{
int
copied
=
0
,
chunk
;
...
...
@@ -579,6 +581,22 @@ int __thiscall streambuf_sputc(streambuf *this, int ch)
return
(
this
->
pptr
<
this
->
epptr
)
?
*
this
->
pptr
++
=
ch
:
call_streambuf_overflow
(
this
,
ch
);
}
/* ?sgetn@streambuf@@QAEHPADH@Z */
/* ?sgetn@streambuf@@QEAAHPEADH@Z */
DEFINE_THISCALL_WRAPPER
(
streambuf_sgetn
,
12
)
int
__thiscall
streambuf_sgetn
(
streambuf
*
this
,
char
*
buffer
,
int
count
)
{
return
call_streambuf_xsgetn
(
this
,
buffer
,
count
);
}
/* ?sputn@streambuf@@QAEHPBDH@Z */
/* ?sputn@streambuf@@QEAAHPEBDH@Z */
DEFINE_THISCALL_WRAPPER
(
streambuf_sputn
,
12
)
int
__thiscall
streambuf_sputn
(
streambuf
*
this
,
const
char
*
data
,
int
length
)
{
return
call_streambuf_xsputn
(
this
,
data
,
length
);
}
/******************************************************************
* ??1ios@@UAE@XZ (MSVCRTI.@)
* class ios & __thiscall ios::-ios<<(void)
...
...
dlls/msvcirt/msvcirt.spec
View file @
7b877fbc
...
...
@@ -695,8 +695,8 @@
@ stub -arch=win64 ?setrwbuf@stdiobuf@@QEAAHHH@Z
@ thiscall -arch=win32 ?sgetc@streambuf@@QAEHXZ(ptr) streambuf_sgetc
@ cdecl -arch=win64 ?sgetc@streambuf@@QEAAHXZ(ptr) streambuf_sgetc
@
stub -arch=win32 ?sgetn@streambuf@@QAEHPADH@Z # int __thiscall streambuf::sgetn(char *,int)
@
stub -arch=win64 ?sgetn@streambuf@@QEAAHPEADH@Z
@
thiscall -arch=win32 ?sgetn@streambuf@@QAEHPADH@Z(ptr ptr long) streambuf_sgetn
@
cdecl -arch=win64 ?sgetn@streambuf@@QEAAHPEADH@Z(ptr ptr long) streambuf_sgetn
# @ extern ?sh_none@filebuf@@2HB # static int const filebuf::sh_none
# @ extern ?sh_read@filebuf@@2HB # static int const filebuf::sh_read
# @ extern ?sh_write@filebuf@@2HB # static int const filebuf::sh_write
...
...
@@ -706,8 +706,8 @@
@ stub -arch=win64 ?sputbackc@streambuf@@QEAAHD@Z
@ thiscall -arch=win32 ?sputc@streambuf@@QAEHH@Z(ptr long) streambuf_sputc
@ cdecl -arch=win64 ?sputc@streambuf@@QEAAHH@Z(ptr long) streambuf_sputc
@
stub -arch=win32 ?sputn@streambuf@@QAEHPBDH@Z # int __thiscall streambuf::sputn(char const *,int)
@
stub -arch=win64 ?sputn@streambuf@@QEAAHPEBDH@Z
@
thiscall -arch=win32 ?sputn@streambuf@@QAEHPBDH@Z(ptr str long) streambuf_sputn
@
cdecl -arch=win64 ?sputn@streambuf@@QEAAHPEBDH@Z(ptr str long) streambuf_sputn
@ stub -arch=win32 ?stdiofile@stdiobuf@@QAEPAU_iobuf@@XZ # struct _iobuf * __thiscall stdiobuf::stdiofile(void)
@ stub -arch=win64 ?stdiofile@stdiobuf@@QEAAPEAU_iobuf@@XZ
@ stub -arch=win32 ?stossc@streambuf@@QAEXXZ # void __thiscall streambuf::stossc(void)
...
...
dlls/msvcrt20/msvcrt20.spec
View file @
7b877fbc
...
...
@@ -683,8 +683,8 @@
@ stub -arch=win64 ?setrwbuf@stdiobuf@@QEAAHHH@Z
@ thiscall -arch=win32 ?sgetc@streambuf@@QAEHXZ(ptr) msvcirt.?sgetc@streambuf@@QAEHXZ
@ cdecl -arch=win64 ?sgetc@streambuf@@QEAAHXZ(ptr) msvcirt.?sgetc@streambuf@@QEAAHXZ
@
stub -arch=win32
?sgetn@streambuf@@QAEHPADH@Z
@
stub -arch=win64
?sgetn@streambuf@@QEAAHPEADH@Z
@
thiscall -arch=win32 ?sgetn@streambuf@@QAEHPADH@Z(ptr ptr long) msvcirt.
?sgetn@streambuf@@QAEHPADH@Z
@
cdecl -arch=win64 ?sgetn@streambuf@@QEAAHPEADH@Z(ptr ptr long) msvcirt.
?sgetn@streambuf@@QEAAHPEADH@Z
# @ extern ?sh_none@filebuf@@2HB
# @ extern ?sh_read@filebuf@@2HB
# @ extern ?sh_write@filebuf@@2HB
...
...
@@ -694,8 +694,8 @@
@ stub -arch=win64 ?sputbackc@streambuf@@QEAAHD@Z
@ thiscall -arch=win32 ?sputc@streambuf@@QAEHH@Z(ptr long) msvcirt.?sputc@streambuf@@QAEHH@Z
@ cdecl -arch=win64 ?sputc@streambuf@@QEAAHH@Z(ptr long) msvcirt.?sputc@streambuf@@QEAAHH@Z
@
stub -arch=win32
?sputn@streambuf@@QAEHPBDH@Z
@
stub -arch=win64
?sputn@streambuf@@QEAAHPEBDH@Z
@
thiscall -arch=win32 ?sputn@streambuf@@QAEHPBDH@Z(ptr str long) msvcirt.
?sputn@streambuf@@QAEHPBDH@Z
@
cdecl -arch=win64 ?sputn@streambuf@@QEAAHPEBDH@Z(ptr str long) msvcirt.
?sputn@streambuf@@QEAAHPEBDH@Z
@ stub -arch=win32 ?stdiofile@stdiobuf@@QAEPAU_iobuf@@XZ
@ stub -arch=win64 ?stdiofile@stdiobuf@@QEAAPEAU_iobuf@@XZ
@ stub -arch=win32 ?stossc@streambuf@@QAEXXZ
...
...
dlls/msvcrt40/msvcrt40.spec
View file @
7b877fbc
...
...
@@ -755,8 +755,8 @@
@ stub -arch=win64 ?setrwbuf@stdiobuf@@QEAAHHH@Z
@ thiscall -arch=win32 ?sgetc@streambuf@@QAEHXZ(ptr) msvcirt.?sgetc@streambuf@@QAEHXZ
@ cdecl -arch=win64 ?sgetc@streambuf@@QEAAHXZ(ptr) msvcirt.?sgetc@streambuf@@QEAAHXZ
@
stub -arch=win32
?sgetn@streambuf@@QAEHPADH@Z
@
stub -arch=win64
?sgetn@streambuf@@QEAAHPEADH@Z
@
thiscall -arch=win32 ?sgetn@streambuf@@QAEHPADH@Z(ptr ptr long) msvcirt.
?sgetn@streambuf@@QAEHPADH@Z
@
cdecl -arch=win64 ?sgetn@streambuf@@QEAAHPEADH@Z(ptr ptr long) msvcirt.
?sgetn@streambuf@@QEAAHPEADH@Z
# @ extern ?sh_none@filebuf@@2HB
# @ extern ?sh_read@filebuf@@2HB
# @ extern ?sh_write@filebuf@@2HB
...
...
@@ -766,8 +766,8 @@
@ stub -arch=win64 ?sputbackc@streambuf@@QEAAHD@Z
@ thiscall -arch=win32 ?sputc@streambuf@@QAEHH@Z(ptr long) msvcirt.?sputc@streambuf@@QAEHH@Z
@ cdecl -arch=win64 ?sputc@streambuf@@QEAAHH@Z(ptr long) msvcirt.?sputc@streambuf@@QEAAHH@Z
@
stub -arch=win32
?sputn@streambuf@@QAEHPBDH@Z
@
stub -arch=win64
?sputn@streambuf@@QEAAHPEBDH@Z
@
thiscall -arch=win32 ?sputn@streambuf@@QAEHPBDH@Z(ptr str long) msvcirt.
?sputn@streambuf@@QAEHPBDH@Z
@
cdecl -arch=win64 ?sputn@streambuf@@QEAAHPEBDH@Z(ptr str long) msvcirt.
?sputn@streambuf@@QEAAHPEBDH@Z
@ stub -arch=win32 ?stdiofile@stdiobuf@@QAEPAU_iobuf@@XZ
@ stub -arch=win64 ?stdiofile@stdiobuf@@QEAAPEAU_iobuf@@XZ
@ stub -arch=win32 ?stossc@streambuf@@QAEXXZ
...
...
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