[BusyBox] per-applet headers

Erik Andersen andersen at lineo.com
Fri Nov 24 08:11:24 UTC 2000


On Fri Nov 17, 2000 at 11:21:54AM -0800, Larry Doolittle wrote:
> Right now per-applet snippets show up in busybox.h,
> applets.h, and usage.c.  With some very easy preprocessor
> magic, I can combine the first two.  Using the attached
> applets.h, the long list of function and usage prototypes
> in busybox.h turns into
> 
> #define PROTOTYPES
> #include "applets.h"
> #undef PROTOTYPES

I do like this very much.

> With a little more work, I think I could put the usage messages
> into applets.h also, so applets.c would then turn into
> 
> #define MAKE_MESSAGES
> #include "applets.h"
> #undef MAKE_MESSAGES
> 
> ...but maybe the usage message should actually go in the
> applet's code itself?  That's how it was arranged in 0.46,
> Can someone explain why they were collected into a single
> file in 0.47?
> 
> I don't like the idea of splattering per-applet maintenance
> efforts over four files (including the applet itself), so I
> think this would be a change for the better.

The usage messages were collected in the hope that 
this might facilitate i18n and l10n...

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list