在 2007-07-26四的 16:54 +0200,Erik Mouw写道: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, Jul 26, 2007 at 04:45:55AM -0400, Min-Hua Chen wrote: > > I note that the headers of the linux source have "extern" in the function > > protoptye. > > I think the extern is not necessary because all function in C are global > > (except static functions), > > Correct. > > > on the other hand, adding "extern" in prototype makes the code easy to > > read. > > I disagree, adding an "extern" to a function prototype makes the line 7 > characters longer, which increases the chance of breaking the function > line because it will be longer than 80 characters. That doesn't make it > easier to read in my book... > > > Is there any stronger reason for adding "extern" in function prototype? > > It's redundant, so don't use it. redundant? i don't think so , > > > Erik > > - -- > They're all fools. Don't worry. Darwin may be slow, but he'll > eventually get them. -- Matthew Lammers in alt.sysadmin.recovery > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFGqLWs/PlVHJtIto0RAu6+AJsFdOREA1W7+VF61PfmJAfr2VpcOACdGx4t > 9f6fycqQvpmuMX9wCNigHrM= > =Gu00 > -----END PGP SIGNATURE----- > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ