mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
nclude/sys/types: Move wint_t and wctype_t from wchar.h to types.h. This change is compatible as before since wchar.h include types.h indirectly. This fixes a compilation error with newlib's math.h: 'unknown type name wint_t'
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* The <stddef.h> header shall define the following macros:
|
/* The <stddef.h> header shall define the following macros:
|
||||||
*
|
*
|
||||||
* NULL
|
* NULL
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Type Definitions
|
* Type Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* The <stddef.h> header shall define the following types:
|
/* The <stddef.h> header shall define the following types:
|
||||||
*
|
*
|
||||||
* ptrdiff_t
|
* ptrdiff_t
|
||||||
|
|||||||
@@ -204,6 +204,19 @@ typedef intptr_t ptrdiff_t;
|
|||||||
typedef uint16_t wchar_t;
|
typedef uint16_t wchar_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* wint_t
|
||||||
|
* An integral type capable of storing any valid value of wchar_t, or WEOF.
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef int wint_t;
|
||||||
|
|
||||||
|
/* wctype_t
|
||||||
|
* A scalar type of a data object that can hold values which represent
|
||||||
|
* locale-specific character classification.
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef int wctype_t;
|
||||||
|
|
||||||
/* blkcnt_t and off_t are signed integer types.
|
/* blkcnt_t and off_t are signed integer types.
|
||||||
*
|
*
|
||||||
* blkcnt_t is used for file block counts.
|
* blkcnt_t is used for file block counts.
|
||||||
|
|||||||
+9
-13
@@ -82,25 +82,21 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Type Definitions
|
* Type Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
/* "The <wchar.h> header defines the following data types through
|
|
||||||
|
/* "The <wchar.h> header defines the following data types:
|
||||||
*
|
*
|
||||||
* wchar_t
|
* wchar_t
|
||||||
* As described in <stddef.h>.
|
* Provided via <stddef.h>.
|
||||||
*
|
*
|
||||||
* 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.
|
||||||
*/
|
* Provided via <sys/type.h>
|
||||||
|
*
|
||||||
typedef int wint_t;
|
* wctype_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. Provided via <sys/type.h>
|
||||||
*/
|
*
|
||||||
|
* mbstate_t
|
||||||
typedef int wctype_t;
|
|
||||||
|
|
||||||
/* mbstate_t
|
|
||||||
* An object type other than an array type that can hold the conversion
|
* An object type other than an array type that can hold the conversion
|
||||||
* state information necessary to convert between sequences of (possibly
|
* state information necessary to convert between sequences of (possibly
|
||||||
* multibyte) characters and wide-characters. If a codeset is being used
|
* multibyte) characters and wide-characters. If a codeset is being used
|
||||||
|
|||||||
Reference in New Issue
Block a user