Page MenuHomeFreeBSD

libutil: Backward compatibility for expand_number()
ClosedPublic

Authored by des on Aug 4 2025, 5:02 PM.
Tags
None
Referenced Files
F138217034: D51723.id159904.diff
Sun, Nov 30, 12:01 AM
Unknown Object (File)
Thu, Nov 27, 3:40 AM
Unknown Object (File)
Mon, Nov 24, 1:23 PM
Unknown Object (File)
Fri, Nov 14, 10:27 PM
Unknown Object (File)
Tue, Nov 11, 9:49 AM
Unknown Object (File)
Tue, Nov 11, 1:59 AM
Unknown Object (File)
Sun, Nov 9, 10:37 PM
Unknown Object (File)
Oct 29 2025, 11:58 PM
Subscribers

Details

Summary

Reimplement expand_number() in terms of expand_unsigned(), which takes
a pointer to uint64_t like expand_number() did before. Provide a macro
that picks the correct version based on the type of the argument.

Fixes: 2e0caa7c7e14

Diff Detail

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

Event Timeline

des requested review of this revision.Aug 4 2025, 5:02 PM

Don't you need to export expand_unsigned in version def?

lib/libutil/libutil.h
94

_Generic use should be braced by the C dialect check, since this is a public header.

des edited the summary of this revision. (Show Details)

nit

des marked an inline comment as done.Aug 6 2025, 1:39 PM
des edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Aug 6 2025, 2:48 PM