Re: necessity for "extern" in function prototype?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/27/07, root <hake2002@xxxxxxx> wrote:> 在 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 ,
I guess Erik meant reduantant in prototype and not in general.
thanks>> >> >> > 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>>

-- play the game��.n��������+%����w�j)p���{.n����z�ޖw�n'���q���b�������v��m�����Y�����


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux