msvcrt: Add _getwche implementation.

oldstable
Piotr Caban 2015-06-14 14:31:23 +02:00 committed by Alexandre Julliard
parent 9a10a71638
commit d4fab07110
9 changed files with 38 additions and 13 deletions

View File

@ -909,8 +909,8 @@
@ cdecl _getwc_nolock(ptr) MSVCRT__fgetwc_nolock
@ cdecl _getwch()
@ cdecl _getwch_nolock()
@ stub _getwche
@ stub _getwche_nolock
@ cdecl _getwche()
@ cdecl _getwche_nolock()
@ cdecl _getws(ptr) MSVCRT__getws
@ stub _getws_s
@ cdecl -arch=i386 _global_unwind2(ptr)

View File

@ -1256,8 +1256,8 @@
@ cdecl _getwc_nolock(ptr) MSVCRT__fgetwc_nolock
@ cdecl _getwch()
@ cdecl _getwch_nolock()
@ stub _getwche
@ stub _getwche_nolock
@ cdecl _getwche()
@ cdecl _getwche_nolock()
@ cdecl _getws(ptr) MSVCRT__getws
@ stub _getws_s
@ cdecl -arch=i386 _global_unwind2(ptr)

View File

@ -1254,8 +1254,8 @@
@ cdecl _getwc_nolock(ptr) MSVCRT__fgetwc_nolock
@ cdecl _getwch()
@ cdecl _getwch_nolock()
@ stub _getwche
@ stub _getwche_nolock
@ cdecl _getwche()
@ cdecl _getwche_nolock()
@ cdecl _getws(ptr) MSVCRT__getws
@ stub _getws_s
@ cdecl -arch=i386 _global_unwind2(ptr)

View File

@ -344,7 +344,7 @@
@ stub _getsystime(ptr)
@ cdecl _getw(ptr) MSVCRT__getw
@ cdecl _getwch()
@ stub _getwche
@ cdecl _getwche()
@ cdecl _getws(ptr) MSVCRT__getws
@ cdecl -arch=i386 _global_unwind2(ptr)
@ cdecl _gmtime64(ptr) MSVCRT__gmtime64

View File

@ -339,7 +339,7 @@
@ stub _getsystime(ptr)
@ cdecl _getw(ptr) MSVCRT__getw
@ cdecl _getwch()
@ stub _getwche
@ cdecl _getwche()
@ cdecl _getws(ptr) MSVCRT__getws
@ cdecl -arch=i386 _global_unwind2(ptr)
@ cdecl _gmtime64(ptr) MSVCRT__gmtime64

View File

@ -583,8 +583,8 @@
@ cdecl _getwc_nolock(ptr) MSVCRT__fgetwc_nolock
@ cdecl _getwch()
@ cdecl _getwch_nolock()
@ stub _getwche
@ stub _getwche_nolock
@ cdecl _getwche()
@ cdecl _getwche_nolock()
@ cdecl _getws(ptr) MSVCRT__getws
@ stub _getws_s
@ cdecl -arch=i386 _global_unwind2(ptr)

View File

@ -560,8 +560,8 @@
@ cdecl _getwc_nolock(ptr) MSVCRT__fgetwc_nolock
@ cdecl _getwch()
@ cdecl _getwch_nolock()
@ stub _getwche
@ stub _getwche_nolock
@ cdecl _getwche()
@ cdecl _getwche_nolock()
@ cdecl _getws(ptr) MSVCRT__getws
@ stub _getws_s
@ cdecl -arch=i386 _global_unwind2(ptr)

View File

@ -353,6 +353,31 @@ int CDECL _getche(void)
return ret;
}
/*********************************************************************
* _getwche_nolock (MSVCR80.@)
*/
MSVCRT_wchar_t CDECL _getwche_nolock(void)
{
MSVCRT_wchar_t wch;
wch = _getch_nolock();
if (wch == MSVCRT_WEOF)
return wch;
return _putwch_nolock(wch);
}
/*********************************************************************
* _getwche (MSVCRT.@)
*/
MSVCRT_wchar_t CDECL _getwche(void)
{
MSVCRT_wchar_t ret;
LOCK_CONSOLE;
ret = _getwche_nolock();
UNLOCK_CONSOLE;
return ret;
}
/*********************************************************************
* _cgets (MSVCRT.@)
*/

View File

@ -534,7 +534,7 @@
@ stub _getsystime(ptr)
@ cdecl _getw(ptr) MSVCRT__getw
@ cdecl _getwch()
# stub _getwche()
@ cdecl _getwche()
@ cdecl _getws(ptr) MSVCRT__getws
@ cdecl -arch=i386 _global_unwind2(ptr)
@ cdecl _gmtime32(ptr) MSVCRT__gmtime32