This is the mail archive of the
mailing list for the GCC project.
Re: Prototypes [was Re: Patch for bugs 772 and 17913]
firstname.lastname@example.org (Roger Sayle) wrote on 05.05.05 in <Pine.LNX.email@example.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
So, how about "... number of static functon prototypes in the .c file