diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-03-17 12:30:37 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-11-22 14:31:25 +0000 |
commit | bcc70e4b2b213030e7f4ac1f4dddd9858d5b2968 (patch) | |
tree | 61add64a3ee6c3375291592ff804fb786afe08cf | |
parent | 1b8d019265ebe0b6c27a8e845de3127449956dd6 (diff) | |
download | glibc-bcc70e4b2b213030e7f4ac1f4dddd9858d5b2968.tar.gz glibc-bcc70e4b2b213030e7f4ac1f4dddd9858d5b2968.tar.xz glibc-bcc70e4b2b213030e7f4ac1f4dddd9858d5b2968.zip |
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.
-rw-r--r-- | wctype/bits/wctype-wchar.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |