[BusyBox] calling getopt() centrally
Russ Dill
Russ.Dill at asu.edu
Thu Dec 19 11:52:03 UTC 2002
> > I would steer away from using a long long, you could use two longs, one
> > for [a-z] and the other for [A-Z].
>
> Current busybox 'ls' applet have 27 options.
> We can use only 32 bites flag so far for long time ;)
>
I'm saying that each bit would represent a letter. So you wouldn't need
functions to test whether a bit is set, just a simple macro
(1 << (letter - 'a')) & opt_lowercase
(1 << (letter - 'A')) & opt_uppercase
--
Russ Dill <Russ.Dill at asu.edu>
More information about the busybox
mailing list