aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-03-17 12:30:37 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-08-05 19:45:19 +0100
commitf7842f9392d081ff6decfbd2fc9ca9973c83c4bb (patch)
treeaebeef489ebaa5d3a9f827b9d0a7d1c76da90a6a
parent5778537ccd9a2cf46e3f4c323f84118d5a514739 (diff)
downloadglibc-f7842f9392d081ff6decfbd2fc9ca9973c83c4bb.tar
glibc-f7842f9392d081ff6decfbd2fc9ca9973c83c4bb.tar.gz
glibc-f7842f9392d081ff6decfbd2fc9ca9973c83c4bb.tar.bz2
glibc-f7842f9392d081ff6decfbd2fc9ca9973c83c4bb.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.h4
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