Thread (10 messages) 10 messages, 7 authors, 2013-08-01

Re: [RFC PATCH - diffstat only] include/net: Remove extern from function prototypes

From: Cong Wang <hidden>
Date: 2013-07-25 01:28:14
Also in: lkml

On Tue, 23 Jul 2013 at 17:58 GMT, Joe Perches [off-list ref] wrote:
Function prototypes don't need to be declared
extern in .h files.  It's assumed by the compiler
and is as unnecessary as using auto is when
declaring automatic/local variables in a block.
Since we all know this, why bother it? Having "extern" doesn't harm
readability, instead it probably helps.

...
I believe it makes grepping for extern useful as
all the matches are actual variables and structs.
You need a semantic tool.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help