From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id EF5DA3858009; Fri, 5 Aug 2022 19:35:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF5DA3858009 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] cheri: wctype: turn wctype_t into a pointer X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 5778537ccd9a2cf46e3f4c323f84118d5a514739 X-Git-Newrev: f7842f9392d081ff6decfbd2fc9ca9973c83c4bb Message-Id: <20220805193509.EF5DA3858009@sourceware.org> Date: Fri, 5 Aug 2022 19:35:09 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 19:35:10 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f7842f9392d081ff6decfbd2fc9ca9973c83c4bb commit f7842f9392d081ff6decfbd2fc9ca9973c83c4bb Author: Szabolcs Nagy Date: Thu Mar 17 12:30:37 2022 +0000 cheri: wctype: turn wctype_t into a pointer Make wctype_t a pointer so dereferencing it works. wctrans_t is already a pointer and used the same way. Existing targets are not affected, only capability targets where this is necessary. Diff: --- wctype/bits/wctype-wchar.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wctype/bits/wctype-wchar.h b/wctype/bits/wctype-wchar.h index 8eca9262fd..5ff0aad8a2 100644 --- a/wctype/bits/wctype-wchar.h +++ b/wctype/bits/wctype-wchar.h @@ -35,7 +35,11 @@ /* Scalar type that can hold values which represent locale-specific character classifications. */ +#ifdef __CHERI_PURE_CAPABILITY__ +typedef const char *wctype_t; +#else typedef unsigned long int wctype_t; +#endif # ifndef _ISwbit /* The characteristics are stored always in network byte order (big