Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
156684ba
Commit
156684ba
authored
Oct 28, 2014
by
Iván Matellanes
Committed by
Alexandre Julliard
Oct 31, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _fgetwc_nolock implementation.
parent
878b4a92
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
9 deletions
+22
-9
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
file.c
dlls/msvcrt/file.c
+16
-5
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
stdio.h
include/msvcrt/stdio.h
+1
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
156684ba
...
...
@@ -802,7 +802,7 @@
@ cdecl _fflush_nolock(ptr) MSVCRT__fflush_nolock
@ cdecl _fgetc_nolock(ptr) MSVCRT__fgetc_nolock
@ cdecl _fgetchar() MSVCRT__fgetchar
@
stub
_fgetwc_nolock
@
cdecl _fgetwc_nolock(ptr) MSVCRT_
_fgetwc_nolock
@ cdecl _fgetwchar() MSVCRT__fgetwchar
@ cdecl _filbuf(ptr) MSVCRT__filbuf
@ cdecl _filelength(long) MSVCRT__filelength
...
...
dlls/msvcr110/msvcr110.spec
View file @
156684ba
...
...
@@ -1150,7 +1150,7 @@
@ cdecl _fflush_nolock(ptr) MSVCRT__fflush_nolock
@ cdecl _fgetc_nolock(ptr) MSVCRT__fgetc_nolock
@ cdecl _fgetchar() MSVCRT__fgetchar
@
stub
_fgetwc_nolock
@
cdecl _fgetwc_nolock(ptr) MSVCRT_
_fgetwc_nolock
@ cdecl _fgetwchar() MSVCRT__fgetwchar
@ cdecl _filbuf(ptr) MSVCRT__filbuf
@ cdecl _filelength(long) MSVCRT__filelength
...
...
dlls/msvcr80/msvcr80.spec
View file @
156684ba
...
...
@@ -469,7 +469,7 @@
@ cdecl _fflush_nolock(ptr) MSVCRT__fflush_nolock
@ cdecl _fgetc_nolock(ptr) MSVCRT__fgetc_nolock
@ cdecl _fgetchar() MSVCRT__fgetchar
@
stub
_fgetwc_nolock
@
cdecl _fgetwc_nolock(ptr) MSVCRT_
_fgetwc_nolock
@ cdecl _fgetwchar() MSVCRT__fgetwchar
@ cdecl _filbuf(ptr) MSVCRT__filbuf
@ cdecl _filelength(long) MSVCRT__filelength
...
...
dlls/msvcr90/msvcr90.spec
View file @
156684ba
...
...
@@ -451,7 +451,7 @@
@ cdecl _fflush_nolock(ptr) MSVCRT__fflush_nolock
@ cdecl _fgetc_nolock(ptr) MSVCRT__fgetc_nolock
@ cdecl _fgetchar() MSVCRT__fgetchar
@
stub
_fgetwc_nolock
@
cdecl _fgetwc_nolock(ptr) MSVCRT_
_fgetwc_nolock
@ cdecl _fgetwchar() MSVCRT__fgetwchar
@ cdecl _filbuf(ptr) MSVCRT__filbuf
@ cdecl _filelength(long) MSVCRT__filelength
...
...
dlls/msvcrt/file.c
View file @
156684ba
...
...
@@ -3576,16 +3576,28 @@ char * CDECL MSVCRT_fgets(char *s, int size, MSVCRT_FILE* file)
MSVCRT_wint_t
CDECL
MSVCRT_fgetwc
(
MSVCRT_FILE
*
file
)
{
MSVCRT_wint_t
ret
;
int
ch
;
MSVCRT__lock_file
(
file
);
ret
=
MSVCRT__fgetwc_nolock
(
file
);
MSVCRT__unlock_file
(
file
);
return
ret
;
}
/*********************************************************************
* _fgetwc_nolock (MSVCRT.@)
*/
MSVCRT_wint_t
CDECL
MSVCRT__fgetwc_nolock
(
MSVCRT_FILE
*
file
)
{
MSVCRT_wint_t
ret
;
int
ch
;
if
((
msvcrt_get_ioinfo
(
file
->
_file
)
->
exflag
&
(
EF_UTF8
|
EF_UTF16
))
||
!
(
msvcrt_get_ioinfo
(
file
->
_file
)
->
wxflag
&
WX_TEXT
))
{
char
*
p
;
for
(
p
=
(
char
*
)
&
ret
;
(
MSVCRT_wint_t
*
)
p
<&
ret
+
1
;
p
++
)
{
ch
=
MSVCRT_
fgetc
(
file
);
ch
=
MSVCRT_
_fgetc_nolock
(
file
);
if
(
ch
==
MSVCRT_EOF
)
{
ret
=
MSVCRT_WEOF
;
break
;
...
...
@@ -3596,11 +3608,11 @@ MSVCRT_wint_t CDECL MSVCRT_fgetwc(MSVCRT_FILE* file)
char
mbs
[
MSVCRT_MB_LEN_MAX
];
int
len
=
0
;
ch
=
MSVCRT_
fgetc
(
file
);
ch
=
MSVCRT_
_fgetc_nolock
(
file
);
if
(
ch
!=
MSVCRT_EOF
)
{
mbs
[
0
]
=
(
char
)
ch
;
if
(
MSVCRT_isleadbyte
((
unsigned
char
)
mbs
[
0
]))
{
ch
=
MSVCRT_
fgetc
(
file
);
ch
=
MSVCRT_
_fgetc_nolock
(
file
);
if
(
ch
!=
MSVCRT_EOF
)
{
mbs
[
1
]
=
(
char
)
ch
;
len
=
2
;
...
...
@@ -3614,7 +3626,6 @@ MSVCRT_wint_t CDECL MSVCRT_fgetwc(MSVCRT_FILE* file)
ret
=
MSVCRT_WEOF
;
}
MSVCRT__unlock_file
(
file
);
return
ret
;
}
...
...
dlls/msvcrt/msvcrt.h
View file @
156684ba
...
...
@@ -919,6 +919,7 @@ int __cdecl MSVCRT_fgetc(MSVCRT_FILE*);
int
__cdecl
MSVCRT__fgetc_nolock
(
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT_ungetc
(
int
,
MSVCRT_FILE
*
);
MSVCRT_wint_t
__cdecl
MSVCRT_fgetwc
(
MSVCRT_FILE
*
);
MSVCRT_wint_t
__cdecl
MSVCRT__fgetwc_nolock
(
MSVCRT_FILE
*
);
MSVCRT_wint_t
__cdecl
MSVCRT_ungetwc
(
MSVCRT_wint_t
,
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT__fseeki64_nolock
(
MSVCRT_FILE
*
,
__int64
,
int
);
__int64
__cdecl
MSVCRT__ftelli64
(
MSVCRT_FILE
*
file
);
...
...
include/msvcrt/stdio.h
View file @
156684ba
...
...
@@ -196,6 +196,7 @@ unsigned int __cdecl _set_output_format(void);
#ifndef _WSTDIO_DEFINED
#define _WSTDIO_DEFINED
wint_t
__cdecl
_fgetwc_nolock
(
FILE
*
);
wint_t
__cdecl
_fgetwchar
(
void
);
wint_t
__cdecl
_fputwchar
(
wint_t
);
wchar_t
*
__cdecl
_getws
(
wchar_t
*
);
...
...
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