Page MenuHomeFreeBSD

include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t
ClosedPublic

Authored by fuz on Sun, Apr 19, 7:48 PM.
Tags
None
Referenced Files
F153979012: D56515.id175943.diff
Sat, Apr 25, 5:47 AM
Unknown Object (File)
Fri, Apr 24, 5:30 AM
Unknown Object (File)
Thu, Apr 23, 9:08 PM
Unknown Object (File)
Wed, Apr 22, 3:27 PM
Unknown Object (File)
Tue, Apr 21, 12:33 PM
Subscribers

Details

Summary

These are required by ISO/IEC 9899:2024 § 7.18.1 ¶ 1 but were forgotten
in my initial work.

The current approach leaks intptr_t, uintptr_t, intmax_t, and uintmax_t
through <sys/_stdint.h>. This could be avoided using a more complicated
approach if desired.

PR: 294131
Reported by: Collin Funk <collin.funk1@gmail.com>
MFC after: 1 week

Diff Detail

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