git: <wchar.h>: Refactor wchar_t/wint_t/mb_state setup.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sat Nov 2 15:47:56 PDT 2019


commit 3cfdabcf7e1db41825b8887a61c5c931c82c4f4d
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sat Nov 2 13:26:14 2019 +0200

    <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.

Summary of changes:
 include/inttypes.h                |  5 ++-
 include/stddef.h                  |  5 ++-
 include/stdlib.h                  |  5 ++-
 include/uchar.h                   |  1 +
 include/wchar.h                   |  3 +-
 include/wctype.h                  |  1 +
 lib/libc/locale/xlocale_private.h |  1 +
 sys/cpu/x86_64/include/wchar.h    | 79 +++++++++++++++++++++++++++++++++++++++
 sys/sys/stdint.h                  | 34 -----------------
 sys/sys/types.h                   |  4 --
 10 files changed, 96 insertions(+), 42 deletions(-)
 create mode 100644 sys/cpu/x86_64/include/wchar.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3cfdabcf7e1db41825b8887a61c5c931c82c4f4d


-- 
DragonFly BSD source repository



More information about the Commits mailing list