svn 15195
Rich Felker
dalias at aerifal.cx
Wed May 31 21:22:44 UTC 2006
On Wed, May 31, 2006 at 05:14:56PM -0400, Rob Landley wrote:
> 3) I think a better thing to do would be to figure out how to move the long
> options to usage.h. (Since we have to document the applet's arguments there
> anyway, we might as well _define_ them.) Remember how we were talking about
> a rewrite of bb_getopt_ulflags to not use getopt()? I have a vague plan for
> having long options look something like:
>
> char **sed_longopts = {
> "x" "fruitbasket",
> "y" "walrus",
> "z" "turquoise",
> ""
> };
char ** and char *[] waste (a lot of!) space and make readonly data
into data if you use pic/pie. Using a single string with a separator
character is better. \0 makes a good separator.
Rich
More information about the busybox
mailing list