From 07a83dd91d27a6914c15c0b46bb62ff9a75e6f0c Mon Sep 17 00:00:00 2001 From: jca Date: Sun, 4 Feb 2024 13:03:26 +0000 Subject: [PATCH] Adapt base libstdc++ to the new ctype.h defines ctype_base.h is correctly installed by make includes so the transition should be automatic. If you hit a failure with this header, make sure ctype.h and ctype_base.h are in sync. ok miod@ tb@ --- .../config/os/bsd/openbsd/ctype_base.h | 22 +++++++++---------- .../config/os/bsd/openbsd/ctype_base.h | 22 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h b/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h index e2d26707f08..254abd5b3d6 100644 --- a/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h +++ b/gnu/gcc/libstdc++-v3/config/os/bsd/openbsd/ctype_base.h @@ -46,17 +46,17 @@ _GLIBCXX_BEGIN_NAMESPACE(std) // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. typedef char mask; - static const mask upper = _U; - static const mask lower = _L; - static const mask alpha = _U | _L; - static const mask digit = _N; - static const mask xdigit = _N | _X; - static const mask space = _S; - static const mask print = char(_P | _U | _L | _N | _B); - static const mask graph = _P | _U | _L | _N; - static const mask cntrl = _C; - static const mask punct = _P; - static const mask alnum = _U | _L | _N; + static const mask upper = _CTYPE_U; + static const mask lower = _CTYPE_L; + static const mask alpha = _CTYPE_U | _CTYPE_L; + static const mask digit = _CTYPE_N; + static const mask xdigit = _CTYPE_N | _CTYPE_X; + static const mask space = _CTYPE_S; + static const mask print = char(_CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N | _CTYPE_B); + static const mask graph = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N; + static const mask cntrl = _CTYPE_C; + static const mask punct = _CTYPE_P; + static const mask alnum = _CTYPE_U | _CTYPE_L | _CTYPE_N; }; _GLIBCXX_END_NAMESPACE diff --git a/gnu/lib/libstdc++/libstdc++/config/os/bsd/openbsd/ctype_base.h b/gnu/lib/libstdc++/libstdc++/config/os/bsd/openbsd/ctype_base.h index 8ec1d3f2d47..be0276a0989 100644 --- a/gnu/lib/libstdc++/libstdc++/config/os/bsd/openbsd/ctype_base.h +++ b/gnu/lib/libstdc++/libstdc++/config/os/bsd/openbsd/ctype_base.h @@ -41,15 +41,15 @@ // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. typedef char mask; - static const mask upper = _U; - static const mask lower = _L; - static const mask alpha = _U | _L; - static const mask digit = _N; - static const mask xdigit = _N | _X; - static const mask space = _S; - static const mask print = _P | _U | _L | _N | _B; - static const mask graph = _P | _U | _L | _N; - static const mask cntrl = _C; - static const mask punct = _P; - static const mask alnum = _U | _L | _N; + static const mask upper = _CTYPE_U; + static const mask lower = _CTYPE_L; + static const mask alpha = _CTYPE_U | _CTYPE_L; + static const mask digit = _CTYPE_N; + static const mask xdigit = _CTYPE_N | _CTYPE_X; + static const mask space = _CTYPE_S; + static const mask print = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N | _CTYPE_B; + static const mask graph = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N; + static const mask cntrl = _CTYPE_C; + static const mask punct = _CTYPE_P; + static const mask alnum = _CTYPE_U | _CTYPE_L | _CTYPE_N; }; -- 2.20.1