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
F167971494: D45426.id139269.diff
Tue, Aug 25, 4:54 PM
Unknown Object (File)
Mon, Aug 24, 4:38 PM
Unknown Object (File)
Sun, Aug 23, 5:33 PM
Unknown Object (File)
Wed, Aug 12, 11:23 PM
Unknown Object (File)
Tue, Aug 11, 2:55 PM
Unknown Object (File)
Sun, Aug 9, 7:27 PM
Unknown Object (File)
Sat, Aug 8, 4:53 AM
Unknown Object (File)
Fri, Aug 7, 3:05 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 Passed
Unit
No Test Coverage
Build Status
Buildable 57977
Build 54865: arc lint + arc unit