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.
This commit is contained in:
Szabolcs Nagy 2022-03-17 12:30:37 +00:00
parent 5778537ccd
commit f7842f9392

View File

@ -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