Page MenuHomeFreeBSD

uchar.h: add char8_t
ClosedPublic

Authored by fuz on Thu, Nov 27, 5:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 4, 2:48 PM
Unknown Object (File)
Thu, Dec 4, 7:37 AM
Unknown Object (File)
Thu, Dec 4, 1:25 AM
Unknown Object (File)
Wed, Dec 3, 7:35 AM
Unknown Object (File)
Sat, Nov 29, 10:25 PM
Unknown Object (File)
Thu, Nov 27, 10:00 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

fuz requested review of this revision.Thu, Nov 27, 5:59 PM

I'd be tempted to do separate commits, but it's not therrible if not. The change looks good to me.

This revision is now accepted and ready to land.Fri, Nov 28, 6:54 AM
include/uchar.h
36

Isn't this missing #define _CHAR8_T_DECLARED?

include/uchar.h
36

Indeed—I'll fix that on commit.

This revision was automatically updated to reflect the committed changes.