Add mbstate_t to wchar.h and cwchar

This commit is contained in:
Gregory Nutt 2015-02-19 09:21:35 -06:00
parent 5b1514cc9b
commit 8bd9203d49
2 changed files with 22 additions and 6 deletions

View File

@ -46,4 +46,11 @@
// Namespace // Namespace
//*************************************************************************** //***************************************************************************
namespace std
{
using ::mbstate_t;
using ::wint_t;
using ::size_t;
};
#endif // __INCLUDE_CXX_CWCHAR #endif // __INCLUDE_CXX_CWCHAR

View File

@ -89,8 +89,11 @@
* *
* wint_t * wint_t
* An integral type capable of storing any valid value of wchar_t, or WEOF. * An integral type capable of storing any valid value of wchar_t, or WEOF.
* */
* wctype_t
typedef int wint_t;
/* wctype_t
* A scalar type of a data object that can hold values which represent * A scalar type of a data object that can hold values which represent
* locale-specific character classification. * locale-specific character classification.
* *
@ -100,8 +103,16 @@
* multibyte) characters and wide-characters. If a codeset is being used * multibyte) characters and wide-characters. If a codeset is being used
* such that an mbstate_t needs to preserve more than 2 levels of reserved * such that an mbstate_t needs to preserve more than 2 levels of reserved
* state, the results are unspecified. * state, the results are unspecified.
* */
* FILE
struct mbstate_s
{
int __fill[6];
};
typedef struct mbstate_s mbstate_t;
/* FILE
* As described in <stdio.h>. * As described in <stdio.h>.
* *
* size_t * size_t
@ -110,8 +121,6 @@
* Reference: Opengroup.org * Reference: Opengroup.org
*/ */
typedef int wint_t;
/* "The tag tm is declared as naming an incomplete structure type, the /* "The tag tm is declared as naming an incomplete structure type, the
* contents of which are described in the header <time.h>." * contents of which are described in the header <time.h>."
* *