Page MenuHomeFreeBSD

libutil: Backward compatibility for expand_number()
ClosedPublic

Authored by des on Mon, Aug 4, 5:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 21, 5:18 AM
Unknown Object (File)
Wed, Aug 20, 2:39 AM
Unknown Object (File)
Wed, Aug 20, 2:16 AM
Unknown Object (File)
Wed, Aug 20, 1:58 AM
Unknown Object (File)
Wed, Aug 20, 1:55 AM
Unknown Object (File)
Thu, Aug 14, 4:32 AM
Unknown Object (File)
Tue, Aug 12, 9:22 PM
Unknown Object (File)
Sun, Aug 10, 8:10 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 65947
Build 62830: arc lint + arc unit

Event Timeline

des requested review of this revision.Mon, Aug 4, 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.Wed, Aug 6, 1:39 PM
des edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Wed, Aug 6, 2:48 PM