A type similar to char16 and char32_t, for compliance with C23.
The related type atomic_char8_t is added to stdatomic.h.
As char8_t is always unsigned char, I've skipped adding __char8_t.
This can be added, too, if desired.
Details
Details
- Reviewers
ed theraven markj imp - Commits
- rGf0e541118c37: uchar.h: add char8_t
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I'd be tempted to do separate commits, but it's not therrible if not. The change looks good to me.
| include/uchar.h | ||
|---|---|---|
| 36 | Isn't this missing #define _CHAR8_T_DECLARED? | |
| include/uchar.h | ||
|---|---|---|
| 36 | Indeed—I'll fix that on commit. | |