From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 022E2385153C; Thu, 27 Oct 2022 13:56:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 022E2385153C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878994; bh=oF1JmH3kITy+4TGcmfUbFhwSVlSkS+WIQb9p3pReKcE=; h=From:To:Subject:Date:From; b=wUTo3DcUbZ0wNoNQeaqVZ+6K2SF+5LhJVHBcox7e4gAN9KKtewYSHUNa+ajXfHKUi NZDM+wB6dGayAJv5T4yLqWoCkxs4HXKBRojzvOQmpHTjnX0LcSOQqpkQeSR957cdCX oY+OxTNJgTQLEfr/dgpZuyEsgF5rUFemrdaIDHVA= 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: 1865211ef5d027f10033397b8c5d46052f069cec X-Git-Newrev: 105c8d33c3ee1a4ce66219b546d0a0745b8f0f48 Message-Id: <20221027135634.022E2385153C@sourceware.org> Date: Thu, 27 Oct 2022 13:56:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=105c8d33c3ee1a4ce66219b546d0a0745b8f0f48 commit 105c8d33c3ee1a4ce66219b546d0a0745b8f0f48 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