[BusyBox] Re: ifconfig: Clean up. [PATCH]

Rob Landley rob at landley.net
Mon Jul 25 02:02:35 MDT 2005


On Sunday 24 July 2005 23:14, Erik Andersen wrote:
> I think we need to have a #define in the busybox header file
> such as:
>
>     #ifdef CONFIG_FEATURE_CLEAN_UP
>     # define #do_cleanup 1
>     #else
>     # define #do_cleanup 0
>     #endif
>
> and then applet code will simply do:
>
>     if (do_cleanup)
>     {
>  // Stuff
>     }
>
> such that the entire block of code will be pruned by gcc when
> do_cleanup is 0...  A similar approach could also be used to
> remove a number of other #defines.
>
>  -Erik

I'll add it to the TODO list.  (Heck, I may put it in the headers and change a 
couple instances while I'm at it, but it still needs to go in the TODO list 
so we can do related cleanups and make sure we got all of it...)

Rob


More information about the busybox mailing list