]> pd.if.org Git - pdclib.old/blobdiff - internals/_PDCLIB_int.h
char16_t/char32_t were incorrectly defined as int*_t rather than uint*_t
[pdclib.old] / internals / _PDCLIB_int.h
index 9ff9e69e321b3a1809747449bed85d697984e1ed..134123a1862fa650a1bccb0be8bb8186c8f638fd 100644 (file)
@@ -309,29 +309,13 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, _PDCL
 extern char _PDCLIB_digits[];
 extern char _PDCLIB_Xdigits[];
 
-/* -------------------------------------------------------------------------- */
-/* errno                                                                      */
-/* -------------------------------------------------------------------------- */
-
-/* If PDCLib would call its error number "errno" directly, there would be no way
-   to catch its value from underlying system calls that also use it (i.e., POSIX
-   operating systems). That is why we use an internal name, providing a means to
-   access it through <errno.h>.
-*/
-extern int _PDCLIB_errno;
-
-/* A mechanism for delayed evaluation. (Not sure if this is really necessary, so
-   no detailed documentation on the "why".)
-*/
-int * _PDCLIB_errno_func( void ) _PDCLIB_nothrow;
-
 /* -------------------------------------------------------------------------- */
 /* locale / wchar / uchar                                                     */
 /* -------------------------------------------------------------------------- */
 
 #ifndef __cplusplus
-typedef _PDCLIB_int16_t         _PDCLIB_char16_t;
-typedef _PDCLIB_int32_t         _PDCLIB_char32_t;
+typedef _PDCLIB_uint16_t        _PDCLIB_char16_t;
+typedef _PDCLIB_uint32_t        _PDCLIB_char32_t;
 #else
 typedef char16_t                _PDCLIB_char16_t;
 typedef char32_t                _PDCLIB_char32_t;