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
975a95a2
Commit
975a95a2
authored
Nov 04, 2014
by
Iván Matellanes
Committed by
Alexandre Julliard
Nov 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _fputc_nolock implementation.
parent
9e4590ff
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
4 deletions
+21
-4
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-0
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-0
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-0
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-0
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-0
file.c
dlls/msvcrt/file.c
+14
-4
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 @
975a95a2
...
...
@@ -830,6 +830,7 @@
@ stub _fprintf_p
@ stub _fprintf_p_l
@ stub _fprintf_s_l
@ cdecl _fputc_nolock(long ptr) MSVCRT__fputc_nolock
@ cdecl _fputchar(long) MSVCRT__fputchar
@ stub _fputwc_nolock
@ cdecl _fputwchar(long) MSVCRT__fputwchar
...
...
dlls/msvcr110/msvcr110.spec
View file @
975a95a2
...
...
@@ -1178,6 +1178,7 @@
@ stub _fprintf_p
@ stub _fprintf_p_l
@ stub _fprintf_s_l
@ cdecl _fputc_nolock(long ptr) MSVCRT__fputc_nolock
@ cdecl _fputchar(long) MSVCRT__fputchar
@ stub _fputwc_nolock
@ cdecl _fputwchar(long) MSVCRT__fputwchar
...
...
dlls/msvcr120/msvcr120.spec
View file @
975a95a2
...
...
@@ -1176,6 +1176,7 @@
@ stub _fprintf_p
@ stub _fprintf_p_l
@ stub _fprintf_s_l
@ cdecl _fputc_nolock(long ptr) MSVCRT__fputc_nolock
@ cdecl _fputchar(long) MSVCRT__fputchar
@ stub _fputwc_nolock
@ cdecl _fputwchar(long) MSVCRT__fputwchar
...
...
dlls/msvcr80/msvcr80.spec
View file @
975a95a2
...
...
@@ -497,6 +497,7 @@
@ stub _fprintf_p
@ stub _fprintf_p_l
@ stub _fprintf_s_l
@ cdecl _fputc_nolock(long ptr) MSVCRT__fputc_nolock
@ cdecl _fputchar(long) MSVCRT__fputchar
@ stub _fputwc_nolock
@ cdecl _fputwchar(long) MSVCRT__fputwchar
...
...
dlls/msvcr90/msvcr90.spec
View file @
975a95a2
...
...
@@ -479,6 +479,7 @@
@ stub _fprintf_p
@ stub _fprintf_p_l
@ stub _fprintf_s_l
@ cdecl _fputc_nolock(long ptr) MSVCRT__fputc_nolock
@ cdecl _fputchar(long) MSVCRT__fputchar
@ stub _fputwc_nolock
@ cdecl _fputwchar(long) MSVCRT__fputwchar
...
...
dlls/msvcrt/file.c
View file @
975a95a2
...
...
@@ -3980,25 +3980,35 @@ int CDECL MSVCRT__wfopen_s(MSVCRT_FILE** pFile, const MSVCRT_wchar_t *filename,
*/
int
CDECL
MSVCRT_fputc
(
int
c
,
MSVCRT_FILE
*
file
)
{
int
ret
;
MSVCRT__lock_file
(
file
);
ret
=
MSVCRT__fputc_nolock
(
c
,
file
);
MSVCRT__unlock_file
(
file
);
return
ret
;
}
/*********************************************************************
* _fputc_nolock (MSVCRT.@)
*/
int
CDECL
MSVCRT__fputc_nolock
(
int
c
,
MSVCRT_FILE
*
file
)
{
int
res
;
MSVCRT__lock_file
(
file
);
if
(
file
->
_cnt
>
0
)
{
*
file
->
_ptr
++=
c
;
file
->
_cnt
--
;
if
(
c
==
'\n'
)
{
res
=
msvcrt_flush_buffer
(
file
);
MSVCRT__unlock_file
(
file
);
return
res
?
res
:
c
;
}
else
{
MSVCRT__unlock_file
(
file
);
return
c
&
0xff
;
}
}
else
{
res
=
MSVCRT__flsbuf
(
c
,
file
);
MSVCRT__unlock_file
(
file
);
return
res
;
}
}
...
...
dlls/msvcrt/msvcrt.h
View file @
975a95a2
...
...
@@ -917,6 +917,7 @@ void __cdecl MSVCRT__lock_file(MSVCRT_FILE*);
void
__cdecl
MSVCRT__unlock_file
(
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT_fgetc
(
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT__fgetc_nolock
(
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT__fputc_nolock
(
int
,
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
*
);
...
...
include/msvcrt/stdio.h
View file @
975a95a2
...
...
@@ -132,6 +132,7 @@ size_t __cdecl _fwrite_nolock(const void*,size_t,size_t,FILE*);
int
__cdecl
_fclose_nolock
(
FILE
*
);
int
__cdecl
_fflush_nolock
(
FILE
*
);
int
__cdecl
_fgetc_nolock
(
FILE
*
);
int
__cdecl
_fputc_nolock
(
int
,
FILE
*
);
int
__cdecl
_fseek_nolock
(
FILE
*
,
__msvcrt_long
,
int
);
int
__cdecl
_fseeki64_nolock
(
FILE
*
,
__int64
,
int
);
__msvcrt_long
__cdecl
_ftell_nolock
(
FILE
*
);
...
...
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