git: <wchar.h>: Implement correct limits for different wchar_t flavors.

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


commit a44a78be8d6b254da1e8bdb3ac4cdc65a7f52885
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sat Nov 2 19:02:41 2019 +0200

    <wchar.h>: Implement correct limits for different wchar_t flavors.
    
     Try best to select correct limits while always using handpicked standard
     C wchar_t bounds that match internal rune_t and standard wint_t types.
     It might be worth to switch to using compiler provided limits for all.
     The <stdint.h> header should provide limits for all types in standard
     headers, so provide wint_t (<wchar.h>, <wctype.h>) limits too.
     The <machine/wchar_limits.h> idea taken from NetBSD.

Summary of changes:
 include/stdint.h                                   | 22 ++++++++++--
 include/wchar.h                                    |  5 +--
 sys/cpu/x86_64/include/int_limits.h                | 22 ++----------
 .../cpu/x86_64/include/wchar_limits.h              | 41 +++++++++++++++-------
 4 files changed, 52 insertions(+), 38 deletions(-)
 copy include/alloca.h => sys/cpu/x86_64/include/wchar_limits.h (51%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a44a78be8d6b254da1e8bdb3ac4cdc65a7f52885


-- 
DragonFly BSD source repository



More information about the Commits mailing list