| 1 | // Licensed to the .NET Foundation under one or more agreements. |
| 2 | // The .NET Foundation licenses this file to you under the MIT license. |
| 3 | // See the LICENSE file in the project root for more information. |
| 4 | |
| 5 | /*** |
| 6 | *safecrt_winput_s.c - implementation of the _winput family for safecrt.lib |
| 7 | * |
| 8 | |
| 9 | * |
| 10 | *Purpose: |
| 11 | * This file contains the implementation of the _winput family for safecrt.lib. |
| 12 | * |
| 13 | *Revision History: |
| 14 | * 07/19/04 AC Created |
| 15 | * |
| 16 | ****/ |
| 17 | |
| 18 | |
| 19 | #ifndef _UNICODE /* CRT flag */ |
| 20 | #define _UNICODE 1 |
| 21 | #endif |
| 22 | |
| 23 | #ifndef UNICODE /* NT flag */ |
| 24 | #define UNICODE 1 |
| 25 | #endif |
| 26 | |
| 27 | #define _SAFECRT_IMPL |
| 28 | #define _SECURE_SCANF |
| 29 | |
| 30 | #include "pal/palinternal.h" |
| 31 | #include <string.h> |
| 32 | #include <errno.h> |
| 33 | #include <limits.h> |
| 34 | #include <stdlib.h> |
| 35 | #include <locale.h> |
| 36 | #include <stdarg.h> |
| 37 | #include <inttypes.h> |
| 38 | #include "internal_securecrt.h" |
| 39 | |
| 40 | #include "mbusafecrt_internal.h" |
| 41 | |
| 42 | #define _TCHAR CRT_TCHAR |
| 43 | #define TCHAR CRTTCHAR |
| 44 | |
| 45 | typedef wchar_t _TCHAR; |
| 46 | typedef wchar_t TCHAR; |
| 47 | typedef wchar_t _TUCHAR; |
| 48 | #define _T(x) x |
| 49 | #define _TEOF WEOF |
| 50 | |
| 51 | #define _gettc_nolock(x) _getwc_nolock(x) |
| 52 | #define _ungettc_nolock(x,y) _ungetwc_nolock(x,y) |
| 53 | |
| 54 | #include "input.inl" |
| 55 | |
| 56 | |