Page MenuHomeFreeBSD

cdefs.h: Retire __const and __signed
ClosedPublic

Authored by imp on Jul 3 2024, 6:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 10:44 PM
Unknown Object (File)
Wed, Nov 13, 11:15 AM
Unknown Object (File)
Sun, Nov 10, 2:09 PM
Unknown Object (File)
Oct 25 2024, 2:09 PM
Unknown Object (File)
Oct 19 2024, 7:36 AM
Unknown Object (File)
Oct 10 2024, 11:15 PM
Unknown Object (File)
Oct 5 2024, 11:09 AM
Unknown Object (File)
Sep 7 2024, 6:22 PM
Subscribers
None

Details

Summary

These are no longer used in the base system. Once upon a time they were
used to ease the transition from K&R to ANSI C. These days, we use both
of these keywords in their bare form everywhere, even in our
headers. Any uses of const or signed will be converted to their ANSI
meaning in the compiler, but is beyond the scope of cdefs.h's
charter. For pure K&R compilation, with an enforced only use K&R
features and meanings, one needs to define NO_ANSI_KEYWORDS (though even
that support is wobbly at best, being active only for !GCC or
gcc-adjacent compilers which currently appears to be none).

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58482
Build 55370: arc lint + arc unit

Event Timeline

imp requested review of this revision.Jul 3 2024, 6:45 PM
imp created this revision.
This revision is now accepted and ready to land.Jul 4 2024, 10:00 AM
This revision was automatically updated to reflect the committed changes.