Page MenuHomeFreeBSD

libutil: Backward compatibility for expand_number()
ClosedPublic

Authored by des on Aug 4 2025, 5:02 PM.
Tags
None
Referenced Files
F171411900: D51723.id159713.diff
Thu, Sep 10, 11:56 PM
Unknown Object (File)
Tue, Sep 8, 4:23 AM
Unknown Object (File)
Sun, Sep 6, 1:03 PM
Unknown Object (File)
Sun, Sep 6, 9:41 AM
Unknown Object (File)
Sat, Sep 5, 7:56 PM
Unknown Object (File)
Sat, Sep 5, 3:51 PM
Unknown Object (File)
Sat, Sep 5, 9:50 AM
Unknown Object (File)
Sat, Sep 5, 9:27 AM
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 Not Applicable
Unit
Tests Not Applicable

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
93

_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