This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Prototypes [was Re: Patch for bugs 772 and 17913]
roger@eyesopen.com (Roger Sayle) wrote on 05.05.05 in <Pine.LNX.4.44.0505051405510.24817-100000@www.eyesopen.com>:
+ <p>> Function prototypes for extern functions should only occur in
> + header files. Functions should be ordered within source files to
> + minimize the number of function prototypes, by defining them before
> + their first use. Function prototypes should only be used when
> + necessary, to break mutually recursive cycles.</p>
I think mentioning extern but not static here is somewhat confusing.
Function ordering should make no difference for extern function
prototypes.
So, how about "... number of static functon prototypes in the .c file
..."?
MfG Kai