<wchar.h>: Refactor wchar_t/wint_t/mb_state setup.
authorzrj <rimvydas.jasinskas@gmail.com>
Sat, 2 Nov 2019 11:26:14 +0000 (13:26 +0200)
committerzrj <rimvydas.jasinskas@gmail.com>
Sat, 2 Nov 2019 23:08:10 +0000 (01:08 +0200)
commit3cfdabcf7e1db41825b8887a61c5c931c82c4f4d
tree733d8f63179a0895d727e702c080c2fcdbdce9b7
parent8b03c2a2d6beb779c61e77703adb47a4a796ffaa
<wchar.h>: Refactor wchar_t/wint_t/mb_state setup.

 Kernel has no wchar support functions (except for VKERNEL64).

 * Extract wide-character types setup to common <machine/wchar.h>.
 * Avoid using __wchar_t for clang -fms-extensions issue.
 * Add more handling for c++ and -fshort-wchar (not supported in libc).

 This essentially removes these types from kernel namespace and paves
 the way for further both userland/kernelland visibility cleanup by
 making <sys/stdint.h> clean.
 The WCHAR_MAX/WCHAR_MIN limits will be addressed in separate commit.
include/inttypes.h
include/stddef.h
include/stdlib.h
include/uchar.h
include/wchar.h
include/wctype.h
lib/libc/locale/xlocale_private.h
sys/cpu/x86_64/include/wchar.h [new file with mode: 0644]
sys/sys/stdint.h
sys/sys/types.h