From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 1E6B33853D7F; Wed, 23 Nov 2022 14:46:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E6B33853D7F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214789; bh=+F3iV4GRl5yppOvA7AGV/7DIjLL6fcjvt8br7LFXR5E=; h=From:To:Subject:Date:From; b=RaUFjLWILqEGUDsHUg3JE+zi5Se0KkZCnjN5Zo6xxuY8JjQZIZbqfQoEwjBsrJA/p xBa0a/0qZYFmJB85h9NJlAagV1NnVJltGGgxshZvryMTPG5I/e+Y+eNFG1qH7sMWXv QVuXImR+p6CK+QtqmsPs0Bfb1wfyfVM98Q2CjyE4= 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: 1b8d019265ebe0b6c27a8e845de3127449956dd6 X-Git-Newrev: bcc70e4b2b213030e7f4ac1f4dddd9858d5b2968 Message-Id: <20221123144629.1E6B33853D7F@sourceware.org> Date: Wed, 23 Nov 2022 14:46:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bcc70e4b2b213030e7f4ac1f4dddd9858d5b2968 commit bcc70e4b2b213030e7f4ac1f4dddd9858d5b2968 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