]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cheri: wctype: turn wctype_t into a pointer
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 17 Mar 2022 12:30:37 +0000 (12:30 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:52 +0000 (14:46 +0100)
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.

wctype/bits/wctype-wchar.h

index 8eca9262fd40dd191ab4a2f9a9e64ab1f4155071..5ff0aad8a294d9d6b91d302d97acc7394b9de14d 100644 (file)
 
 /* 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