Page MenuHomeFreeBSD

sys/cdefs.h: move __BEGIN_DECLS/__END_DECLS into a helper sys/_decls.h
ClosedPublic

Authored by kib on Fri, May 8, 2:15 PM.
Tags
None
Referenced Files
F157177588: D56889.diff
Tue, May 19, 1:40 AM
Unknown Object (File)
Sun, May 17, 7:01 AM
Unknown Object (File)
Sun, May 17, 1:59 AM
Unknown Object (File)
Sun, May 17, 12:55 AM
Unknown Object (File)
Fri, May 15, 1:00 PM
Unknown Object (File)
Thu, May 14, 4:21 PM
Unknown Object (File)
Wed, May 13, 8:36 PM
Unknown Object (File)
Wed, May 13, 6:48 PM
Subscribers
None

Details

Summary
There are situations where nothing from sys/cdefs.h is needed except for
the declaration braces.  More, the other facilities from sys/cdefs.h
might unnecessarly pollute the namespace.

Diff Detail

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

Event Timeline

kib requested review of this revision.Fri, May 8, 2:15 PM
kib created this revision.
This revision is now accepted and ready to land.Sun, May 10, 5:24 PM

The commit message should explain why...

Not sure about my copyright comment. Retaining it certainly is fine.

sys/sys/_decls.h
6

Imho, This file now has nothing copyrightable in it... there are no creatove choices here. The names of the macros are effectively dicted by the interface, and their contents are fixed by the language...

kib added inline comments.
sys/sys/_decls.h
6

Ok. Could you please advise what to put into the herald? I do not think that completely removing the copyright block is right, it would cause questions about the status of the header.

imp added inline comments.
sys/sys/_decls.h
6

Leave what you have. While I have my doubts, it's good to document this if I'm wrong... i should have kept my mouth shut