Re: small proposed style change
[email protected] (Christos Zoulas) Mon, 20 Feb 2012 05:47:37 +0000 (UTC)
| Newsgroups | gmane.os.netbsd.devel.userlevel,gmane.os.netbsd.devel.general |
|---|---|
| Message-ID | <[email protected]> |
In article <[email protected]>, David Holland <[email protected]> wrote: >On Sun, Feb 19, 2012 at 11:28:00PM +0100, Marc Balmer wrote: > > > The style rules should not be suggesting things that no longer > > > constitute good practices, if they ever did. Any objections? > > > > yes. Using extern declarations is fine. They don't necessarly need to > > go to a separate inlude file. > >extern declarations of data should always be in header files so >they're shared between the uses and the definition. Otherwise nothing >prevents the definition from being inconsistent with the declaration >seen at the location of use. > >And, I shouldn't need to explain this in 2012. :-p Not only that extern declarations are file scope not function scope. Remove the code; it is bogus. christos