msvcrt: Write directly to the console in _putwch.
This commit is contained in:
parent
6827724e54
commit
eb9e00857a
|
@ -1239,8 +1239,8 @@
|
||||||
@ cdecl _putenv_s(str str)
|
@ cdecl _putenv_s(str str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ stub _putwch_nolock
|
@ cdecl _putwch_nolock(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
|
@ -1597,8 +1597,8 @@
|
||||||
@ cdecl _putenv_s(str str)
|
@ cdecl _putenv_s(str str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ stub _putwch_nolock
|
@ cdecl _putwch_nolock(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
|
@ -1605,8 +1605,8 @@
|
||||||
@ cdecl _putenv_s(str str)
|
@ cdecl _putenv_s(str str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ stub _putwch_nolock
|
@ cdecl _putwch_nolock(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
|
@ -495,7 +495,7 @@
|
||||||
@ cdecl _putch(long)
|
@ cdecl _putch(long)
|
||||||
@ cdecl _putenv(str)
|
@ cdecl _putenv(str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
|
@ -490,7 +490,7 @@
|
||||||
@ cdecl _putch(long)
|
@ cdecl _putch(long)
|
||||||
@ cdecl _putenv(str)
|
@ cdecl _putenv(str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
|
@ -914,8 +914,8 @@
|
||||||
@ cdecl _putenv_s(str str)
|
@ cdecl _putenv_s(str str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ stub _putwch_nolock
|
@ cdecl _putwch_nolock(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
|
@ -889,8 +889,8 @@
|
||||||
@ cdecl _putenv_s(str str)
|
@ cdecl _putenv_s(str str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
@ cdecl _putwc_nolock(long ptr) MSVCRT__fputwc_nolock
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ stub _putwch_nolock
|
@ cdecl _putwch_nolock(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
|
@ -217,6 +217,28 @@ int CDECL _putch(int c)
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* _putwch_nolock (MSVCR80.@)
|
||||||
|
*/
|
||||||
|
MSVCRT_wchar_t CDECL _putwch_nolock(MSVCRT_wchar_t c)
|
||||||
|
{
|
||||||
|
DWORD count;
|
||||||
|
if (WriteConsoleW(MSVCRT_console_out, &c, 1, &count, NULL) && count==1)
|
||||||
|
return c;
|
||||||
|
return MSVCRT_WEOF;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* _putwch (MSVCRT.@)
|
||||||
|
*/
|
||||||
|
MSVCRT_wchar_t CDECL _putwch(MSVCRT_wchar_t c)
|
||||||
|
{
|
||||||
|
LOCK_CONSOLE;
|
||||||
|
c = _putwch_nolock(c);
|
||||||
|
UNLOCK_CONSOLE;
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* _getche_nolock (MSVCR80.@)
|
* _getche_nolock (MSVCR80.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4630,14 +4630,6 @@ int CDECL MSVCRT_putchar(int c)
|
||||||
return MSVCRT_fputc(c, MSVCRT_stdout);
|
return MSVCRT_fputc(c, MSVCRT_stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
|
||||||
* _putwch (MSVCRT.@)
|
|
||||||
*/
|
|
||||||
int CDECL MSVCRT__putwch(int c)
|
|
||||||
{
|
|
||||||
return MSVCRT_fputwc(c, MSVCRT_stdout);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* puts (MSVCRT.@)
|
* puts (MSVCRT.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -861,7 +861,7 @@
|
||||||
@ cdecl _putenv(str)
|
@ cdecl _putenv(str)
|
||||||
@ cdecl _putenv_s(str str)
|
@ cdecl _putenv_s(str str)
|
||||||
@ cdecl _putw(long ptr) MSVCRT__putw
|
@ cdecl _putw(long ptr) MSVCRT__putw
|
||||||
@ cdecl _putwch(long) MSVCRT__putwch
|
@ cdecl _putwch(long)
|
||||||
@ cdecl _putws(wstr) MSVCRT__putws
|
@ cdecl _putws(wstr) MSVCRT__putws
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long) MSVCRT__read
|
@ cdecl _read(long ptr long) MSVCRT__read
|
||||||
|
|
Loading…
Reference in New Issue