[BusyBox] idea regarding space savings wrt usage strings

Manuel Novoa III mnovoa3 at bellsouth.net
Tue Jan 30 22:19:59 UTC 2001


On Tue, 30 Jan 2001, Erik Andersen wrote:
> Hmm.  How ugly is the patch?  I think I am willing to live with
> a slightly larger busybox if the code is more maintainable.  So
> if this makes the code harder to maintain...

The patch is really trivial.  Most of the files just required changing the type
of the usage message from char * to int.  Also changed the NOUSAGE value
to -1 since is a legal offset for me.  Just to be sure, I'll use glibc and do a
full build to root out the problems and post a patch later tonight.

Of course, I'm only talking about offsets because that's how I chose to play
with it.  You could think of them as more general keys into some other kind of
data structure than the flat-file (well char arrary) that I'm using currently.

I don't see any increased problems with maintainance.  The biggest change is
the ugly little utility I tacked on to the bottom of usage.c to auto-generate
the files I needed.  Any maintainance of the usage strings is still done in
usage.c.

Manuel





More information about the busybox mailing list