Page MenuHomeFreeBSD

stddef.h/stdlib.h: Remove unused rune_t
ClosedPublic

Authored by brooks on May 31 2024, 7:12 PM.
Tags
None
Referenced Files
F87721062: D45426.id139337.diff
Sun, Jul 7, 7:44 AM
F87696189: D45426.diff
Sat, Jul 6, 9:40 PM
Unknown Object (File)
Fri, Jul 5, 6:05 AM
Unknown Object (File)
Thu, Jul 4, 2:33 PM
Unknown Object (File)
Jun 6 2024, 10:09 PM
Unknown Object (File)
Jun 6 2024, 10:09 PM
Unknown Object (File)
Jun 6 2024, 10:08 PM
Unknown Object (File)
Jun 5 2024, 2:44 PM
Subscribers

Details

Summary

This non-standard type is unused in the base system (ct_rune_t or
rune_t are used instead) and ports. It has been around as long as our
current source repo, but we have avoided using it. In sys/_types.h
where the __*rune_t typedefs are defined, the following appears in a
comment:

NOTE: rune_t is not covered by ANSI nor other standards, and should
not be instantiated outside of lib/libc/locale.  Use wchar_t.

The definition of this unused type meant we gratutiously differed from
standards compliant stddef.h/stdlib.h.

PR: 279357 (exp-run by antoine)

Diff Detail

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