why function declaration and definition in same file?
Bernhard Fischer
rep.nop at aon.at
Sun May 14 12:56:54 UTC 2006
On Thu, May 11, 2006 at 07:00:24AM -0400, Robert P. J. Day wrote:
>
> i just noticed a recent change to networking/interface.c:
>
>=======================================
>--- interface.c (revision 15060)
>+++ interface.c (working copy)
>@@ -1729,6 +1729,7 @@
> return res;
> }
>
>+int display_interfaces(char *ifname);
> int display_interfaces(char *ifname)
> {
> int status;
>=======================================
>
> when did it suddenly become good programming practise to add
It did not.
>function declarations to a source file immediately before the
>corresponding function definition? and the same thing has been done
>in route.c as well. why?
http://busybox.net/lists/busybox/2006-May/021253.html
http://busybox.net/lists/busybox/2006-May/021254.html
Care to send a patch which fixes this proper?
More information about the busybox
mailing list